[2025-03-10 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:00:06 [end_date_ymd] => 2025-03-10 00:00:06 [RateCDR] => 1 ) [2025-03-10 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:00:06' and `end` < '2025-03-10 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:00:18] Production.INFO: count ==633 [2025-03-10 00:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:00:06 - End Time 2025-03-10 00:00:06 [2025-03-10 00:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645701', 'tblTempUsageDetail_20' ) start [2025-03-10 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645701', 'tblTempUsageDetail_20' ) end [2025-03-10 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645701', 'tblTempVendorCDR_20' ) start [2025-03-10 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645701', 'tblTempVendorCDR_20' ) end [2025-03-10 00:00:18] Production.INFO: ProcessCDR(1,14645701,1,1,2) [2025-03-10 00:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645701', 'tblTempUsageDetail_20' ) start [2025-03-10 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645701', 'tblTempUsageDetail_20' ) end [2025-03-10 00:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:00:23] Production.INFO: ==8685== Releasing lock... [2025-03-10 00:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:00:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-10 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:01:06 [end_date_ymd] => 2025-03-10 00:01:06 [RateCDR] => 1 ) [2025-03-10 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:01:06' and `end` < '2025-03-10 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:01:18] Production.INFO: count ==623 [2025-03-10 00:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:01:06 - End Time 2025-03-10 00:01:06 [2025-03-10 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645706', 'tblTempUsageDetail_20' ) start [2025-03-10 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645706', 'tblTempUsageDetail_20' ) end [2025-03-10 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645706', 'tblTempVendorCDR_20' ) start [2025-03-10 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645706', 'tblTempVendorCDR_20' ) end [2025-03-10 00:01:19] Production.INFO: ProcessCDR(1,14645706,1,1,2) [2025-03-10 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645706', 'tblTempUsageDetail_20' ) start [2025-03-10 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645706', 'tblTempUsageDetail_20' ) end [2025-03-10 00:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:01:24] Production.INFO: ==8775== Releasing lock... [2025-03-10 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:01:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:02:05 [end_date_ymd] => 2025-03-10 00:02:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 21:02:05' and `end` < '2025-03-10 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-03-10 00:02:17] Production.INFO: count ==298 [2025-03-10 00:02:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:02:05 - End Time 2025-03-10 00:02:05 [2025-03-10 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645711', 'tblTempUsageDetail_20' ) start [2025-03-10 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645711', 'tblTempUsageDetail_20' ) end [2025-03-10 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645711', 'tblTempVendorCDR_20' ) start [2025-03-10 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645711', 'tblTempVendorCDR_20' ) end [2025-03-10 00:02:17] Production.INFO: ProcessCDR(1,14645711,1,1,2) [2025-03-10 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645711', 'tblTempUsageDetail_20' ) start [2025-03-10 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645711', 'tblTempUsageDetail_20' ) end [2025-03-10 00:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:02:21] Production.INFO: ==8847== Releasing lock... [2025-03-10 00:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:02:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:03:06 [end_date_ymd] => 2025-03-10 00:03:06 [RateCDR] => 1 ) [2025-03-10 00:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:03:06' and `end` < '2025-03-10 00:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:03:18] Production.INFO: count ==292 [2025-03-10 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:03:06 - End Time 2025-03-10 00:03:06 [2025-03-10 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645716', 'tblTempUsageDetail_20' ) start [2025-03-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645716', 'tblTempUsageDetail_20' ) end [2025-03-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645716', 'tblTempVendorCDR_20' ) start [2025-03-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645716', 'tblTempVendorCDR_20' ) end [2025-03-10 00:03:18] Production.INFO: ProcessCDR(1,14645716,1,1,2) [2025-03-10 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645716', 'tblTempUsageDetail_20' ) start [2025-03-10 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645716', 'tblTempUsageDetail_20' ) end [2025-03-10 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:03:21] Production.INFO: ==8924== Releasing lock... [2025-03-10 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:03:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:04:05 [end_date_ymd] => 2025-03-10 00:04:05 [RateCDR] => 1 ) [2025-03-10 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:04:05' and `end` < '2025-03-10 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:04:17] Production.INFO: count ==291 [2025-03-10 00:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:04:05 - End Time 2025-03-10 00:04:05 [2025-03-10 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645721', 'tblTempUsageDetail_20' ) start [2025-03-10 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645721', 'tblTempUsageDetail_20' ) end [2025-03-10 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645721', 'tblTempVendorCDR_20' ) start [2025-03-10 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645721', 'tblTempVendorCDR_20' ) end [2025-03-10 00:04:17] Production.INFO: ProcessCDR(1,14645721,1,1,2) [2025-03-10 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645721', 'tblTempUsageDetail_20' ) start [2025-03-10 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645721', 'tblTempUsageDetail_20' ) end [2025-03-10 00:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:04:20] Production.INFO: ==8997== Releasing lock... [2025-03-10 00:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:04:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:05:05 [end_date_ymd] => 2025-03-10 00:05:05 [RateCDR] => 1 ) [2025-03-10 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:05:05' and `end` < '2025-03-10 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:05:17] Production.INFO: count ==291 [2025-03-10 00:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:05:05 - End Time 2025-03-10 00:05:05 [2025-03-10 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645726', 'tblTempUsageDetail_20' ) start [2025-03-10 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645726', 'tblTempUsageDetail_20' ) end [2025-03-10 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645726', 'tblTempVendorCDR_20' ) start [2025-03-10 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645726', 'tblTempVendorCDR_20' ) end [2025-03-10 00:05:17] Production.INFO: ProcessCDR(1,14645726,1,1,2) [2025-03-10 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645726', 'tblTempUsageDetail_20' ) start [2025-03-10 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645726', 'tblTempUsageDetail_20' ) end [2025-03-10 00:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:05:20] Production.INFO: ==9074== Releasing lock... [2025-03-10 00:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:05:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:06:05 [end_date_ymd] => 2025-03-10 00:06:05 [RateCDR] => 1 ) [2025-03-10 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:06:05' and `end` < '2025-03-10 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:06:17] Production.INFO: count ==291 [2025-03-10 00:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:06:05 - End Time 2025-03-10 00:06:05 [2025-03-10 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645731', 'tblTempUsageDetail_20' ) start [2025-03-10 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645731', 'tblTempUsageDetail_20' ) end [2025-03-10 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645731', 'tblTempVendorCDR_20' ) start [2025-03-10 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645731', 'tblTempVendorCDR_20' ) end [2025-03-10 00:06:17] Production.INFO: ProcessCDR(1,14645731,1,1,2) [2025-03-10 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645731', 'tblTempUsageDetail_20' ) start [2025-03-10 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645731', 'tblTempUsageDetail_20' ) end [2025-03-10 00:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:06:20] Production.INFO: ==9145== Releasing lock... [2025-03-10 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:06:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:07:05 [end_date_ymd] => 2025-03-10 00:07:05 [RateCDR] => 1 ) [2025-03-10 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:07:05' and `end` < '2025-03-10 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:07:17] Production.INFO: count ==290 [2025-03-10 00:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:07:05 - End Time 2025-03-10 00:07:05 [2025-03-10 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645736', 'tblTempUsageDetail_20' ) start [2025-03-10 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645736', 'tblTempUsageDetail_20' ) end [2025-03-10 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645736', 'tblTempVendorCDR_20' ) start [2025-03-10 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645736', 'tblTempVendorCDR_20' ) end [2025-03-10 00:07:17] Production.INFO: ProcessCDR(1,14645736,1,1,2) [2025-03-10 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645736', 'tblTempUsageDetail_20' ) start [2025-03-10 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645736', 'tblTempUsageDetail_20' ) end [2025-03-10 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:07:21] Production.INFO: ==9256== Releasing lock... [2025-03-10 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:08:06 [end_date_ymd] => 2025-03-10 00:08:06 [RateCDR] => 1 ) [2025-03-10 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-03-09 21:08:06' and `end` < '2025-03-10 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-03-10 00:08:18] Production.INFO: count ==291 [2025-03-10 00:08:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:08:06 - End Time 2025-03-10 00:08:06 [2025-03-10 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645741', 'tblTempUsageDetail_20' ) start [2025-03-10 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645741', 'tblTempUsageDetail_20' ) end [2025-03-10 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645741', 'tblTempVendorCDR_20' ) start [2025-03-10 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645741', 'tblTempVendorCDR_20' ) end [2025-03-10 00:08:18] Production.INFO: ProcessCDR(1,14645741,1,1,2) [2025-03-10 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645741', 'tblTempUsageDetail_20' ) start [2025-03-10 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645741', 'tblTempUsageDetail_20' ) end [2025-03-10 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:08:21] Production.INFO: ==9333== Releasing lock... [2025-03-10 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:09:05 [end_date_ymd] => 2025-03-10 00:09:05 [RateCDR] => 1 ) [2025-03-10 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:09:05' and `end` < '2025-03-10 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:09:17] Production.INFO: count ==290 [2025-03-10 00:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:09:05 - End Time 2025-03-10 00:09:05 [2025-03-10 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645746', 'tblTempUsageDetail_20' ) start [2025-03-10 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645746', 'tblTempUsageDetail_20' ) end [2025-03-10 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645746', 'tblTempVendorCDR_20' ) start [2025-03-10 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645746', 'tblTempVendorCDR_20' ) end [2025-03-10 00:09:17] Production.INFO: ProcessCDR(1,14645746,1,1,2) [2025-03-10 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645746', 'tblTempUsageDetail_20' ) start [2025-03-10 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645746', 'tblTempUsageDetail_20' ) end [2025-03-10 00:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:09:20] Production.INFO: ==9422== Releasing lock... [2025-03-10 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:09:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:10:06 [end_date_ymd] => 2025-03-10 00:10:06 [RateCDR] => 1 ) [2025-03-10 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:10:06' and `end` < '2025-03-10 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:10:18] Production.INFO: count ==298 [2025-03-10 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:10:06 - End Time 2025-03-10 00:10:06 [2025-03-10 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645752', 'tblTempUsageDetail_20' ) start [2025-03-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645752', 'tblTempUsageDetail_20' ) end [2025-03-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645752', 'tblTempVendorCDR_20' ) start [2025-03-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645752', 'tblTempVendorCDR_20' ) end [2025-03-10 00:10:18] Production.INFO: ProcessCDR(1,14645752,1,1,2) [2025-03-10 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645752', 'tblTempUsageDetail_20' ) start [2025-03-10 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645752', 'tblTempUsageDetail_20' ) end [2025-03-10 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:10:21] Production.INFO: ==9548== Releasing lock... [2025-03-10 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:10:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:11:05 [end_date_ymd] => 2025-03-10 00:11:05 [RateCDR] => 1 ) [2025-03-10 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:11:05' and `end` < '2025-03-10 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:11:17] Production.INFO: count ==298 [2025-03-10 00:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:11:05 - End Time 2025-03-10 00:11:05 [2025-03-10 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645757', 'tblTempUsageDetail_20' ) start [2025-03-10 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645757', 'tblTempUsageDetail_20' ) end [2025-03-10 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645757', 'tblTempVendorCDR_20' ) start [2025-03-10 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645757', 'tblTempVendorCDR_20' ) end [2025-03-10 00:11:17] Production.INFO: ProcessCDR(1,14645757,1,1,2) [2025-03-10 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645757', 'tblTempUsageDetail_20' ) start [2025-03-10 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645757', 'tblTempUsageDetail_20' ) end [2025-03-10 00:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:11:20] Production.INFO: ==9674== Releasing lock... [2025-03-10 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:11:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:12:05 [end_date_ymd] => 2025-03-10 00:12:05 [RateCDR] => 1 ) [2025-03-10 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:12:05' and `end` < '2025-03-10 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:12:24] Production.INFO: count ==301 [2025-03-10 00:12:24] Production.ERROR: pbx CDR StartTime 2025-03-09 21:12:05 - End Time 2025-03-10 00:12:05 [2025-03-10 00:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645762', 'tblTempUsageDetail_20' ) start [2025-03-10 00:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645762', 'tblTempUsageDetail_20' ) end [2025-03-10 00:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645762', 'tblTempVendorCDR_20' ) start [2025-03-10 00:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645762', 'tblTempVendorCDR_20' ) end [2025-03-10 00:12:24] Production.INFO: ProcessCDR(1,14645762,1,1,2) [2025-03-10 00:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645762', 'tblTempUsageDetail_20' ) start [2025-03-10 00:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645762', 'tblTempUsageDetail_20' ) end [2025-03-10 00:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:12:28] Production.INFO: ==9801== Releasing lock... [2025-03-10 00:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:12:28] Production.INFO: 31 MB #Memory Used# [2025-03-10 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:13:04 [end_date_ymd] => 2025-03-10 00:13:04 [RateCDR] => 1 ) [2025-03-10 00: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-03-09 21:13:04' and `end` < '2025-03-10 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-03-10 00:13:17] Production.INFO: count ==297 [2025-03-10 00:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:13:04 - End Time 2025-03-10 00:13:04 [2025-03-10 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645767', 'tblTempUsageDetail_20' ) start [2025-03-10 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645767', 'tblTempUsageDetail_20' ) end [2025-03-10 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645767', 'tblTempVendorCDR_20' ) start [2025-03-10 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645767', 'tblTempVendorCDR_20' ) end [2025-03-10 00:13:17] Production.INFO: ProcessCDR(1,14645767,1,1,2) [2025-03-10 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645767', 'tblTempUsageDetail_20' ) start [2025-03-10 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645767', 'tblTempUsageDetail_20' ) end [2025-03-10 00:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:13:20] Production.INFO: ==9926== Releasing lock... [2025-03-10 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:13:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:14:05 [end_date_ymd] => 2025-03-10 00:14:05 [RateCDR] => 1 ) [2025-03-10 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:14:05' and `end` < '2025-03-10 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:14:17] Production.INFO: count ==296 [2025-03-10 00:14:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:14:05 - End Time 2025-03-10 00:14:05 [2025-03-10 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645772', 'tblTempUsageDetail_20' ) start [2025-03-10 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645772', 'tblTempUsageDetail_20' ) end [2025-03-10 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645772', 'tblTempVendorCDR_20' ) start [2025-03-10 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645772', 'tblTempVendorCDR_20' ) end [2025-03-10 00:14:17] Production.INFO: ProcessCDR(1,14645772,1,1,2) [2025-03-10 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645772', 'tblTempUsageDetail_20' ) start [2025-03-10 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645772', 'tblTempUsageDetail_20' ) end [2025-03-10 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:14:21] Production.INFO: ==10082== Releasing lock... [2025-03-10 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:14:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:15:05 [end_date_ymd] => 2025-03-10 00:15:05 [RateCDR] => 1 ) [2025-03-10 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:15:05' and `end` < '2025-03-10 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:15:17] Production.INFO: count ==296 [2025-03-10 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:15:05 - End Time 2025-03-10 00:15:05 [2025-03-10 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645777', 'tblTempUsageDetail_20' ) start [2025-03-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645777', 'tblTempUsageDetail_20' ) end [2025-03-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645777', 'tblTempVendorCDR_20' ) start [2025-03-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645777', 'tblTempVendorCDR_20' ) end [2025-03-10 00:15:18] Production.INFO: ProcessCDR(1,14645777,1,1,2) [2025-03-10 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645777', 'tblTempUsageDetail_20' ) start [2025-03-10 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645777', 'tblTempUsageDetail_20' ) end [2025-03-10 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:15:21] Production.INFO: ==10241== Releasing lock... [2025-03-10 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:15:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:16:05 [end_date_ymd] => 2025-03-10 00:16:05 [RateCDR] => 1 ) [2025-03-10 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:16:05' and `end` < '2025-03-10 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:16:17] Production.INFO: count ==295 [2025-03-10 00:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:16:05 - End Time 2025-03-10 00:16:05 [2025-03-10 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645782', 'tblTempUsageDetail_20' ) start [2025-03-10 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645782', 'tblTempUsageDetail_20' ) end [2025-03-10 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645782', 'tblTempVendorCDR_20' ) start [2025-03-10 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645782', 'tblTempVendorCDR_20' ) end [2025-03-10 00:16:17] Production.INFO: ProcessCDR(1,14645782,1,1,2) [2025-03-10 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645782', 'tblTempUsageDetail_20' ) start [2025-03-10 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645782', 'tblTempUsageDetail_20' ) end [2025-03-10 00:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:16:21] Production.INFO: ==10397== Releasing lock... [2025-03-10 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:17:06 [end_date_ymd] => 2025-03-10 00:17:06 [RateCDR] => 1 ) [2025-03-10 00:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:17:06' and `end` < '2025-03-10 00:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:17:18] Production.INFO: count ==295 [2025-03-10 00:17:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:17:06 - End Time 2025-03-10 00:17:06 [2025-03-10 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645787', 'tblTempUsageDetail_20' ) start [2025-03-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645787', 'tblTempUsageDetail_20' ) end [2025-03-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645787', 'tblTempVendorCDR_20' ) start [2025-03-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645787', 'tblTempVendorCDR_20' ) end [2025-03-10 00:17:18] Production.INFO: ProcessCDR(1,14645787,1,1,2) [2025-03-10 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645787', 'tblTempUsageDetail_20' ) start [2025-03-10 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645787', 'tblTempUsageDetail_20' ) end [2025-03-10 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:17:21] Production.INFO: ==10564== Releasing lock... [2025-03-10 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:18:05 [end_date_ymd] => 2025-03-10 00:18:05 [RateCDR] => 1 ) [2025-03-10 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:18:05' and `end` < '2025-03-10 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:18:17] Production.INFO: count ==294 [2025-03-10 00:18:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:18:05 - End Time 2025-03-10 00:18:05 [2025-03-10 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645792', 'tblTempUsageDetail_20' ) start [2025-03-10 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645792', 'tblTempUsageDetail_20' ) end [2025-03-10 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645792', 'tblTempVendorCDR_20' ) start [2025-03-10 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645792', 'tblTempVendorCDR_20' ) end [2025-03-10 00:18:17] Production.INFO: ProcessCDR(1,14645792,1,1,2) [2025-03-10 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645792', 'tblTempUsageDetail_20' ) start [2025-03-10 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645792', 'tblTempUsageDetail_20' ) end [2025-03-10 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:18:21] Production.INFO: ==10723== Releasing lock... [2025-03-10 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:19:05 [end_date_ymd] => 2025-03-10 00:19:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 21:19:05' and `end` < '2025-03-10 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-03-10 00:19:18] Production.INFO: count ==293 [2025-03-10 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:19:05 - End Time 2025-03-10 00:19:05 [2025-03-10 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645797', 'tblTempUsageDetail_20' ) start [2025-03-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645797', 'tblTempUsageDetail_20' ) end [2025-03-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645797', 'tblTempVendorCDR_20' ) start [2025-03-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645797', 'tblTempVendorCDR_20' ) end [2025-03-10 00:19:18] Production.INFO: ProcessCDR(1,14645797,1,1,2) [2025-03-10 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645797', 'tblTempUsageDetail_20' ) start [2025-03-10 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645797', 'tblTempUsageDetail_20' ) end [2025-03-10 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:19:21] Production.INFO: ==10883== Releasing lock... [2025-03-10 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 00:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:20:07 [end_date_ymd] => 2025-03-10 00:20:07 [RateCDR] => 1 ) [2025-03-10 00:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:20:07' and `end` < '2025-03-10 00:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:20:19] Production.INFO: count ==302 [2025-03-10 00:20:19] Production.ERROR: pbx CDR StartTime 2025-03-09 21:20:07 - End Time 2025-03-10 00:20:07 [2025-03-10 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645802', 'tblTempUsageDetail_20' ) start [2025-03-10 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645802', 'tblTempUsageDetail_20' ) end [2025-03-10 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645802', 'tblTempVendorCDR_20' ) start [2025-03-10 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645802', 'tblTempVendorCDR_20' ) end [2025-03-10 00:20:19] Production.INFO: ProcessCDR(1,14645802,1,1,2) [2025-03-10 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645802', 'tblTempUsageDetail_20' ) start [2025-03-10 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645802', 'tblTempUsageDetail_20' ) end [2025-03-10 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:20:22] Production.INFO: ==11015== Releasing lock... [2025-03-10 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:21:04 [end_date_ymd] => 2025-03-10 00:21:04 [RateCDR] => 1 ) [2025-03-10 00:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:21:04' and `end` < '2025-03-10 00:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:21:17] Production.INFO: count ==306 [2025-03-10 00:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:21:04 - End Time 2025-03-10 00:21:04 [2025-03-10 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645808', 'tblTempUsageDetail_20' ) start [2025-03-10 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645808', 'tblTempUsageDetail_20' ) end [2025-03-10 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645808', 'tblTempVendorCDR_20' ) start [2025-03-10 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645808', 'tblTempVendorCDR_20' ) end [2025-03-10 00:21:17] Production.INFO: ProcessCDR(1,14645808,1,1,2) [2025-03-10 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645808', 'tblTempUsageDetail_20' ) start [2025-03-10 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645808', 'tblTempUsageDetail_20' ) end [2025-03-10 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:21:20] Production.INFO: ==11108== Releasing lock... [2025-03-10 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:21:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:22:05 [end_date_ymd] => 2025-03-10 00:22:05 [RateCDR] => 1 ) [2025-03-10 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:22:05' and `end` < '2025-03-10 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:22:17] Production.INFO: count ==310 [2025-03-10 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:22:05 - End Time 2025-03-10 00:22:05 [2025-03-10 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645813', 'tblTempUsageDetail_20' ) start [2025-03-10 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645813', 'tblTempUsageDetail_20' ) end [2025-03-10 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645813', 'tblTempVendorCDR_20' ) start [2025-03-10 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645813', 'tblTempVendorCDR_20' ) end [2025-03-10 00:22:17] Production.INFO: ProcessCDR(1,14645813,1,1,2) [2025-03-10 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645813', 'tblTempUsageDetail_20' ) start [2025-03-10 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645813', 'tblTempUsageDetail_20' ) end [2025-03-10 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:22:21] Production.INFO: ==11205== Releasing lock... [2025-03-10 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:22:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:23:06 [end_date_ymd] => 2025-03-10 00:23:06 [RateCDR] => 1 ) [2025-03-10 00:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:23:06' and `end` < '2025-03-10 00:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:23:18] Production.INFO: count ==306 [2025-03-10 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:23:06 - End Time 2025-03-10 00:23:06 [2025-03-10 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645818', 'tblTempUsageDetail_20' ) start [2025-03-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645818', 'tblTempUsageDetail_20' ) end [2025-03-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645818', 'tblTempVendorCDR_20' ) start [2025-03-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645818', 'tblTempVendorCDR_20' ) end [2025-03-10 00:23:18] Production.INFO: ProcessCDR(1,14645818,1,1,2) [2025-03-10 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645818', 'tblTempUsageDetail_20' ) start [2025-03-10 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645818', 'tblTempUsageDetail_20' ) end [2025-03-10 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:23:21] Production.INFO: ==11343== Releasing lock... [2025-03-10 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:24:05 [end_date_ymd] => 2025-03-10 00:24:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 21:24:05' and `end` < '2025-03-10 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-03-10 00:24:17] Production.INFO: count ==304 [2025-03-10 00:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:24:05 - End Time 2025-03-10 00:24:05 [2025-03-10 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645823', 'tblTempUsageDetail_20' ) start [2025-03-10 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645823', 'tblTempUsageDetail_20' ) end [2025-03-10 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645823', 'tblTempVendorCDR_20' ) start [2025-03-10 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645823', 'tblTempVendorCDR_20' ) end [2025-03-10 00:24:17] Production.INFO: ProcessCDR(1,14645823,1,1,2) [2025-03-10 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645823', 'tblTempUsageDetail_20' ) start [2025-03-10 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645823', 'tblTempUsageDetail_20' ) end [2025-03-10 00:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:24:20] Production.INFO: ==11458== Releasing lock... [2025-03-10 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:24:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:25:05 [end_date_ymd] => 2025-03-10 00:25:05 [RateCDR] => 1 ) [2025-03-10 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:25:05' and `end` < '2025-03-10 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:25:18] Production.INFO: count ==309 [2025-03-10 00:25:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:25:05 - End Time 2025-03-10 00:25:05 [2025-03-10 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645828', 'tblTempUsageDetail_20' ) start [2025-03-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645828', 'tblTempUsageDetail_20' ) end [2025-03-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645828', 'tblTempVendorCDR_20' ) start [2025-03-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645828', 'tblTempVendorCDR_20' ) end [2025-03-10 00:25:18] Production.INFO: ProcessCDR(1,14645828,1,1,2) [2025-03-10 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645828', 'tblTempUsageDetail_20' ) start [2025-03-10 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645828', 'tblTempUsageDetail_20' ) end [2025-03-10 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:25:21] Production.INFO: ==11569== Releasing lock... [2025-03-10 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:26:04 [end_date_ymd] => 2025-03-10 00:26:04 [RateCDR] => 1 ) [2025-03-10 00:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:26:04' and `end` < '2025-03-10 00:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:26:16] Production.INFO: count ==313 [2025-03-10 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:26:04 - End Time 2025-03-10 00:26:04 [2025-03-10 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645833', 'tblTempUsageDetail_20' ) start [2025-03-10 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645833', 'tblTempUsageDetail_20' ) end [2025-03-10 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645833', 'tblTempVendorCDR_20' ) start [2025-03-10 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645833', 'tblTempVendorCDR_20' ) end [2025-03-10 00:26:17] Production.INFO: ProcessCDR(1,14645833,1,1,2) [2025-03-10 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645833', 'tblTempUsageDetail_20' ) start [2025-03-10 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645833', 'tblTempUsageDetail_20' ) end [2025-03-10 00:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:26:20] Production.INFO: ==11673== Releasing lock... [2025-03-10 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:26:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:27:05 [end_date_ymd] => 2025-03-10 00:27:05 [RateCDR] => 1 ) [2025-03-10 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:27:05' and `end` < '2025-03-10 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:27:17] Production.INFO: count ==316 [2025-03-10 00:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:27:05 - End Time 2025-03-10 00:27:05 [2025-03-10 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645838', 'tblTempUsageDetail_20' ) start [2025-03-10 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645838', 'tblTempUsageDetail_20' ) end [2025-03-10 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645838', 'tblTempVendorCDR_20' ) start [2025-03-10 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645838', 'tblTempVendorCDR_20' ) end [2025-03-10 00:27:17] Production.INFO: ProcessCDR(1,14645838,1,1,2) [2025-03-10 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645838', 'tblTempUsageDetail_20' ) start [2025-03-10 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645838', 'tblTempUsageDetail_20' ) end [2025-03-10 00:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:27:20] Production.INFO: ==11765== Releasing lock... [2025-03-10 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:27:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:28:05 [end_date_ymd] => 2025-03-10 00:28:05 [RateCDR] => 1 ) [2025-03-10 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:28:05' and `end` < '2025-03-10 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:28:17] Production.INFO: count ==323 [2025-03-10 00:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:28:05 - End Time 2025-03-10 00:28:05 [2025-03-10 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645843', 'tblTempUsageDetail_20' ) start [2025-03-10 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645843', 'tblTempUsageDetail_20' ) end [2025-03-10 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645843', 'tblTempVendorCDR_20' ) start [2025-03-10 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645843', 'tblTempVendorCDR_20' ) end [2025-03-10 00:28:17] Production.INFO: ProcessCDR(1,14645843,1,1,2) [2025-03-10 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645843', 'tblTempUsageDetail_20' ) start [2025-03-10 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645843', 'tblTempUsageDetail_20' ) end [2025-03-10 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:28:20] Production.INFO: ==11838== Releasing lock... [2025-03-10 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:28:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:29:05 [end_date_ymd] => 2025-03-10 00:29:05 [RateCDR] => 1 ) [2025-03-10 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:29:05' and `end` < '2025-03-10 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:29:17] Production.INFO: count ==325 [2025-03-10 00:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:29:05 - End Time 2025-03-10 00:29:05 [2025-03-10 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645848', 'tblTempUsageDetail_20' ) start [2025-03-10 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645848', 'tblTempUsageDetail_20' ) end [2025-03-10 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645848', 'tblTempVendorCDR_20' ) start [2025-03-10 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645848', 'tblTempVendorCDR_20' ) end [2025-03-10 00:29:17] Production.INFO: ProcessCDR(1,14645848,1,1,2) [2025-03-10 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645848', 'tblTempUsageDetail_20' ) start [2025-03-10 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645848', 'tblTempUsageDetail_20' ) end [2025-03-10 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:29:20] Production.INFO: ==11916== Releasing lock... [2025-03-10 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:29:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:30:05 [end_date_ymd] => 2025-03-10 00:30:05 [RateCDR] => 1 ) [2025-03-10 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:30:05' and `end` < '2025-03-10 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:30:17] Production.INFO: count ==331 [2025-03-10 00:30:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:30:05 - End Time 2025-03-10 00:30:05 [2025-03-10 00:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645853', 'tblTempUsageDetail_20' ) start [2025-03-10 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645853', 'tblTempUsageDetail_20' ) end [2025-03-10 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645853', 'tblTempVendorCDR_20' ) start [2025-03-10 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645853', 'tblTempVendorCDR_20' ) end [2025-03-10 00:30:18] Production.INFO: ProcessCDR(1,14645853,1,1,2) [2025-03-10 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645853', 'tblTempUsageDetail_20' ) start [2025-03-10 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645853', 'tblTempUsageDetail_20' ) end [2025-03-10 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:30:21] Production.INFO: ==11999== Releasing lock... [2025-03-10 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:30:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:31:05 [end_date_ymd] => 2025-03-10 00:31:05 [RateCDR] => 1 ) [2025-03-10 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:31:05' and `end` < '2025-03-10 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:31:17] Production.INFO: count ==327 [2025-03-10 00:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:31:05 - End Time 2025-03-10 00:31:05 [2025-03-10 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645859', 'tblTempUsageDetail_20' ) start [2025-03-10 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645859', 'tblTempUsageDetail_20' ) end [2025-03-10 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645859', 'tblTempVendorCDR_20' ) start [2025-03-10 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645859', 'tblTempVendorCDR_20' ) end [2025-03-10 00:31:17] Production.INFO: ProcessCDR(1,14645859,1,1,2) [2025-03-10 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645859', 'tblTempUsageDetail_20' ) start [2025-03-10 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645859', 'tblTempUsageDetail_20' ) end [2025-03-10 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:31:20] Production.INFO: ==12081== Releasing lock... [2025-03-10 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:31:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:32:05 [end_date_ymd] => 2025-03-10 00:32:05 [RateCDR] => 1 ) [2025-03-10 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:32:05' and `end` < '2025-03-10 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:32:17] Production.INFO: count ==321 [2025-03-10 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:32:05 - End Time 2025-03-10 00:32:05 [2025-03-10 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645864', 'tblTempUsageDetail_20' ) start [2025-03-10 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645864', 'tblTempUsageDetail_20' ) end [2025-03-10 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645864', 'tblTempVendorCDR_20' ) start [2025-03-10 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645864', 'tblTempVendorCDR_20' ) end [2025-03-10 00:32:18] Production.INFO: ProcessCDR(1,14645864,1,1,2) [2025-03-10 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645864', 'tblTempUsageDetail_20' ) start [2025-03-10 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645864', 'tblTempUsageDetail_20' ) end [2025-03-10 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:32:21] Production.INFO: ==12154== Releasing lock... [2025-03-10 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:33:05 [end_date_ymd] => 2025-03-10 00:33:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 21:33:05' and `end` < '2025-03-10 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-03-10 00:33:17] Production.INFO: count ==319 [2025-03-10 00:33:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:33:05 - End Time 2025-03-10 00:33:05 [2025-03-10 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645869', 'tblTempUsageDetail_20' ) start [2025-03-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645869', 'tblTempUsageDetail_20' ) end [2025-03-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645869', 'tblTempVendorCDR_20' ) start [2025-03-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645869', 'tblTempVendorCDR_20' ) end [2025-03-10 00:33:18] Production.INFO: ProcessCDR(1,14645869,1,1,2) [2025-03-10 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645869', 'tblTempUsageDetail_20' ) start [2025-03-10 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645869', 'tblTempUsageDetail_20' ) end [2025-03-10 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:33:21] Production.INFO: ==12229== Releasing lock... [2025-03-10 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:34:05 [end_date_ymd] => 2025-03-10 00:34:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 21:34:05' and `end` < '2025-03-10 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-03-10 00:34:17] Production.INFO: count ==321 [2025-03-10 00:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:34:05 - End Time 2025-03-10 00:34:05 [2025-03-10 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645874', 'tblTempUsageDetail_20' ) start [2025-03-10 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645874', 'tblTempUsageDetail_20' ) end [2025-03-10 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645874', 'tblTempVendorCDR_20' ) start [2025-03-10 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645874', 'tblTempVendorCDR_20' ) end [2025-03-10 00:34:17] Production.INFO: ProcessCDR(1,14645874,1,1,2) [2025-03-10 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645874', 'tblTempUsageDetail_20' ) start [2025-03-10 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645874', 'tblTempUsageDetail_20' ) end [2025-03-10 00:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:34:20] Production.INFO: ==12304== Releasing lock... [2025-03-10 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:34:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:35:05 [end_date_ymd] => 2025-03-10 00:35:05 [RateCDR] => 1 ) [2025-03-10 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:35:05' and `end` < '2025-03-10 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:35:17] Production.INFO: count ==317 [2025-03-10 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:35:05 - End Time 2025-03-10 00:35:05 [2025-03-10 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645879', 'tblTempUsageDetail_20' ) start [2025-03-10 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645879', 'tblTempUsageDetail_20' ) end [2025-03-10 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645879', 'tblTempVendorCDR_20' ) start [2025-03-10 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645879', 'tblTempVendorCDR_20' ) end [2025-03-10 00:35:17] Production.INFO: ProcessCDR(1,14645879,1,1,2) [2025-03-10 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645879', 'tblTempUsageDetail_20' ) start [2025-03-10 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645879', 'tblTempUsageDetail_20' ) end [2025-03-10 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:35:20] Production.INFO: ==12379== Releasing lock... [2025-03-10 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:35:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:36:05 [end_date_ymd] => 2025-03-10 00:36:05 [RateCDR] => 1 ) [2025-03-10 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:36:05' and `end` < '2025-03-10 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:36:17] Production.INFO: count ==317 [2025-03-10 00:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:36:05 - End Time 2025-03-10 00:36:05 [2025-03-10 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645884', 'tblTempUsageDetail_20' ) start [2025-03-10 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645884', 'tblTempUsageDetail_20' ) end [2025-03-10 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645884', 'tblTempVendorCDR_20' ) start [2025-03-10 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645884', 'tblTempVendorCDR_20' ) end [2025-03-10 00:36:17] Production.INFO: ProcessCDR(1,14645884,1,1,2) [2025-03-10 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645884', 'tblTempUsageDetail_20' ) start [2025-03-10 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645884', 'tblTempUsageDetail_20' ) end [2025-03-10 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:36:21] Production.INFO: ==12465== Releasing lock... [2025-03-10 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:37:05 [end_date_ymd] => 2025-03-10 00:37:05 [RateCDR] => 1 ) [2025-03-10 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:37:05' and `end` < '2025-03-10 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:37:17] Production.INFO: count ==320 [2025-03-10 00:37:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:37:05 - End Time 2025-03-10 00:37:05 [2025-03-10 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645889', 'tblTempUsageDetail_20' ) start [2025-03-10 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645889', 'tblTempUsageDetail_20' ) end [2025-03-10 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645889', 'tblTempVendorCDR_20' ) start [2025-03-10 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645889', 'tblTempVendorCDR_20' ) end [2025-03-10 00:37:17] Production.INFO: ProcessCDR(1,14645889,1,1,2) [2025-03-10 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645889', 'tblTempUsageDetail_20' ) start [2025-03-10 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645889', 'tblTempUsageDetail_20' ) end [2025-03-10 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:37:20] Production.INFO: ==12539== Releasing lock... [2025-03-10 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:37:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:38:05 [end_date_ymd] => 2025-03-10 00:38:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 21:38:05' and `end` < '2025-03-10 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-03-10 00:38:17] Production.INFO: count ==318 [2025-03-10 00:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:38:05 - End Time 2025-03-10 00:38:05 [2025-03-10 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645894', 'tblTempUsageDetail_20' ) start [2025-03-10 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645894', 'tblTempUsageDetail_20' ) end [2025-03-10 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645894', 'tblTempVendorCDR_20' ) start [2025-03-10 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645894', 'tblTempVendorCDR_20' ) end [2025-03-10 00:38:17] Production.INFO: ProcessCDR(1,14645894,1,1,2) [2025-03-10 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645894', 'tblTempUsageDetail_20' ) start [2025-03-10 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645894', 'tblTempUsageDetail_20' ) end [2025-03-10 00:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:38:20] Production.INFO: ==12659== Releasing lock... [2025-03-10 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:38:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:39:05 [end_date_ymd] => 2025-03-10 00:39:05 [RateCDR] => 1 ) [2025-03-10 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:39:05' and `end` < '2025-03-10 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:39:17] Production.INFO: count ==315 [2025-03-10 00:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:39:05 - End Time 2025-03-10 00:39:05 [2025-03-10 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645899', 'tblTempUsageDetail_20' ) start [2025-03-10 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645899', 'tblTempUsageDetail_20' ) end [2025-03-10 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645899', 'tblTempVendorCDR_20' ) start [2025-03-10 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645899', 'tblTempVendorCDR_20' ) end [2025-03-10 00:39:17] Production.INFO: ProcessCDR(1,14645899,1,1,2) [2025-03-10 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645899', 'tblTempUsageDetail_20' ) start [2025-03-10 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645899', 'tblTempUsageDetail_20' ) end [2025-03-10 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:39:20] Production.INFO: ==12737== Releasing lock... [2025-03-10 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:39:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:40:06 [end_date_ymd] => 2025-03-10 00:40:06 [RateCDR] => 1 ) [2025-03-10 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-03-09 21:40:06' and `end` < '2025-03-10 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-03-10 00:40:18] Production.INFO: count ==315 [2025-03-10 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:40:06 - End Time 2025-03-10 00:40:06 [2025-03-10 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645905', 'tblTempUsageDetail_20' ) start [2025-03-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645905', 'tblTempUsageDetail_20' ) end [2025-03-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645905', 'tblTempVendorCDR_20' ) start [2025-03-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645905', 'tblTempVendorCDR_20' ) end [2025-03-10 00:40:18] Production.INFO: ProcessCDR(1,14645905,1,1,2) [2025-03-10 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645905', 'tblTempUsageDetail_20' ) start [2025-03-10 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645905', 'tblTempUsageDetail_20' ) end [2025-03-10 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:40:23] Production.INFO: ==12818== Releasing lock... [2025-03-10 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:40:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:41:05 [end_date_ymd] => 2025-03-10 00:41:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 21:41:05' and `end` < '2025-03-10 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-03-10 00:41:17] Production.INFO: count ==315 [2025-03-10 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:41:05 - End Time 2025-03-10 00:41:05 [2025-03-10 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645910', 'tblTempUsageDetail_20' ) start [2025-03-10 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645910', 'tblTempUsageDetail_20' ) end [2025-03-10 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645910', 'tblTempVendorCDR_20' ) start [2025-03-10 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645910', 'tblTempVendorCDR_20' ) end [2025-03-10 00:41:17] Production.INFO: ProcessCDR(1,14645910,1,1,2) [2025-03-10 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645910', 'tblTempUsageDetail_20' ) start [2025-03-10 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645910', 'tblTempUsageDetail_20' ) end [2025-03-10 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:41:21] Production.INFO: ==12893== Releasing lock... [2025-03-10 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:42:06 [end_date_ymd] => 2025-03-10 00:42:06 [RateCDR] => 1 ) [2025-03-10 00:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:42:06' and `end` < '2025-03-10 00:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:42:18] Production.INFO: count ==316 [2025-03-10 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:42:06 - End Time 2025-03-10 00:42:06 [2025-03-10 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645915', 'tblTempUsageDetail_20' ) start [2025-03-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645915', 'tblTempUsageDetail_20' ) end [2025-03-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645915', 'tblTempVendorCDR_20' ) start [2025-03-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645915', 'tblTempVendorCDR_20' ) end [2025-03-10 00:42:18] Production.INFO: ProcessCDR(1,14645915,1,1,2) [2025-03-10 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645915', 'tblTempUsageDetail_20' ) start [2025-03-10 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645915', 'tblTempUsageDetail_20' ) end [2025-03-10 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:42:22] Production.INFO: ==12977== Releasing lock... [2025-03-10 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:42:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:43:05 [end_date_ymd] => 2025-03-10 00:43:05 [RateCDR] => 1 ) [2025-03-10 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:43:05' and `end` < '2025-03-10 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:43:17] Production.INFO: count ==317 [2025-03-10 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:43:05 - End Time 2025-03-10 00:43:05 [2025-03-10 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645920', 'tblTempUsageDetail_20' ) start [2025-03-10 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645920', 'tblTempUsageDetail_20' ) end [2025-03-10 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645920', 'tblTempVendorCDR_20' ) start [2025-03-10 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645920', 'tblTempVendorCDR_20' ) end [2025-03-10 00:43:17] Production.INFO: ProcessCDR(1,14645920,1,1,2) [2025-03-10 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645920', 'tblTempUsageDetail_20' ) start [2025-03-10 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645920', 'tblTempUsageDetail_20' ) end [2025-03-10 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:43:22] Production.INFO: ==13051== Releasing lock... [2025-03-10 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:43:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:44:05 [end_date_ymd] => 2025-03-10 00:44:05 [RateCDR] => 1 ) [2025-03-10 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:44:05' and `end` < '2025-03-10 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:44:18] Production.INFO: count ==317 [2025-03-10 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:44:05 - End Time 2025-03-10 00:44:05 [2025-03-10 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645925', 'tblTempUsageDetail_20' ) start [2025-03-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645925', 'tblTempUsageDetail_20' ) end [2025-03-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645925', 'tblTempVendorCDR_20' ) start [2025-03-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645925', 'tblTempVendorCDR_20' ) end [2025-03-10 00:44:18] Production.INFO: ProcessCDR(1,14645925,1,1,2) [2025-03-10 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645925', 'tblTempUsageDetail_20' ) start [2025-03-10 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645925', 'tblTempUsageDetail_20' ) end [2025-03-10 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:44:21] Production.INFO: ==13136== Releasing lock... [2025-03-10 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:44:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:45:05 [end_date_ymd] => 2025-03-10 00:45:05 [RateCDR] => 1 ) [2025-03-10 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:45:05' and `end` < '2025-03-10 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:45:17] Production.INFO: count ==312 [2025-03-10 00:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:45:05 - End Time 2025-03-10 00:45:05 [2025-03-10 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645930', 'tblTempUsageDetail_20' ) start [2025-03-10 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645930', 'tblTempUsageDetail_20' ) end [2025-03-10 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645930', 'tblTempVendorCDR_20' ) start [2025-03-10 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645930', 'tblTempVendorCDR_20' ) end [2025-03-10 00:45:17] Production.INFO: ProcessCDR(1,14645930,1,1,2) [2025-03-10 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645930', 'tblTempUsageDetail_20' ) start [2025-03-10 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645930', 'tblTempUsageDetail_20' ) end [2025-03-10 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:45:20] Production.INFO: ==13213== Releasing lock... [2025-03-10 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:45:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:46:06 [end_date_ymd] => 2025-03-10 00:46:06 [RateCDR] => 1 ) [2025-03-10 00:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:46:06' and `end` < '2025-03-10 00:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:46:18] Production.INFO: count ==315 [2025-03-10 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:46:06 - End Time 2025-03-10 00:46:06 [2025-03-10 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645935', 'tblTempUsageDetail_20' ) start [2025-03-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645935', 'tblTempUsageDetail_20' ) end [2025-03-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645935', 'tblTempVendorCDR_20' ) start [2025-03-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645935', 'tblTempVendorCDR_20' ) end [2025-03-10 00:46:18] Production.INFO: ProcessCDR(1,14645935,1,1,2) [2025-03-10 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645935', 'tblTempUsageDetail_20' ) start [2025-03-10 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645935', 'tblTempUsageDetail_20' ) end [2025-03-10 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:46:21] Production.INFO: ==13286== Releasing lock... [2025-03-10 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:46:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:47:05 [end_date_ymd] => 2025-03-10 00:47:05 [RateCDR] => 1 ) [2025-03-10 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:47:05' and `end` < '2025-03-10 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:47:17] Production.INFO: count ==316 [2025-03-10 00:47:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:47:05 - End Time 2025-03-10 00:47:05 [2025-03-10 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645940', 'tblTempUsageDetail_20' ) start [2025-03-10 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645940', 'tblTempUsageDetail_20' ) end [2025-03-10 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645940', 'tblTempVendorCDR_20' ) start [2025-03-10 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645940', 'tblTempVendorCDR_20' ) end [2025-03-10 00:47:17] Production.INFO: ProcessCDR(1,14645940,1,1,2) [2025-03-10 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645940', 'tblTempUsageDetail_20' ) start [2025-03-10 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645940', 'tblTempUsageDetail_20' ) end [2025-03-10 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:47:20] Production.INFO: ==13357== Releasing lock... [2025-03-10 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:47:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:48:05 [end_date_ymd] => 2025-03-10 00:48:05 [RateCDR] => 1 ) [2025-03-10 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:48:05' and `end` < '2025-03-10 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:48:17] Production.INFO: count ==316 [2025-03-10 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:48:05 - End Time 2025-03-10 00:48:05 [2025-03-10 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645945', 'tblTempUsageDetail_20' ) start [2025-03-10 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645945', 'tblTempUsageDetail_20' ) end [2025-03-10 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645945', 'tblTempVendorCDR_20' ) start [2025-03-10 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645945', 'tblTempVendorCDR_20' ) end [2025-03-10 00:48:17] Production.INFO: ProcessCDR(1,14645945,1,1,2) [2025-03-10 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645945', 'tblTempUsageDetail_20' ) start [2025-03-10 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645945', 'tblTempUsageDetail_20' ) end [2025-03-10 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:48:21] Production.INFO: ==13431== Releasing lock... [2025-03-10 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:48:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:49:05 [end_date_ymd] => 2025-03-10 00:49:05 [RateCDR] => 1 ) [2025-03-10 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:49:05' and `end` < '2025-03-10 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:49:17] Production.INFO: count ==315 [2025-03-10 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:49:05 - End Time 2025-03-10 00:49:05 [2025-03-10 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645950', 'tblTempUsageDetail_20' ) start [2025-03-10 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645950', 'tblTempUsageDetail_20' ) end [2025-03-10 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645950', 'tblTempVendorCDR_20' ) start [2025-03-10 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645950', 'tblTempVendorCDR_20' ) end [2025-03-10 00:49:17] Production.INFO: ProcessCDR(1,14645950,1,1,2) [2025-03-10 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645950', 'tblTempUsageDetail_20' ) start [2025-03-10 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645950', 'tblTempUsageDetail_20' ) end [2025-03-10 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:49:20] Production.INFO: ==13505== Releasing lock... [2025-03-10 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:49:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:50:06 [end_date_ymd] => 2025-03-10 00:50:06 [RateCDR] => 1 ) [2025-03-10 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:50:06' and `end` < '2025-03-10 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:50:18] Production.INFO: count ==324 [2025-03-10 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:50:06 - End Time 2025-03-10 00:50:06 [2025-03-10 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645955', 'tblTempUsageDetail_20' ) start [2025-03-10 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645955', 'tblTempUsageDetail_20' ) end [2025-03-10 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645955', 'tblTempVendorCDR_20' ) start [2025-03-10 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645955', 'tblTempVendorCDR_20' ) end [2025-03-10 00:50:18] Production.INFO: ProcessCDR(1,14645955,1,1,2) [2025-03-10 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645955', 'tblTempUsageDetail_20' ) start [2025-03-10 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645955', 'tblTempUsageDetail_20' ) end [2025-03-10 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:50:21] Production.INFO: ==13588== Releasing lock... [2025-03-10 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:50:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:51:04 [end_date_ymd] => 2025-03-10 00:51:04 [RateCDR] => 1 ) [2025-03-10 00: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-03-09 21:51:04' and `end` < '2025-03-10 00: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-03-10 00:51:16] Production.INFO: count ==327 [2025-03-10 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:51:04 - End Time 2025-03-10 00:51:04 [2025-03-10 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645961', 'tblTempUsageDetail_20' ) start [2025-03-10 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645961', 'tblTempUsageDetail_20' ) end [2025-03-10 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645961', 'tblTempVendorCDR_20' ) start [2025-03-10 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645961', 'tblTempVendorCDR_20' ) end [2025-03-10 00:51:17] Production.INFO: ProcessCDR(1,14645961,1,1,2) [2025-03-10 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645961', 'tblTempUsageDetail_20' ) start [2025-03-10 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645961', 'tblTempUsageDetail_20' ) end [2025-03-10 00:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:51:20] Production.INFO: ==13661== Releasing lock... [2025-03-10 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:51:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:52:05 [end_date_ymd] => 2025-03-10 00:52:05 [RateCDR] => 1 ) [2025-03-10 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:52:05' and `end` < '2025-03-10 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:52:17] Production.INFO: count ==327 [2025-03-10 00:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:52:05 - End Time 2025-03-10 00:52:05 [2025-03-10 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645966', 'tblTempUsageDetail_20' ) start [2025-03-10 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645966', 'tblTempUsageDetail_20' ) end [2025-03-10 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645966', 'tblTempVendorCDR_20' ) start [2025-03-10 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645966', 'tblTempVendorCDR_20' ) end [2025-03-10 00:52:17] Production.INFO: ProcessCDR(1,14645966,1,1,2) [2025-03-10 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645966', 'tblTempUsageDetail_20' ) start [2025-03-10 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645966', 'tblTempUsageDetail_20' ) end [2025-03-10 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:52:21] Production.INFO: ==13736== Releasing lock... [2025-03-10 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:52:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:53:05 [end_date_ymd] => 2025-03-10 00:53:05 [RateCDR] => 1 ) [2025-03-10 00:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:53:05' and `end` < '2025-03-10 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:53:18] Production.INFO: count ==328 [2025-03-10 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:53:05 - End Time 2025-03-10 00:53:05 [2025-03-10 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645971', 'tblTempUsageDetail_20' ) start [2025-03-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645971', 'tblTempUsageDetail_20' ) end [2025-03-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645971', 'tblTempVendorCDR_20' ) start [2025-03-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645971', 'tblTempVendorCDR_20' ) end [2025-03-10 00:53:18] Production.INFO: ProcessCDR(1,14645971,1,1,2) [2025-03-10 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645971', 'tblTempUsageDetail_20' ) start [2025-03-10 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645971', 'tblTempUsageDetail_20' ) end [2025-03-10 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:53:21] Production.INFO: ==13814== Releasing lock... [2025-03-10 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:54:05 [end_date_ymd] => 2025-03-10 00:54:05 [RateCDR] => 1 ) [2025-03-10 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:54:05' and `end` < '2025-03-10 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:54:17] Production.INFO: count ==328 [2025-03-10 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:54:05 - End Time 2025-03-10 00:54:05 [2025-03-10 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645976', 'tblTempUsageDetail_20' ) start [2025-03-10 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645976', 'tblTempUsageDetail_20' ) end [2025-03-10 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645976', 'tblTempVendorCDR_20' ) start [2025-03-10 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645976', 'tblTempVendorCDR_20' ) end [2025-03-10 00:54:17] Production.INFO: ProcessCDR(1,14645976,1,1,2) [2025-03-10 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645976', 'tblTempUsageDetail_20' ) start [2025-03-10 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645976', 'tblTempUsageDetail_20' ) end [2025-03-10 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:54:20] Production.INFO: ==13931== Releasing lock... [2025-03-10 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:54:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:55:06 [end_date_ymd] => 2025-03-10 00:55:06 [RateCDR] => 1 ) [2025-03-10 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:55:06' and `end` < '2025-03-10 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:55:18] Production.INFO: count ==320 [2025-03-10 00:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 21:55:06 - End Time 2025-03-10 00:55:06 [2025-03-10 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645981', 'tblTempUsageDetail_20' ) start [2025-03-10 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645981', 'tblTempUsageDetail_20' ) end [2025-03-10 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645981', 'tblTempVendorCDR_20' ) start [2025-03-10 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645981', 'tblTempVendorCDR_20' ) end [2025-03-10 00:55:18] Production.INFO: ProcessCDR(1,14645981,1,1,2) [2025-03-10 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645981', 'tblTempUsageDetail_20' ) start [2025-03-10 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645981', 'tblTempUsageDetail_20' ) end [2025-03-10 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:55:21] Production.INFO: ==14010== Releasing lock... [2025-03-10 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:55:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:56:05 [end_date_ymd] => 2025-03-10 00:56:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 21:56:05' and `end` < '2025-03-10 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-03-10 00:56:17] Production.INFO: count ==319 [2025-03-10 00:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:56:05 - End Time 2025-03-10 00:56:05 [2025-03-10 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645986', 'tblTempUsageDetail_20' ) start [2025-03-10 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645986', 'tblTempUsageDetail_20' ) end [2025-03-10 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645986', 'tblTempVendorCDR_20' ) start [2025-03-10 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645986', 'tblTempVendorCDR_20' ) end [2025-03-10 00:56:17] Production.INFO: ProcessCDR(1,14645986,1,1,2) [2025-03-10 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645986', 'tblTempUsageDetail_20' ) start [2025-03-10 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645986', 'tblTempUsageDetail_20' ) end [2025-03-10 00:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:56:20] Production.INFO: ==14087== Releasing lock... [2025-03-10 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:56:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:57:05 [end_date_ymd] => 2025-03-10 00:57:05 [RateCDR] => 1 ) [2025-03-10 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:57:05' and `end` < '2025-03-10 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:57:17] Production.INFO: count ==319 [2025-03-10 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:57:05 - End Time 2025-03-10 00:57:05 [2025-03-10 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645991', 'tblTempUsageDetail_20' ) start [2025-03-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645991', 'tblTempUsageDetail_20' ) end [2025-03-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645991', 'tblTempVendorCDR_20' ) start [2025-03-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645991', 'tblTempVendorCDR_20' ) end [2025-03-10 00:57:17] Production.INFO: ProcessCDR(1,14645991,1,1,2) [2025-03-10 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645991', 'tblTempUsageDetail_20' ) start [2025-03-10 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645991', 'tblTempUsageDetail_20' ) end [2025-03-10 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:57:22] Production.INFO: ==14160== Releasing lock... [2025-03-10 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:57:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:58:04 [end_date_ymd] => 2025-03-10 00:58:04 [RateCDR] => 1 ) [2025-03-10 00:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:58:04' and `end` < '2025-03-10 00:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:58:16] Production.INFO: count ==319 [2025-03-10 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:58:04 - End Time 2025-03-10 00:58:04 [2025-03-10 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645996', 'tblTempUsageDetail_20' ) start [2025-03-10 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14645996', 'tblTempUsageDetail_20' ) end [2025-03-10 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645996', 'tblTempVendorCDR_20' ) start [2025-03-10 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14645996', 'tblTempVendorCDR_20' ) end [2025-03-10 00:58:17] Production.INFO: ProcessCDR(1,14645996,1,1,2) [2025-03-10 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14645996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14645996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14645996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14645996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645996', 'tblTempUsageDetail_20' ) start [2025-03-10 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14645996', 'tblTempUsageDetail_20' ) end [2025-03-10 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:58:21] Production.INFO: ==14232== Releasing lock... [2025-03-10 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 21:59:05 [end_date_ymd] => 2025-03-10 00:59:05 [RateCDR] => 1 ) [2025-03-10 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 21:59:05' and `end` < '2025-03-10 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 00:59:17] Production.INFO: count ==319 [2025-03-10 00:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 21:59:05 - End Time 2025-03-10 00:59:05 [2025-03-10 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646001', 'tblTempUsageDetail_20' ) start [2025-03-10 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646001', 'tblTempUsageDetail_20' ) end [2025-03-10 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646001', 'tblTempVendorCDR_20' ) start [2025-03-10 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646001', 'tblTempVendorCDR_20' ) end [2025-03-10 00:59:17] Production.INFO: ProcessCDR(1,14646001,1,1,2) [2025-03-10 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646001', 'tblTempUsageDetail_20' ) start [2025-03-10 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646001', 'tblTempUsageDetail_20' ) end [2025-03-10 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 00:59:21] Production.INFO: ==14305== Releasing lock... [2025-03-10 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 00:59:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:00:06 [end_date_ymd] => 2025-03-10 01:00:06 [RateCDR] => 1 ) [2025-03-10 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:00:06' and `end` < '2025-03-10 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:00:18] Production.INFO: count ==329 [2025-03-10 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:00:06 - End Time 2025-03-10 01:00:06 [2025-03-10 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646007', 'tblTempUsageDetail_20' ) start [2025-03-10 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646007', 'tblTempUsageDetail_20' ) end [2025-03-10 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646007', 'tblTempVendorCDR_20' ) start [2025-03-10 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646007', 'tblTempVendorCDR_20' ) end [2025-03-10 01:00:18] Production.INFO: ProcessCDR(1,14646007,1,1,2) [2025-03-10 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646007', 'tblTempUsageDetail_20' ) start [2025-03-10 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646007', 'tblTempUsageDetail_20' ) end [2025-03-10 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:00:21] Production.INFO: ==14385== Releasing lock... [2025-03-10 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:00:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:01:05 [end_date_ymd] => 2025-03-10 01:01:05 [RateCDR] => 1 ) [2025-03-10 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:01:05' and `end` < '2025-03-10 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:01:17] Production.INFO: count ==332 [2025-03-10 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:01:05 - End Time 2025-03-10 01:01:05 [2025-03-10 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646012', 'tblTempUsageDetail_20' ) start [2025-03-10 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646012', 'tblTempUsageDetail_20' ) end [2025-03-10 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646012', 'tblTempVendorCDR_20' ) start [2025-03-10 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646012', 'tblTempVendorCDR_20' ) end [2025-03-10 01:01:17] Production.INFO: ProcessCDR(1,14646012,1,1,2) [2025-03-10 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646012', 'tblTempUsageDetail_20' ) start [2025-03-10 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646012', 'tblTempUsageDetail_20' ) end [2025-03-10 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:01:20] Production.INFO: ==14476== Releasing lock... [2025-03-10 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:01:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:02:05 [end_date_ymd] => 2025-03-10 01:02:05 [RateCDR] => 1 ) [2025-03-10 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:02:05' and `end` < '2025-03-10 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:02:17] Production.INFO: count ==336 [2025-03-10 01:02:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:02:05 - End Time 2025-03-10 01:02:05 [2025-03-10 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646017', 'tblTempUsageDetail_20' ) start [2025-03-10 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646017', 'tblTempUsageDetail_20' ) end [2025-03-10 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646017', 'tblTempVendorCDR_20' ) start [2025-03-10 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646017', 'tblTempVendorCDR_20' ) end [2025-03-10 01:02:17] Production.INFO: ProcessCDR(1,14646017,1,1,2) [2025-03-10 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646017', 'tblTempUsageDetail_20' ) start [2025-03-10 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646017', 'tblTempUsageDetail_20' ) end [2025-03-10 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:02:21] Production.INFO: ==14551== Releasing lock... [2025-03-10 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:02:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:03:05 [end_date_ymd] => 2025-03-10 01:03:05 [RateCDR] => 1 ) [2025-03-10 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:03:05' and `end` < '2025-03-10 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:03:17] Production.INFO: count ==331 [2025-03-10 01:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:03:05 - End Time 2025-03-10 01:03:05 [2025-03-10 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646022', 'tblTempUsageDetail_20' ) start [2025-03-10 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646022', 'tblTempUsageDetail_20' ) end [2025-03-10 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646022', 'tblTempVendorCDR_20' ) start [2025-03-10 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646022', 'tblTempVendorCDR_20' ) end [2025-03-10 01:03:17] Production.INFO: ProcessCDR(1,14646022,1,1,2) [2025-03-10 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646022', 'tblTempUsageDetail_20' ) start [2025-03-10 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646022', 'tblTempUsageDetail_20' ) end [2025-03-10 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:03:20] Production.INFO: ==14625== Releasing lock... [2025-03-10 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:03:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:04:05 [end_date_ymd] => 2025-03-10 01:04:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:04:05' and `end` < '2025-03-10 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-03-10 01:04:17] Production.INFO: count ==329 [2025-03-10 01:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:04:05 - End Time 2025-03-10 01:04:05 [2025-03-10 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646027', 'tblTempUsageDetail_20' ) start [2025-03-10 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646027', 'tblTempUsageDetail_20' ) end [2025-03-10 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646027', 'tblTempVendorCDR_20' ) start [2025-03-10 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646027', 'tblTempVendorCDR_20' ) end [2025-03-10 01:04:17] Production.INFO: ProcessCDR(1,14646027,1,1,2) [2025-03-10 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646027', 'tblTempUsageDetail_20' ) start [2025-03-10 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646027', 'tblTempUsageDetail_20' ) end [2025-03-10 01:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:04:20] Production.INFO: ==14698== Releasing lock... [2025-03-10 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:04:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:05:05 [end_date_ymd] => 2025-03-10 01:05:05 [RateCDR] => 1 ) [2025-03-10 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:05:05' and `end` < '2025-03-10 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:05:17] Production.INFO: count ==327 [2025-03-10 01:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:05:05 - End Time 2025-03-10 01:05:05 [2025-03-10 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646032', 'tblTempUsageDetail_20' ) start [2025-03-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646032', 'tblTempUsageDetail_20' ) end [2025-03-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646032', 'tblTempVendorCDR_20' ) start [2025-03-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646032', 'tblTempVendorCDR_20' ) end [2025-03-10 01:05:17] Production.INFO: ProcessCDR(1,14646032,1,1,2) [2025-03-10 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646032', 'tblTempUsageDetail_20' ) start [2025-03-10 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646032', 'tblTempUsageDetail_20' ) end [2025-03-10 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:05:20] Production.INFO: ==14774== Releasing lock... [2025-03-10 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:05:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:06:05 [end_date_ymd] => 2025-03-10 01:06:05 [RateCDR] => 1 ) [2025-03-10 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:06:05' and `end` < '2025-03-10 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:06:17] Production.INFO: count ==326 [2025-03-10 01:06:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:06:05 - End Time 2025-03-10 01:06:05 [2025-03-10 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646037', 'tblTempUsageDetail_20' ) start [2025-03-10 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646037', 'tblTempUsageDetail_20' ) end [2025-03-10 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646037', 'tblTempVendorCDR_20' ) start [2025-03-10 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646037', 'tblTempVendorCDR_20' ) end [2025-03-10 01:06:17] Production.INFO: ProcessCDR(1,14646037,1,1,2) [2025-03-10 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646037', 'tblTempUsageDetail_20' ) start [2025-03-10 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646037', 'tblTempUsageDetail_20' ) end [2025-03-10 01:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:06:20] Production.INFO: ==14852== Releasing lock... [2025-03-10 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:06:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:07:05 [end_date_ymd] => 2025-03-10 01:07:05 [RateCDR] => 1 ) [2025-03-10 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:07:05' and `end` < '2025-03-10 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:07:17] Production.INFO: count ==323 [2025-03-10 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:07:05 - End Time 2025-03-10 01:07:05 [2025-03-10 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646042', 'tblTempUsageDetail_20' ) start [2025-03-10 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646042', 'tblTempUsageDetail_20' ) end [2025-03-10 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646042', 'tblTempVendorCDR_20' ) start [2025-03-10 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646042', 'tblTempVendorCDR_20' ) end [2025-03-10 01:07:17] Production.INFO: ProcessCDR(1,14646042,1,1,2) [2025-03-10 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646042', 'tblTempUsageDetail_20' ) start [2025-03-10 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646042', 'tblTempUsageDetail_20' ) end [2025-03-10 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:07:20] Production.INFO: ==14927== Releasing lock... [2025-03-10 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:07:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:08:04 [end_date_ymd] => 2025-03-10 01:08:04 [RateCDR] => 1 ) [2025-03-10 01: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-03-09 22:08:04' and `end` < '2025-03-10 01: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-03-10 01:08:16] Production.INFO: count ==317 [2025-03-10 01:08:16] Production.ERROR: pbx CDR StartTime 2025-03-09 22:08:04 - End Time 2025-03-10 01:08:04 [2025-03-10 01:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646047', 'tblTempUsageDetail_20' ) start [2025-03-10 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646047', 'tblTempUsageDetail_20' ) end [2025-03-10 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646047', 'tblTempVendorCDR_20' ) start [2025-03-10 01:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646047', 'tblTempVendorCDR_20' ) end [2025-03-10 01:08:16] Production.INFO: ProcessCDR(1,14646047,1,1,2) [2025-03-10 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646047', 'tblTempUsageDetail_20' ) start [2025-03-10 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646047', 'tblTempUsageDetail_20' ) end [2025-03-10 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:08:20] Production.INFO: ==15004== Releasing lock... [2025-03-10 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:08:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:09:05 [end_date_ymd] => 2025-03-10 01:09:05 [RateCDR] => 1 ) [2025-03-10 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:09:05' and `end` < '2025-03-10 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:09:18] Production.INFO: count ==316 [2025-03-10 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:09:05 - End Time 2025-03-10 01:09:05 [2025-03-10 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646052', 'tblTempUsageDetail_20' ) start [2025-03-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646052', 'tblTempUsageDetail_20' ) end [2025-03-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646052', 'tblTempVendorCDR_20' ) start [2025-03-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646052', 'tblTempVendorCDR_20' ) end [2025-03-10 01:09:18] Production.INFO: ProcessCDR(1,14646052,1,1,2) [2025-03-10 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646052', 'tblTempUsageDetail_20' ) start [2025-03-10 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646052', 'tblTempUsageDetail_20' ) end [2025-03-10 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:09:21] Production.INFO: ==15126== Releasing lock... [2025-03-10 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:10:06 [end_date_ymd] => 2025-03-10 01:10:06 [RateCDR] => 1 ) [2025-03-10 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:10:06' and `end` < '2025-03-10 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:10:18] Production.INFO: count ==326 [2025-03-10 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:10:06 - End Time 2025-03-10 01:10:06 [2025-03-10 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646058', 'tblTempUsageDetail_20' ) start [2025-03-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646058', 'tblTempUsageDetail_20' ) end [2025-03-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646058', 'tblTempVendorCDR_20' ) start [2025-03-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646058', 'tblTempVendorCDR_20' ) end [2025-03-10 01:10:18] Production.INFO: ProcessCDR(1,14646058,1,1,2) [2025-03-10 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646058', 'tblTempUsageDetail_20' ) start [2025-03-10 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646058', 'tblTempUsageDetail_20' ) end [2025-03-10 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:10:21] Production.INFO: ==15200== Releasing lock... [2025-03-10 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:10:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:11:05 [end_date_ymd] => 2025-03-10 01:11:05 [RateCDR] => 1 ) [2025-03-10 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:11:05' and `end` < '2025-03-10 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:11:17] Production.INFO: count ==327 [2025-03-10 01:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:11:05 - End Time 2025-03-10 01:11:05 [2025-03-10 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646063', 'tblTempUsageDetail_20' ) start [2025-03-10 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646063', 'tblTempUsageDetail_20' ) end [2025-03-10 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646063', 'tblTempVendorCDR_20' ) start [2025-03-10 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646063', 'tblTempVendorCDR_20' ) end [2025-03-10 01:11:17] Production.INFO: ProcessCDR(1,14646063,1,1,2) [2025-03-10 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646063', 'tblTempUsageDetail_20' ) start [2025-03-10 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646063', 'tblTempUsageDetail_20' ) end [2025-03-10 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:11:20] Production.INFO: ==15275== Releasing lock... [2025-03-10 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:11:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:12:04 [end_date_ymd] => 2025-03-10 01:12:04 [RateCDR] => 1 ) [2025-03-10 01:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:12:04' and `end` < '2025-03-10 01:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:12:16] Production.INFO: count ==327 [2025-03-10 01:12:16] Production.ERROR: pbx CDR StartTime 2025-03-09 22:12:04 - End Time 2025-03-10 01:12:04 [2025-03-10 01:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646068', 'tblTempUsageDetail_20' ) start [2025-03-10 01:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646068', 'tblTempUsageDetail_20' ) end [2025-03-10 01:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646068', 'tblTempVendorCDR_20' ) start [2025-03-10 01:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646068', 'tblTempVendorCDR_20' ) end [2025-03-10 01:12:16] Production.INFO: ProcessCDR(1,14646068,1,1,2) [2025-03-10 01:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646068', 'tblTempUsageDetail_20' ) start [2025-03-10 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646068', 'tblTempUsageDetail_20' ) end [2025-03-10 01:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:12:20] Production.INFO: ==15348== Releasing lock... [2025-03-10 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:12:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:13:05 [end_date_ymd] => 2025-03-10 01:13:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:13:05' and `end` < '2025-03-10 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-03-10 01:13:17] Production.INFO: count ==326 [2025-03-10 01:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:13:05 - End Time 2025-03-10 01:13:05 [2025-03-10 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646073', 'tblTempUsageDetail_20' ) start [2025-03-10 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646073', 'tblTempUsageDetail_20' ) end [2025-03-10 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646073', 'tblTempVendorCDR_20' ) start [2025-03-10 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646073', 'tblTempVendorCDR_20' ) end [2025-03-10 01:13:17] Production.INFO: ProcessCDR(1,14646073,1,1,2) [2025-03-10 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646073', 'tblTempUsageDetail_20' ) start [2025-03-10 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646073', 'tblTempUsageDetail_20' ) end [2025-03-10 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:13:20] Production.INFO: ==15422== Releasing lock... [2025-03-10 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:13:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:14:05 [end_date_ymd] => 2025-03-10 01:14:05 [RateCDR] => 1 ) [2025-03-10 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:14:05' and `end` < '2025-03-10 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:14:18] Production.INFO: count ==328 [2025-03-10 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:14:05 - End Time 2025-03-10 01:14:05 [2025-03-10 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646078', 'tblTempUsageDetail_20' ) start [2025-03-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646078', 'tblTempUsageDetail_20' ) end [2025-03-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646078', 'tblTempVendorCDR_20' ) start [2025-03-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646078', 'tblTempVendorCDR_20' ) end [2025-03-10 01:14:18] Production.INFO: ProcessCDR(1,14646078,1,1,2) [2025-03-10 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646078', 'tblTempUsageDetail_20' ) start [2025-03-10 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646078', 'tblTempUsageDetail_20' ) end [2025-03-10 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:14:21] Production.INFO: ==15496== Releasing lock... [2025-03-10 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:14:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:15:06 [end_date_ymd] => 2025-03-10 01:15:06 [RateCDR] => 1 ) [2025-03-10 01:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:15:06' and `end` < '2025-03-10 01:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:15:18] Production.INFO: count ==340 [2025-03-10 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:15:06 - End Time 2025-03-10 01:15:06 [2025-03-10 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646083', 'tblTempUsageDetail_20' ) start [2025-03-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646083', 'tblTempUsageDetail_20' ) end [2025-03-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646083', 'tblTempVendorCDR_20' ) start [2025-03-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646083', 'tblTempVendorCDR_20' ) end [2025-03-10 01:15:18] Production.INFO: ProcessCDR(1,14646083,1,1,2) [2025-03-10 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646083', 'tblTempUsageDetail_20' ) start [2025-03-10 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646083', 'tblTempUsageDetail_20' ) end [2025-03-10 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:15:22] Production.INFO: ==15582== Releasing lock... [2025-03-10 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:15:22] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:16:06 [end_date_ymd] => 2025-03-10 01:16:06 [RateCDR] => 1 ) [2025-03-10 01:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:16:06' and `end` < '2025-03-10 01:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:16:18] Production.INFO: count ==348 [2025-03-10 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:16:06 - End Time 2025-03-10 01:16:06 [2025-03-10 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646088', 'tblTempUsageDetail_20' ) start [2025-03-10 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646088', 'tblTempUsageDetail_20' ) end [2025-03-10 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646088', 'tblTempVendorCDR_20' ) start [2025-03-10 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646088', 'tblTempVendorCDR_20' ) end [2025-03-10 01:16:18] Production.INFO: ProcessCDR(1,14646088,1,1,2) [2025-03-10 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646088', 'tblTempUsageDetail_20' ) start [2025-03-10 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646088', 'tblTempUsageDetail_20' ) end [2025-03-10 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:16:21] Production.INFO: ==15655== Releasing lock... [2025-03-10 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:17:05 [end_date_ymd] => 2025-03-10 01:17:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:17:05' and `end` < '2025-03-10 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-03-10 01:17:17] Production.INFO: count ==348 [2025-03-10 01:17:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:17:05 - End Time 2025-03-10 01:17:05 [2025-03-10 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646093', 'tblTempUsageDetail_20' ) start [2025-03-10 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646093', 'tblTempUsageDetail_20' ) end [2025-03-10 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646093', 'tblTempVendorCDR_20' ) start [2025-03-10 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646093', 'tblTempVendorCDR_20' ) end [2025-03-10 01:17:17] Production.INFO: ProcessCDR(1,14646093,1,1,2) [2025-03-10 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646093', 'tblTempUsageDetail_20' ) start [2025-03-10 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646093', 'tblTempUsageDetail_20' ) end [2025-03-10 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:17:20] Production.INFO: ==15727== Releasing lock... [2025-03-10 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:17:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:18:06 [end_date_ymd] => 2025-03-10 01:18:06 [RateCDR] => 1 ) [2025-03-10 01:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:18:06' and `end` < '2025-03-10 01:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:18:18] Production.INFO: count ==348 [2025-03-10 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:18:06 - End Time 2025-03-10 01:18:06 [2025-03-10 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646098', 'tblTempUsageDetail_20' ) start [2025-03-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646098', 'tblTempUsageDetail_20' ) end [2025-03-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646098', 'tblTempVendorCDR_20' ) start [2025-03-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646098', 'tblTempVendorCDR_20' ) end [2025-03-10 01:18:18] Production.INFO: ProcessCDR(1,14646098,1,1,2) [2025-03-10 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646098', 'tblTempUsageDetail_20' ) start [2025-03-10 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646098', 'tblTempUsageDetail_20' ) end [2025-03-10 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:18:21] Production.INFO: ==15814== Releasing lock... [2025-03-10 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:19:05 [end_date_ymd] => 2025-03-10 01:19:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:19:05' and `end` < '2025-03-10 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-03-10 01:19:17] Production.INFO: count ==348 [2025-03-10 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:19:05 - End Time 2025-03-10 01:19:05 [2025-03-10 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646103', 'tblTempUsageDetail_20' ) start [2025-03-10 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646103', 'tblTempUsageDetail_20' ) end [2025-03-10 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646103', 'tblTempVendorCDR_20' ) start [2025-03-10 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646103', 'tblTempVendorCDR_20' ) end [2025-03-10 01:19:17] Production.INFO: ProcessCDR(1,14646103,1,1,2) [2025-03-10 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646103', 'tblTempUsageDetail_20' ) start [2025-03-10 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646103', 'tblTempUsageDetail_20' ) end [2025-03-10 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:19:20] Production.INFO: ==15886== Releasing lock... [2025-03-10 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:19:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:20:06 [end_date_ymd] => 2025-03-10 01:20:06 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:20:06' and `end` < '2025-03-10 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-03-10 01:20:18] Production.INFO: count ==356 [2025-03-10 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:20:06 - End Time 2025-03-10 01:20:06 [2025-03-10 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646109', 'tblTempUsageDetail_20' ) start [2025-03-10 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646109', 'tblTempUsageDetail_20' ) end [2025-03-10 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646109', 'tblTempVendorCDR_20' ) start [2025-03-10 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646109', 'tblTempVendorCDR_20' ) end [2025-03-10 01:20:18] Production.INFO: ProcessCDR(1,14646109,1,1,2) [2025-03-10 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646109', 'tblTempUsageDetail_20' ) start [2025-03-10 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646109', 'tblTempUsageDetail_20' ) end [2025-03-10 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:20:21] Production.INFO: ==15962== Releasing lock... [2025-03-10 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:20:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:21:05 [end_date_ymd] => 2025-03-10 01:21:05 [RateCDR] => 1 ) [2025-03-10 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:21:05' and `end` < '2025-03-10 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:21:17] Production.INFO: count ==352 [2025-03-10 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:21:05 - End Time 2025-03-10 01:21:05 [2025-03-10 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646114', 'tblTempUsageDetail_20' ) start [2025-03-10 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646114', 'tblTempUsageDetail_20' ) end [2025-03-10 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646114', 'tblTempVendorCDR_20' ) start [2025-03-10 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646114', 'tblTempVendorCDR_20' ) end [2025-03-10 01:21:17] Production.INFO: ProcessCDR(1,14646114,1,1,2) [2025-03-10 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646114', 'tblTempUsageDetail_20' ) start [2025-03-10 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646114', 'tblTempUsageDetail_20' ) end [2025-03-10 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:21:20] Production.INFO: ==16036== Releasing lock... [2025-03-10 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:21:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:22:05 [end_date_ymd] => 2025-03-10 01:22:05 [RateCDR] => 1 ) [2025-03-10 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:22:05' and `end` < '2025-03-10 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:22:17] Production.INFO: count ==352 [2025-03-10 01:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:22:05 - End Time 2025-03-10 01:22:05 [2025-03-10 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646119', 'tblTempUsageDetail_20' ) start [2025-03-10 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646119', 'tblTempUsageDetail_20' ) end [2025-03-10 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646119', 'tblTempVendorCDR_20' ) start [2025-03-10 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646119', 'tblTempVendorCDR_20' ) end [2025-03-10 01:22:17] Production.INFO: ProcessCDR(1,14646119,1,1,2) [2025-03-10 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646119', 'tblTempUsageDetail_20' ) start [2025-03-10 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646119', 'tblTempUsageDetail_20' ) end [2025-03-10 01:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:22:20] Production.INFO: ==16112== Releasing lock... [2025-03-10 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:22:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:23:05 [end_date_ymd] => 2025-03-10 01:23:05 [RateCDR] => 1 ) [2025-03-10 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:23:05' and `end` < '2025-03-10 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:23:17] Production.INFO: count ==352 [2025-03-10 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:23:05 - End Time 2025-03-10 01:23:05 [2025-03-10 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646124', 'tblTempUsageDetail_20' ) start [2025-03-10 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646124', 'tblTempUsageDetail_20' ) end [2025-03-10 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646124', 'tblTempVendorCDR_20' ) start [2025-03-10 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646124', 'tblTempVendorCDR_20' ) end [2025-03-10 01:23:17] Production.INFO: ProcessCDR(1,14646124,1,1,2) [2025-03-10 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646124', 'tblTempUsageDetail_20' ) start [2025-03-10 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646124', 'tblTempUsageDetail_20' ) end [2025-03-10 01:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:23:20] Production.INFO: ==16187== Releasing lock... [2025-03-10 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:23:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:24:06 [end_date_ymd] => 2025-03-10 01:24:06 [RateCDR] => 1 ) [2025-03-10 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:24:06' and `end` < '2025-03-10 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:24:18] Production.INFO: count ==351 [2025-03-10 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:24:06 - End Time 2025-03-10 01:24:06 [2025-03-10 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646129', 'tblTempUsageDetail_20' ) start [2025-03-10 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646129', 'tblTempUsageDetail_20' ) end [2025-03-10 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646129', 'tblTempVendorCDR_20' ) start [2025-03-10 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646129', 'tblTempVendorCDR_20' ) end [2025-03-10 01:24:18] Production.INFO: ProcessCDR(1,14646129,1,1,2) [2025-03-10 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646129', 'tblTempUsageDetail_20' ) start [2025-03-10 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646129', 'tblTempUsageDetail_20' ) end [2025-03-10 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:24:21] Production.INFO: ==16296== Releasing lock... [2025-03-10 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:25:04 [end_date_ymd] => 2025-03-10 01:25:04 [RateCDR] => 1 ) [2025-03-10 01:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:25:04' and `end` < '2025-03-10 01:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:25:17] Production.INFO: count ==353 [2025-03-10 01:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:25:04 - End Time 2025-03-10 01:25:04 [2025-03-10 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646134', 'tblTempUsageDetail_20' ) start [2025-03-10 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646134', 'tblTempUsageDetail_20' ) end [2025-03-10 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646134', 'tblTempVendorCDR_20' ) start [2025-03-10 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646134', 'tblTempVendorCDR_20' ) end [2025-03-10 01:25:17] Production.INFO: ProcessCDR(1,14646134,1,1,2) [2025-03-10 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646134', 'tblTempUsageDetail_20' ) start [2025-03-10 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646134', 'tblTempUsageDetail_20' ) end [2025-03-10 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:25:20] Production.INFO: ==16365== Releasing lock... [2025-03-10 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:25:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:26:05 [end_date_ymd] => 2025-03-10 01:26:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:26:05' and `end` < '2025-03-10 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-03-10 01:26:17] Production.INFO: count ==352 [2025-03-10 01:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:26:05 - End Time 2025-03-10 01:26:05 [2025-03-10 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646139', 'tblTempUsageDetail_20' ) start [2025-03-10 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646139', 'tblTempUsageDetail_20' ) end [2025-03-10 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646139', 'tblTempVendorCDR_20' ) start [2025-03-10 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646139', 'tblTempVendorCDR_20' ) end [2025-03-10 01:26:17] Production.INFO: ProcessCDR(1,14646139,1,1,2) [2025-03-10 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646139', 'tblTempUsageDetail_20' ) start [2025-03-10 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646139', 'tblTempUsageDetail_20' ) end [2025-03-10 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:26:21] Production.INFO: ==16439== Releasing lock... [2025-03-10 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:27:04 [end_date_ymd] => 2025-03-10 01:27:04 [RateCDR] => 1 ) [2025-03-10 01:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:27:04' and `end` < '2025-03-10 01:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:27:16] Production.INFO: count ==358 [2025-03-10 01:27:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:27:04 - End Time 2025-03-10 01:27:04 [2025-03-10 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646144', 'tblTempUsageDetail_20' ) start [2025-03-10 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646144', 'tblTempUsageDetail_20' ) end [2025-03-10 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646144', 'tblTempVendorCDR_20' ) start [2025-03-10 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646144', 'tblTempVendorCDR_20' ) end [2025-03-10 01:27:17] Production.INFO: ProcessCDR(1,14646144,1,1,2) [2025-03-10 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646144', 'tblTempUsageDetail_20' ) start [2025-03-10 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646144', 'tblTempUsageDetail_20' ) end [2025-03-10 01:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:27:20] Production.INFO: ==16512== Releasing lock... [2025-03-10 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:27:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:28:05 [end_date_ymd] => 2025-03-10 01:28:05 [RateCDR] => 1 ) [2025-03-10 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:28:05' and `end` < '2025-03-10 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:28:17] Production.INFO: count ==354 [2025-03-10 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:28:05 - End Time 2025-03-10 01:28:05 [2025-03-10 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646149', 'tblTempUsageDetail_20' ) start [2025-03-10 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646149', 'tblTempUsageDetail_20' ) end [2025-03-10 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646149', 'tblTempVendorCDR_20' ) start [2025-03-10 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646149', 'tblTempVendorCDR_20' ) end [2025-03-10 01:28:17] Production.INFO: ProcessCDR(1,14646149,1,1,2) [2025-03-10 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646149', 'tblTempUsageDetail_20' ) start [2025-03-10 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646149', 'tblTempUsageDetail_20' ) end [2025-03-10 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:28:21] Production.INFO: ==16583== Releasing lock... [2025-03-10 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:28:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:29:04 [end_date_ymd] => 2025-03-10 01:29:04 [RateCDR] => 1 ) [2025-03-10 01: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-03-09 22:29:04' and `end` < '2025-03-10 01: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-03-10 01:29:17] Production.INFO: count ==352 [2025-03-10 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:29:04 - End Time 2025-03-10 01:29:04 [2025-03-10 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646154', 'tblTempUsageDetail_20' ) start [2025-03-10 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646154', 'tblTempUsageDetail_20' ) end [2025-03-10 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646154', 'tblTempVendorCDR_20' ) start [2025-03-10 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646154', 'tblTempVendorCDR_20' ) end [2025-03-10 01:29:17] Production.INFO: ProcessCDR(1,14646154,1,1,2) [2025-03-10 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646154', 'tblTempUsageDetail_20' ) start [2025-03-10 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646154', 'tblTempUsageDetail_20' ) end [2025-03-10 01:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:29:20] Production.INFO: ==16656== Releasing lock... [2025-03-10 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:29:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:30:06 [end_date_ymd] => 2025-03-10 01:30:06 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:30:06' and `end` < '2025-03-10 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-03-10 01:30:18] Production.INFO: count ==360 [2025-03-10 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:30:06 - End Time 2025-03-10 01:30:06 [2025-03-10 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646160', 'tblTempUsageDetail_20' ) start [2025-03-10 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646160', 'tblTempUsageDetail_20' ) end [2025-03-10 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646160', 'tblTempVendorCDR_20' ) start [2025-03-10 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646160', 'tblTempVendorCDR_20' ) end [2025-03-10 01:30:18] Production.INFO: ProcessCDR(1,14646160,1,1,2) [2025-03-10 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646160', 'tblTempUsageDetail_20' ) start [2025-03-10 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646160', 'tblTempUsageDetail_20' ) end [2025-03-10 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:30:21] Production.INFO: ==16732== Releasing lock... [2025-03-10 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:30:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:31:06 [end_date_ymd] => 2025-03-10 01:31:06 [RateCDR] => 1 ) [2025-03-10 01:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:31:06' and `end` < '2025-03-10 01:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:31:18] Production.INFO: count ==360 [2025-03-10 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:31:06 - End Time 2025-03-10 01:31:06 [2025-03-10 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646165', 'tblTempUsageDetail_20' ) start [2025-03-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646165', 'tblTempUsageDetail_20' ) end [2025-03-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646165', 'tblTempVendorCDR_20' ) start [2025-03-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646165', 'tblTempVendorCDR_20' ) end [2025-03-10 01:31:18] Production.INFO: ProcessCDR(1,14646165,1,1,2) [2025-03-10 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646165', 'tblTempUsageDetail_20' ) start [2025-03-10 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646165', 'tblTempUsageDetail_20' ) end [2025-03-10 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:31:21] Production.INFO: ==16808== Releasing lock... [2025-03-10 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:31:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:32:05 [end_date_ymd] => 2025-03-10 01:32:05 [RateCDR] => 1 ) [2025-03-10 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:32:05' and `end` < '2025-03-10 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:32:17] Production.INFO: count ==361 [2025-03-10 01:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:32:05 - End Time 2025-03-10 01:32:05 [2025-03-10 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646170', 'tblTempUsageDetail_20' ) start [2025-03-10 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646170', 'tblTempUsageDetail_20' ) end [2025-03-10 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646170', 'tblTempVendorCDR_20' ) start [2025-03-10 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646170', 'tblTempVendorCDR_20' ) end [2025-03-10 01:32:17] Production.INFO: ProcessCDR(1,14646170,1,1,2) [2025-03-10 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646170', 'tblTempUsageDetail_20' ) start [2025-03-10 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646170', 'tblTempUsageDetail_20' ) end [2025-03-10 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:32:21] Production.INFO: ==16880== Releasing lock... [2025-03-10 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:33:05 [end_date_ymd] => 2025-03-10 01:33:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:33:05' and `end` < '2025-03-10 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-03-10 01:33:18] Production.INFO: count ==354 [2025-03-10 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:33:05 - End Time 2025-03-10 01:33:05 [2025-03-10 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646175', 'tblTempUsageDetail_20' ) start [2025-03-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646175', 'tblTempUsageDetail_20' ) end [2025-03-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646175', 'tblTempVendorCDR_20' ) start [2025-03-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646175', 'tblTempVendorCDR_20' ) end [2025-03-10 01:33:18] Production.INFO: ProcessCDR(1,14646175,1,1,2) [2025-03-10 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646175', 'tblTempUsageDetail_20' ) start [2025-03-10 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646175', 'tblTempUsageDetail_20' ) end [2025-03-10 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:33:21] Production.INFO: ==16952== Releasing lock... [2025-03-10 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:33:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:34:05 [end_date_ymd] => 2025-03-10 01:34:05 [RateCDR] => 1 ) [2025-03-10 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:34:05' and `end` < '2025-03-10 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:34:17] Production.INFO: count ==344 [2025-03-10 01:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:34:05 - End Time 2025-03-10 01:34:05 [2025-03-10 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646180', 'tblTempUsageDetail_20' ) start [2025-03-10 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646180', 'tblTempUsageDetail_20' ) end [2025-03-10 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646180', 'tblTempVendorCDR_20' ) start [2025-03-10 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646180', 'tblTempVendorCDR_20' ) end [2025-03-10 01:34:17] Production.INFO: ProcessCDR(1,14646180,1,1,2) [2025-03-10 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646180', 'tblTempUsageDetail_20' ) start [2025-03-10 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646180', 'tblTempUsageDetail_20' ) end [2025-03-10 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:34:21] Production.INFO: ==17034== Releasing lock... [2025-03-10 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:34:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:35:05 [end_date_ymd] => 2025-03-10 01:35:05 [RateCDR] => 1 ) [2025-03-10 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:35:05' and `end` < '2025-03-10 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:35:17] Production.INFO: count ==340 [2025-03-10 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:35:05 - End Time 2025-03-10 01:35:05 [2025-03-10 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646185', 'tblTempUsageDetail_20' ) start [2025-03-10 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646185', 'tblTempUsageDetail_20' ) end [2025-03-10 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646185', 'tblTempVendorCDR_20' ) start [2025-03-10 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646185', 'tblTempVendorCDR_20' ) end [2025-03-10 01:35:18] Production.INFO: ProcessCDR(1,14646185,1,1,2) [2025-03-10 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646185', 'tblTempUsageDetail_20' ) start [2025-03-10 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646185', 'tblTempUsageDetail_20' ) end [2025-03-10 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:35:21] Production.INFO: ==17106== Releasing lock... [2025-03-10 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:35:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:36:05 [end_date_ymd] => 2025-03-10 01:36:05 [RateCDR] => 1 ) [2025-03-10 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:36:05' and `end` < '2025-03-10 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:36:17] Production.INFO: count ==336 [2025-03-10 01:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:36:05 - End Time 2025-03-10 01:36:05 [2025-03-10 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646190', 'tblTempUsageDetail_20' ) start [2025-03-10 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646190', 'tblTempUsageDetail_20' ) end [2025-03-10 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646190', 'tblTempVendorCDR_20' ) start [2025-03-10 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646190', 'tblTempVendorCDR_20' ) end [2025-03-10 01:36:17] Production.INFO: ProcessCDR(1,14646190,1,1,2) [2025-03-10 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646190', 'tblTempUsageDetail_20' ) start [2025-03-10 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646190', 'tblTempUsageDetail_20' ) end [2025-03-10 01:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:36:20] Production.INFO: ==17178== Releasing lock... [2025-03-10 01:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:36:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:37:06 [end_date_ymd] => 2025-03-10 01:37:06 [RateCDR] => 1 ) [2025-03-10 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:37:06' and `end` < '2025-03-10 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:37:18] Production.INFO: count ==335 [2025-03-10 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:37:06 - End Time 2025-03-10 01:37:06 [2025-03-10 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646195', 'tblTempUsageDetail_20' ) start [2025-03-10 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646195', 'tblTempUsageDetail_20' ) end [2025-03-10 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646195', 'tblTempVendorCDR_20' ) start [2025-03-10 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646195', 'tblTempVendorCDR_20' ) end [2025-03-10 01:37:18] Production.INFO: ProcessCDR(1,14646195,1,1,2) [2025-03-10 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646195', 'tblTempUsageDetail_20' ) start [2025-03-10 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646195', 'tblTempUsageDetail_20' ) end [2025-03-10 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:37:21] Production.INFO: ==17257== Releasing lock... [2025-03-10 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:37:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:38:05 [end_date_ymd] => 2025-03-10 01:38:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:38:05' and `end` < '2025-03-10 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-03-10 01:38:17] Production.INFO: count ==338 [2025-03-10 01:38:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:38:05 - End Time 2025-03-10 01:38:05 [2025-03-10 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646200', 'tblTempUsageDetail_20' ) start [2025-03-10 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646200', 'tblTempUsageDetail_20' ) end [2025-03-10 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646200', 'tblTempVendorCDR_20' ) start [2025-03-10 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646200', 'tblTempVendorCDR_20' ) end [2025-03-10 01:38:17] Production.INFO: ProcessCDR(1,14646200,1,1,2) [2025-03-10 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646200', 'tblTempUsageDetail_20' ) start [2025-03-10 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646200', 'tblTempUsageDetail_20' ) end [2025-03-10 01:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:38:20] Production.INFO: ==17336== Releasing lock... [2025-03-10 01:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:38:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:39:05 [end_date_ymd] => 2025-03-10 01:39:05 [RateCDR] => 1 ) [2025-03-10 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:39:05' and `end` < '2025-03-10 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:39:17] Production.INFO: count ==338 [2025-03-10 01:39:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:39:05 - End Time 2025-03-10 01:39:05 [2025-03-10 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646205', 'tblTempUsageDetail_20' ) start [2025-03-10 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646205', 'tblTempUsageDetail_20' ) end [2025-03-10 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646205', 'tblTempVendorCDR_20' ) start [2025-03-10 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646205', 'tblTempVendorCDR_20' ) end [2025-03-10 01:39:17] Production.INFO: ProcessCDR(1,14646205,1,1,2) [2025-03-10 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646205', 'tblTempUsageDetail_20' ) start [2025-03-10 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646205', 'tblTempUsageDetail_20' ) end [2025-03-10 01:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:39:20] Production.INFO: ==17432== Releasing lock... [2025-03-10 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:39:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:40:06 [end_date_ymd] => 2025-03-10 01:40:06 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:40:06' and `end` < '2025-03-10 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-03-10 01:40:18] Production.INFO: count ==345 [2025-03-10 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:40:06 - End Time 2025-03-10 01:40:06 [2025-03-10 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646210', 'tblTempUsageDetail_20' ) start [2025-03-10 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646210', 'tblTempUsageDetail_20' ) end [2025-03-10 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646210', 'tblTempVendorCDR_20' ) start [2025-03-10 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646210', 'tblTempVendorCDR_20' ) end [2025-03-10 01:40:18] Production.INFO: ProcessCDR(1,14646210,1,1,2) [2025-03-10 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646210', 'tblTempUsageDetail_20' ) start [2025-03-10 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646210', 'tblTempUsageDetail_20' ) end [2025-03-10 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:40:22] Production.INFO: ==17572== Releasing lock... [2025-03-10 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:40:22] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:41:05 [end_date_ymd] => 2025-03-10 01:41:05 [RateCDR] => 1 ) [2025-03-10 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:41:05' and `end` < '2025-03-10 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:41:17] Production.INFO: count ==345 [2025-03-10 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:41:05 - End Time 2025-03-10 01:41:05 [2025-03-10 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646216', 'tblTempUsageDetail_20' ) start [2025-03-10 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646216', 'tblTempUsageDetail_20' ) end [2025-03-10 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646216', 'tblTempVendorCDR_20' ) start [2025-03-10 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646216', 'tblTempVendorCDR_20' ) end [2025-03-10 01:41:18] Production.INFO: ProcessCDR(1,14646216,1,1,2) [2025-03-10 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646216', 'tblTempUsageDetail_20' ) start [2025-03-10 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646216', 'tblTempUsageDetail_20' ) end [2025-03-10 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:41:21] Production.INFO: ==17668== Releasing lock... [2025-03-10 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:41:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:42:05 [end_date_ymd] => 2025-03-10 01:42:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:42:05' and `end` < '2025-03-10 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-03-10 01:42:17] Production.INFO: count ==345 [2025-03-10 01:42:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:42:05 - End Time 2025-03-10 01:42:05 [2025-03-10 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646221', 'tblTempUsageDetail_20' ) start [2025-03-10 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646221', 'tblTempUsageDetail_20' ) end [2025-03-10 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646221', 'tblTempVendorCDR_20' ) start [2025-03-10 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646221', 'tblTempVendorCDR_20' ) end [2025-03-10 01:42:17] Production.INFO: ProcessCDR(1,14646221,1,1,2) [2025-03-10 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646221', 'tblTempUsageDetail_20' ) start [2025-03-10 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646221', 'tblTempUsageDetail_20' ) end [2025-03-10 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:42:21] Production.INFO: ==17758== Releasing lock... [2025-03-10 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:42:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:43:06 [end_date_ymd] => 2025-03-10 01:43:06 [RateCDR] => 1 ) [2025-03-10 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:43:06' and `end` < '2025-03-10 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:43:18] Production.INFO: count ==346 [2025-03-10 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:43:06 - End Time 2025-03-10 01:43:06 [2025-03-10 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646226', 'tblTempUsageDetail_20' ) start [2025-03-10 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646226', 'tblTempUsageDetail_20' ) end [2025-03-10 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646226', 'tblTempVendorCDR_20' ) start [2025-03-10 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646226', 'tblTempVendorCDR_20' ) end [2025-03-10 01:43:18] Production.INFO: ProcessCDR(1,14646226,1,1,2) [2025-03-10 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646226', 'tblTempUsageDetail_20' ) start [2025-03-10 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646226', 'tblTempUsageDetail_20' ) end [2025-03-10 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:43:23] Production.INFO: ==17834== Releasing lock... [2025-03-10 01:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:43:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:44:05 [end_date_ymd] => 2025-03-10 01:44:05 [RateCDR] => 1 ) [2025-03-10 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:44:05' and `end` < '2025-03-10 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:44:17] Production.INFO: count ==349 [2025-03-10 01:44:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:44:05 - End Time 2025-03-10 01:44:05 [2025-03-10 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646231', 'tblTempUsageDetail_20' ) start [2025-03-10 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646231', 'tblTempUsageDetail_20' ) end [2025-03-10 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646231', 'tblTempVendorCDR_20' ) start [2025-03-10 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646231', 'tblTempVendorCDR_20' ) end [2025-03-10 01:44:17] Production.INFO: ProcessCDR(1,14646231,1,1,2) [2025-03-10 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646231', 'tblTempUsageDetail_20' ) start [2025-03-10 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646231', 'tblTempUsageDetail_20' ) end [2025-03-10 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:44:21] Production.INFO: ==17910== Releasing lock... [2025-03-10 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:44:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:45:06 [end_date_ymd] => 2025-03-10 01:45:06 [RateCDR] => 1 ) [2025-03-10 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:45:06' and `end` < '2025-03-10 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:45:18] Production.INFO: count ==353 [2025-03-10 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:45:06 - End Time 2025-03-10 01:45:06 [2025-03-10 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646236', 'tblTempUsageDetail_20' ) start [2025-03-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646236', 'tblTempUsageDetail_20' ) end [2025-03-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646236', 'tblTempVendorCDR_20' ) start [2025-03-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646236', 'tblTempVendorCDR_20' ) end [2025-03-10 01:45:18] Production.INFO: ProcessCDR(1,14646236,1,1,2) [2025-03-10 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646236', 'tblTempUsageDetail_20' ) start [2025-03-10 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646236', 'tblTempUsageDetail_20' ) end [2025-03-10 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:45:21] Production.INFO: ==17992== Releasing lock... [2025-03-10 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:45:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:46:04 [end_date_ymd] => 2025-03-10 01:46:04 [RateCDR] => 1 ) [2025-03-10 01:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:46:04' and `end` < '2025-03-10 01:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:46:16] Production.INFO: count ==358 [2025-03-10 01:46:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:46:04 - End Time 2025-03-10 01:46:04 [2025-03-10 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646241', 'tblTempUsageDetail_20' ) start [2025-03-10 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646241', 'tblTempUsageDetail_20' ) end [2025-03-10 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646241', 'tblTempVendorCDR_20' ) start [2025-03-10 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646241', 'tblTempVendorCDR_20' ) end [2025-03-10 01:46:17] Production.INFO: ProcessCDR(1,14646241,1,1,2) [2025-03-10 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646241', 'tblTempUsageDetail_20' ) start [2025-03-10 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646241', 'tblTempUsageDetail_20' ) end [2025-03-10 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:46:21] Production.INFO: ==18069== Releasing lock... [2025-03-10 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:46:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:47:06 [end_date_ymd] => 2025-03-10 01:47:06 [RateCDR] => 1 ) [2025-03-10 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:47:06' and `end` < '2025-03-10 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:47:18] Production.INFO: count ==358 [2025-03-10 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:47:06 - End Time 2025-03-10 01:47:06 [2025-03-10 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646246', 'tblTempUsageDetail_20' ) start [2025-03-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646246', 'tblTempUsageDetail_20' ) end [2025-03-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646246', 'tblTempVendorCDR_20' ) start [2025-03-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646246', 'tblTempVendorCDR_20' ) end [2025-03-10 01:47:18] Production.INFO: ProcessCDR(1,14646246,1,1,2) [2025-03-10 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646246', 'tblTempUsageDetail_20' ) start [2025-03-10 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646246', 'tblTempUsageDetail_20' ) end [2025-03-10 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:47:21] Production.INFO: ==18147== Releasing lock... [2025-03-10 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:47:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:48:05 [end_date_ymd] => 2025-03-10 01:48:05 [RateCDR] => 1 ) [2025-03-10 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:48:05' and `end` < '2025-03-10 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:48:17] Production.INFO: count ==359 [2025-03-10 01:48:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:48:05 - End Time 2025-03-10 01:48:05 [2025-03-10 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646251', 'tblTempUsageDetail_20' ) start [2025-03-10 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646251', 'tblTempUsageDetail_20' ) end [2025-03-10 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646251', 'tblTempVendorCDR_20' ) start [2025-03-10 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646251', 'tblTempVendorCDR_20' ) end [2025-03-10 01:48:17] Production.INFO: ProcessCDR(1,14646251,1,1,2) [2025-03-10 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646251', 'tblTempUsageDetail_20' ) start [2025-03-10 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646251', 'tblTempUsageDetail_20' ) end [2025-03-10 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:48:22] Production.INFO: ==18229== Releasing lock... [2025-03-10 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:48:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:49:05 [end_date_ymd] => 2025-03-10 01:49:05 [RateCDR] => 1 ) [2025-03-10 01:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:49:05' and `end` < '2025-03-10 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:49:17] Production.INFO: count ==359 [2025-03-10 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:49:05 - End Time 2025-03-10 01:49:05 [2025-03-10 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646256', 'tblTempUsageDetail_20' ) start [2025-03-10 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646256', 'tblTempUsageDetail_20' ) end [2025-03-10 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646256', 'tblTempVendorCDR_20' ) start [2025-03-10 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646256', 'tblTempVendorCDR_20' ) end [2025-03-10 01:49:17] Production.INFO: ProcessCDR(1,14646256,1,1,2) [2025-03-10 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646256', 'tblTempUsageDetail_20' ) start [2025-03-10 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646256', 'tblTempUsageDetail_20' ) end [2025-03-10 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:49:21] Production.INFO: ==18310== Releasing lock... [2025-03-10 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:49:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:50:06 [end_date_ymd] => 2025-03-10 01:50:06 [RateCDR] => 1 ) [2025-03-10 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:50:06' and `end` < '2025-03-10 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:50:18] Production.INFO: count ==359 [2025-03-10 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:50:06 - End Time 2025-03-10 01:50:06 [2025-03-10 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646262', 'tblTempUsageDetail_20' ) start [2025-03-10 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646262', 'tblTempUsageDetail_20' ) end [2025-03-10 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646262', 'tblTempVendorCDR_20' ) start [2025-03-10 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646262', 'tblTempVendorCDR_20' ) end [2025-03-10 01:50:18] Production.INFO: ProcessCDR(1,14646262,1,1,2) [2025-03-10 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646262', 'tblTempUsageDetail_20' ) start [2025-03-10 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646262', 'tblTempUsageDetail_20' ) end [2025-03-10 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:50:21] Production.INFO: ==18389== Releasing lock... [2025-03-10 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:50:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:51:06 [end_date_ymd] => 2025-03-10 01:51:06 [RateCDR] => 1 ) [2025-03-10 01:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:51:06' and `end` < '2025-03-10 01:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:51:17] Production.INFO: count ==359 [2025-03-10 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:51:06 - End Time 2025-03-10 01:51:06 [2025-03-10 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646267', 'tblTempUsageDetail_20' ) start [2025-03-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646267', 'tblTempUsageDetail_20' ) end [2025-03-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646267', 'tblTempVendorCDR_20' ) start [2025-03-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646267', 'tblTempVendorCDR_20' ) end [2025-03-10 01:51:18] Production.INFO: ProcessCDR(1,14646267,1,1,2) [2025-03-10 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646267', 'tblTempUsageDetail_20' ) start [2025-03-10 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646267', 'tblTempUsageDetail_20' ) end [2025-03-10 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:51:21] Production.INFO: ==18470== Releasing lock... [2025-03-10 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:52:05 [end_date_ymd] => 2025-03-10 01:52:05 [RateCDR] => 1 ) [2025-03-10 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:52:05' and `end` < '2025-03-10 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:52:17] Production.INFO: count ==359 [2025-03-10 01:52:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:52:05 - End Time 2025-03-10 01:52:05 [2025-03-10 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646272', 'tblTempUsageDetail_20' ) start [2025-03-10 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646272', 'tblTempUsageDetail_20' ) end [2025-03-10 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646272', 'tblTempVendorCDR_20' ) start [2025-03-10 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646272', 'tblTempVendorCDR_20' ) end [2025-03-10 01:52:17] Production.INFO: ProcessCDR(1,14646272,1,1,2) [2025-03-10 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646272', 'tblTempUsageDetail_20' ) start [2025-03-10 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646272', 'tblTempUsageDetail_20' ) end [2025-03-10 01:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:52:20] Production.INFO: ==18554== Releasing lock... [2025-03-10 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:52:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:53:05 [end_date_ymd] => 2025-03-10 01:53:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 22:53:05' and `end` < '2025-03-10 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-03-10 01:53:17] Production.INFO: count ==355 [2025-03-10 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:53:05 - End Time 2025-03-10 01:53:05 [2025-03-10 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646277', 'tblTempUsageDetail_20' ) start [2025-03-10 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646277', 'tblTempUsageDetail_20' ) end [2025-03-10 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646277', 'tblTempVendorCDR_20' ) start [2025-03-10 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646277', 'tblTempVendorCDR_20' ) end [2025-03-10 01:53:18] Production.INFO: ProcessCDR(1,14646277,1,1,2) [2025-03-10 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646277', 'tblTempUsageDetail_20' ) start [2025-03-10 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646277', 'tblTempUsageDetail_20' ) end [2025-03-10 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:53:21] Production.INFO: ==18640== Releasing lock... [2025-03-10 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:53:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:54:05 [end_date_ymd] => 2025-03-10 01:54:05 [RateCDR] => 1 ) [2025-03-10 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:54:05' and `end` < '2025-03-10 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:54:17] Production.INFO: count ==347 [2025-03-10 01:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:54:05 - End Time 2025-03-10 01:54:05 [2025-03-10 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646282', 'tblTempUsageDetail_20' ) start [2025-03-10 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646282', 'tblTempUsageDetail_20' ) end [2025-03-10 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646282', 'tblTempVendorCDR_20' ) start [2025-03-10 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646282', 'tblTempVendorCDR_20' ) end [2025-03-10 01:54:17] Production.INFO: ProcessCDR(1,14646282,1,1,2) [2025-03-10 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646282', 'tblTempUsageDetail_20' ) start [2025-03-10 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646282', 'tblTempUsageDetail_20' ) end [2025-03-10 01:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:54:20] Production.INFO: ==18721== Releasing lock... [2025-03-10 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:54:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:55:05 [end_date_ymd] => 2025-03-10 01:55:05 [RateCDR] => 1 ) [2025-03-10 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:55:05' and `end` < '2025-03-10 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:55:18] Production.INFO: count ==337 [2025-03-10 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:55:05 - End Time 2025-03-10 01:55:05 [2025-03-10 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646287', 'tblTempUsageDetail_20' ) start [2025-03-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646287', 'tblTempUsageDetail_20' ) end [2025-03-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646287', 'tblTempVendorCDR_20' ) start [2025-03-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646287', 'tblTempVendorCDR_20' ) end [2025-03-10 01:55:18] Production.INFO: ProcessCDR(1,14646287,1,1,2) [2025-03-10 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646287', 'tblTempUsageDetail_20' ) start [2025-03-10 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646287', 'tblTempUsageDetail_20' ) end [2025-03-10 01:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:55:23] Production.INFO: ==18839== Releasing lock... [2025-03-10 01:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:55:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:56:05 [end_date_ymd] => 2025-03-10 01:56:05 [RateCDR] => 1 ) [2025-03-10 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:56:05' and `end` < '2025-03-10 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:56:17] Production.INFO: count ==336 [2025-03-10 01:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:56:05 - End Time 2025-03-10 01:56:05 [2025-03-10 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646292', 'tblTempUsageDetail_20' ) start [2025-03-10 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646292', 'tblTempUsageDetail_20' ) end [2025-03-10 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646292', 'tblTempVendorCDR_20' ) start [2025-03-10 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646292', 'tblTempVendorCDR_20' ) end [2025-03-10 01:56:17] Production.INFO: ProcessCDR(1,14646292,1,1,2) [2025-03-10 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646292', 'tblTempUsageDetail_20' ) start [2025-03-10 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646292', 'tblTempUsageDetail_20' ) end [2025-03-10 01:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:56:20] Production.INFO: ==18920== Releasing lock... [2025-03-10 01:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:56:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:57:05 [end_date_ymd] => 2025-03-10 01:57:05 [RateCDR] => 1 ) [2025-03-10 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:57:05' and `end` < '2025-03-10 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:57:17] Production.INFO: count ==336 [2025-03-10 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:57:05 - End Time 2025-03-10 01:57:05 [2025-03-10 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646297', 'tblTempUsageDetail_20' ) start [2025-03-10 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646297', 'tblTempUsageDetail_20' ) end [2025-03-10 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646297', 'tblTempVendorCDR_20' ) start [2025-03-10 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646297', 'tblTempVendorCDR_20' ) end [2025-03-10 01:57:18] Production.INFO: ProcessCDR(1,14646297,1,1,2) [2025-03-10 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646297', 'tblTempUsageDetail_20' ) start [2025-03-10 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646297', 'tblTempUsageDetail_20' ) end [2025-03-10 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:57:21] Production.INFO: ==19001== Releasing lock... [2025-03-10 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:57:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:58:05 [end_date_ymd] => 2025-03-10 01:58:05 [RateCDR] => 1 ) [2025-03-10 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:58:05' and `end` < '2025-03-10 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:58:17] Production.INFO: count ==336 [2025-03-10 01:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 22:58:05 - End Time 2025-03-10 01:58:05 [2025-03-10 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646302', 'tblTempUsageDetail_20' ) start [2025-03-10 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646302', 'tblTempUsageDetail_20' ) end [2025-03-10 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646302', 'tblTempVendorCDR_20' ) start [2025-03-10 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646302', 'tblTempVendorCDR_20' ) end [2025-03-10 01:58:17] Production.INFO: ProcessCDR(1,14646302,1,1,2) [2025-03-10 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646302', 'tblTempUsageDetail_20' ) start [2025-03-10 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646302', 'tblTempUsageDetail_20' ) end [2025-03-10 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:58:22] Production.INFO: ==19088== Releasing lock... [2025-03-10 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:58:22] Production.INFO: 31 MB #Memory Used# [2025-03-10 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 22:59:06 [end_date_ymd] => 2025-03-10 01:59:06 [RateCDR] => 1 ) [2025-03-10 01:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 22:59:06' and `end` < '2025-03-10 01:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 01:59:18] Production.INFO: count ==336 [2025-03-10 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-09 22:59:06 - End Time 2025-03-10 01:59:06 [2025-03-10 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646307', 'tblTempUsageDetail_20' ) start [2025-03-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646307', 'tblTempUsageDetail_20' ) end [2025-03-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646307', 'tblTempVendorCDR_20' ) start [2025-03-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646307', 'tblTempVendorCDR_20' ) end [2025-03-10 01:59:18] Production.INFO: ProcessCDR(1,14646307,1,1,2) [2025-03-10 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646307', 'tblTempUsageDetail_20' ) start [2025-03-10 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646307', 'tblTempUsageDetail_20' ) end [2025-03-10 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 01:59:21] Production.INFO: ==19167== Releasing lock... [2025-03-10 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 01:59:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:00:05 [end_date_ymd] => 2025-03-10 02:00:05 [RateCDR] => 1 ) [2025-03-10 02:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:00:05' and `end` < '2025-03-10 02:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:00:18] Production.INFO: count ==342 [2025-03-10 02:00:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:00:05 - End Time 2025-03-10 02:00:05 [2025-03-10 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646313', 'tblTempUsageDetail_20' ) start [2025-03-10 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646313', 'tblTempUsageDetail_20' ) end [2025-03-10 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646313', 'tblTempVendorCDR_20' ) start [2025-03-10 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646313', 'tblTempVendorCDR_20' ) end [2025-03-10 02:00:18] Production.INFO: ProcessCDR(1,14646313,1,1,2) [2025-03-10 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646313', 'tblTempUsageDetail_20' ) start [2025-03-10 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646313', 'tblTempUsageDetail_20' ) end [2025-03-10 02:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:00:21] Production.INFO: ==19246== Releasing lock... [2025-03-10 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:00:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:01:06 [end_date_ymd] => 2025-03-10 02:01:06 [RateCDR] => 1 ) [2025-03-10 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:01:06' and `end` < '2025-03-10 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:01:18] Production.INFO: count ==347 [2025-03-10 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:01:06 - End Time 2025-03-10 02:01:06 [2025-03-10 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646318', 'tblTempUsageDetail_20' ) start [2025-03-10 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646318', 'tblTempUsageDetail_20' ) end [2025-03-10 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646318', 'tblTempVendorCDR_20' ) start [2025-03-10 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646318', 'tblTempVendorCDR_20' ) end [2025-03-10 02:01:18] Production.INFO: ProcessCDR(1,14646318,1,1,2) [2025-03-10 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646318', 'tblTempUsageDetail_20' ) start [2025-03-10 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646318', 'tblTempUsageDetail_20' ) end [2025-03-10 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:01:23] Production.INFO: ==19345== Releasing lock... [2025-03-10 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:01:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:02:05 [end_date_ymd] => 2025-03-10 02:02:05 [RateCDR] => 1 ) [2025-03-10 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:02:05' and `end` < '2025-03-10 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:02:17] Production.INFO: count ==346 [2025-03-10 02:02:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:02:05 - End Time 2025-03-10 02:02:05 [2025-03-10 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646323', 'tblTempUsageDetail_20' ) start [2025-03-10 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646323', 'tblTempUsageDetail_20' ) end [2025-03-10 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646323', 'tblTempVendorCDR_20' ) start [2025-03-10 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646323', 'tblTempVendorCDR_20' ) end [2025-03-10 02:02:17] Production.INFO: ProcessCDR(1,14646323,1,1,2) [2025-03-10 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646323', 'tblTempUsageDetail_20' ) start [2025-03-10 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646323', 'tblTempUsageDetail_20' ) end [2025-03-10 02:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:02:21] Production.INFO: ==19426== Releasing lock... [2025-03-10 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:02:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:03:05 [end_date_ymd] => 2025-03-10 02:03:05 [RateCDR] => 1 ) [2025-03-10 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:03:05' and `end` < '2025-03-10 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:03:17] Production.INFO: count ==345 [2025-03-10 02:03:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:03:05 - End Time 2025-03-10 02:03:05 [2025-03-10 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646328', 'tblTempUsageDetail_20' ) start [2025-03-10 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646328', 'tblTempUsageDetail_20' ) end [2025-03-10 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646328', 'tblTempVendorCDR_20' ) start [2025-03-10 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646328', 'tblTempVendorCDR_20' ) end [2025-03-10 02:03:17] Production.INFO: ProcessCDR(1,14646328,1,1,2) [2025-03-10 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646328', 'tblTempUsageDetail_20' ) start [2025-03-10 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646328', 'tblTempUsageDetail_20' ) end [2025-03-10 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:03:21] Production.INFO: ==19502== Releasing lock... [2025-03-10 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:04:05 [end_date_ymd] => 2025-03-10 02:04:05 [RateCDR] => 1 ) [2025-03-10 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:04:05' and `end` < '2025-03-10 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:04:17] Production.INFO: count ==344 [2025-03-10 02:04:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:04:05 - End Time 2025-03-10 02:04:05 [2025-03-10 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646333', 'tblTempUsageDetail_20' ) start [2025-03-10 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646333', 'tblTempUsageDetail_20' ) end [2025-03-10 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646333', 'tblTempVendorCDR_20' ) start [2025-03-10 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646333', 'tblTempVendorCDR_20' ) end [2025-03-10 02:04:17] Production.INFO: ProcessCDR(1,14646333,1,1,2) [2025-03-10 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646333', 'tblTempUsageDetail_20' ) start [2025-03-10 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646333', 'tblTempUsageDetail_20' ) end [2025-03-10 02:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:04:20] Production.INFO: ==19582== Releasing lock... [2025-03-10 02:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:04:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:05:05 [end_date_ymd] => 2025-03-10 02:05:05 [RateCDR] => 1 ) [2025-03-10 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:05:05' and `end` < '2025-03-10 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:05:17] Production.INFO: count ==344 [2025-03-10 02:05:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:05:05 - End Time 2025-03-10 02:05:05 [2025-03-10 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646338', 'tblTempUsageDetail_20' ) start [2025-03-10 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646338', 'tblTempUsageDetail_20' ) end [2025-03-10 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646338', 'tblTempVendorCDR_20' ) start [2025-03-10 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646338', 'tblTempVendorCDR_20' ) end [2025-03-10 02:05:17] Production.INFO: ProcessCDR(1,14646338,1,1,2) [2025-03-10 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646338', 'tblTempUsageDetail_20' ) start [2025-03-10 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646338', 'tblTempUsageDetail_20' ) end [2025-03-10 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:05:21] Production.INFO: ==19664== Releasing lock... [2025-03-10 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:06:06 [end_date_ymd] => 2025-03-10 02:06:06 [RateCDR] => 1 ) [2025-03-10 02:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:06:06' and `end` < '2025-03-10 02:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:06:18] Production.INFO: count ==344 [2025-03-10 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:06:06 - End Time 2025-03-10 02:06:06 [2025-03-10 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646343', 'tblTempUsageDetail_20' ) start [2025-03-10 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646343', 'tblTempUsageDetail_20' ) end [2025-03-10 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646343', 'tblTempVendorCDR_20' ) start [2025-03-10 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646343', 'tblTempVendorCDR_20' ) end [2025-03-10 02:06:18] Production.INFO: ProcessCDR(1,14646343,1,1,2) [2025-03-10 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646343', 'tblTempUsageDetail_20' ) start [2025-03-10 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646343', 'tblTempUsageDetail_20' ) end [2025-03-10 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:06:21] Production.INFO: ==19746== Releasing lock... [2025-03-10 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:07:05 [end_date_ymd] => 2025-03-10 02:07:05 [RateCDR] => 1 ) [2025-03-10 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:07:05' and `end` < '2025-03-10 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:07:17] Production.INFO: count ==344 [2025-03-10 02:07:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:07:05 - End Time 2025-03-10 02:07:05 [2025-03-10 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646348', 'tblTempUsageDetail_20' ) start [2025-03-10 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646348', 'tblTempUsageDetail_20' ) end [2025-03-10 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646348', 'tblTempVendorCDR_20' ) start [2025-03-10 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646348', 'tblTempVendorCDR_20' ) end [2025-03-10 02:07:17] Production.INFO: ProcessCDR(1,14646348,1,1,2) [2025-03-10 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646348', 'tblTempUsageDetail_20' ) start [2025-03-10 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646348', 'tblTempUsageDetail_20' ) end [2025-03-10 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:07:21] Production.INFO: ==19837== Releasing lock... [2025-03-10 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:08:05 [end_date_ymd] => 2025-03-10 02:08:05 [RateCDR] => 1 ) [2025-03-10 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:08:05' and `end` < '2025-03-10 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:08:17] Production.INFO: count ==344 [2025-03-10 02:08:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:08:05 - End Time 2025-03-10 02:08:05 [2025-03-10 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646353', 'tblTempUsageDetail_20' ) start [2025-03-10 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646353', 'tblTempUsageDetail_20' ) end [2025-03-10 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646353', 'tblTempVendorCDR_20' ) start [2025-03-10 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646353', 'tblTempVendorCDR_20' ) end [2025-03-10 02:08:18] Production.INFO: ProcessCDR(1,14646353,1,1,2) [2025-03-10 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646353', 'tblTempUsageDetail_20' ) start [2025-03-10 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646353', 'tblTempUsageDetail_20' ) end [2025-03-10 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:08:21] Production.INFO: ==19919== Releasing lock... [2025-03-10 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:09:05 [end_date_ymd] => 2025-03-10 02:09:05 [RateCDR] => 1 ) [2025-03-10 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:09:05' and `end` < '2025-03-10 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:09:17] Production.INFO: count ==345 [2025-03-10 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:09:05 - End Time 2025-03-10 02:09:05 [2025-03-10 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646358', 'tblTempUsageDetail_20' ) start [2025-03-10 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646358', 'tblTempUsageDetail_20' ) end [2025-03-10 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646358', 'tblTempVendorCDR_20' ) start [2025-03-10 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646358', 'tblTempVendorCDR_20' ) end [2025-03-10 02:09:17] Production.INFO: ProcessCDR(1,14646358,1,1,2) [2025-03-10 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646358', 'tblTempUsageDetail_20' ) start [2025-03-10 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646358', 'tblTempUsageDetail_20' ) end [2025-03-10 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:09:22] Production.INFO: ==19998== Releasing lock... [2025-03-10 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:09:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:10:07 [end_date_ymd] => 2025-03-10 02:10:07 [RateCDR] => 1 ) [2025-03-10 02: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-03-09 23:10:07' and `end` < '2025-03-10 02: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-03-10 02:10:19] Production.INFO: count ==350 [2025-03-10 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-09 23:10:07 - End Time 2025-03-10 02:10:07 [2025-03-10 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646364', 'tblTempUsageDetail_20' ) start [2025-03-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646364', 'tblTempUsageDetail_20' ) end [2025-03-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646364', 'tblTempVendorCDR_20' ) start [2025-03-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646364', 'tblTempVendorCDR_20' ) end [2025-03-10 02:10:19] Production.INFO: ProcessCDR(1,14646364,1,1,2) [2025-03-10 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646364', 'tblTempUsageDetail_20' ) start [2025-03-10 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646364', 'tblTempUsageDetail_20' ) end [2025-03-10 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:10:22] Production.INFO: ==20082== Releasing lock... [2025-03-10 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:10:22] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:11:05 [end_date_ymd] => 2025-03-10 02:11:05 [RateCDR] => 1 ) [2025-03-10 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:11:05' and `end` < '2025-03-10 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:11:17] Production.INFO: count ==347 [2025-03-10 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:11:05 - End Time 2025-03-10 02:11:05 [2025-03-10 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646369', 'tblTempUsageDetail_20' ) start [2025-03-10 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646369', 'tblTempUsageDetail_20' ) end [2025-03-10 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646369', 'tblTempVendorCDR_20' ) start [2025-03-10 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646369', 'tblTempVendorCDR_20' ) end [2025-03-10 02:11:17] Production.INFO: ProcessCDR(1,14646369,1,1,2) [2025-03-10 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646369', 'tblTempUsageDetail_20' ) start [2025-03-10 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646369', 'tblTempUsageDetail_20' ) end [2025-03-10 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:11:21] Production.INFO: ==20203== Releasing lock... [2025-03-10 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:12:06 [end_date_ymd] => 2025-03-10 02:12:06 [RateCDR] => 1 ) [2025-03-10 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-03-09 23:12:06' and `end` < '2025-03-10 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-03-10 02:12:18] Production.INFO: count ==347 [2025-03-10 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:12:06 - End Time 2025-03-10 02:12:06 [2025-03-10 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646374', 'tblTempUsageDetail_20' ) start [2025-03-10 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646374', 'tblTempUsageDetail_20' ) end [2025-03-10 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646374', 'tblTempVendorCDR_20' ) start [2025-03-10 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646374', 'tblTempVendorCDR_20' ) end [2025-03-10 02:12:18] Production.INFO: ProcessCDR(1,14646374,1,1,2) [2025-03-10 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646374', 'tblTempUsageDetail_20' ) start [2025-03-10 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646374', 'tblTempUsageDetail_20' ) end [2025-03-10 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:12:21] Production.INFO: ==20287== Releasing lock... [2025-03-10 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:13:05 [end_date_ymd] => 2025-03-10 02:13:05 [RateCDR] => 1 ) [2025-03-10 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:13:05' and `end` < '2025-03-10 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:13:17] Production.INFO: count ==345 [2025-03-10 02:13:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:13:05 - End Time 2025-03-10 02:13:05 [2025-03-10 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646379', 'tblTempUsageDetail_20' ) start [2025-03-10 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646379', 'tblTempUsageDetail_20' ) end [2025-03-10 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646379', 'tblTempVendorCDR_20' ) start [2025-03-10 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646379', 'tblTempVendorCDR_20' ) end [2025-03-10 02:13:17] Production.INFO: ProcessCDR(1,14646379,1,1,2) [2025-03-10 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646379', 'tblTempUsageDetail_20' ) start [2025-03-10 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646379', 'tblTempUsageDetail_20' ) end [2025-03-10 02:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:13:20] Production.INFO: ==20368== Releasing lock... [2025-03-10 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:13:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:14:05 [end_date_ymd] => 2025-03-10 02:14:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 23:14:05' and `end` < '2025-03-10 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-03-10 02:14:17] Production.INFO: count ==344 [2025-03-10 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:14:05 - End Time 2025-03-10 02:14:05 [2025-03-10 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646384', 'tblTempUsageDetail_20' ) start [2025-03-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646384', 'tblTempUsageDetail_20' ) end [2025-03-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646384', 'tblTempVendorCDR_20' ) start [2025-03-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646384', 'tblTempVendorCDR_20' ) end [2025-03-10 02:14:18] Production.INFO: ProcessCDR(1,14646384,1,1,2) [2025-03-10 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646384', 'tblTempUsageDetail_20' ) start [2025-03-10 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646384', 'tblTempUsageDetail_20' ) end [2025-03-10 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:14:21] Production.INFO: ==20444== Releasing lock... [2025-03-10 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:15:05 [end_date_ymd] => 2025-03-10 02:15:05 [RateCDR] => 1 ) [2025-03-10 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:15:05' and `end` < '2025-03-10 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:15:17] Production.INFO: count ==344 [2025-03-10 02:15:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:15:05 - End Time 2025-03-10 02:15:05 [2025-03-10 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646389', 'tblTempUsageDetail_20' ) start [2025-03-10 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646389', 'tblTempUsageDetail_20' ) end [2025-03-10 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646389', 'tblTempVendorCDR_20' ) start [2025-03-10 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646389', 'tblTempVendorCDR_20' ) end [2025-03-10 02:15:17] Production.INFO: ProcessCDR(1,14646389,1,1,2) [2025-03-10 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646389', 'tblTempUsageDetail_20' ) start [2025-03-10 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646389', 'tblTempUsageDetail_20' ) end [2025-03-10 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:15:20] Production.INFO: ==20536== Releasing lock... [2025-03-10 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:15:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:16:05 [end_date_ymd] => 2025-03-10 02:16:05 [RateCDR] => 1 ) [2025-03-10 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:16:05' and `end` < '2025-03-10 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:16:17] Production.INFO: count ==347 [2025-03-10 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:16:05 - End Time 2025-03-10 02:16:05 [2025-03-10 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646394', 'tblTempUsageDetail_20' ) start [2025-03-10 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646394', 'tblTempUsageDetail_20' ) end [2025-03-10 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646394', 'tblTempVendorCDR_20' ) start [2025-03-10 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646394', 'tblTempVendorCDR_20' ) end [2025-03-10 02:16:17] Production.INFO: ProcessCDR(1,14646394,1,1,2) [2025-03-10 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646394', 'tblTempUsageDetail_20' ) start [2025-03-10 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646394', 'tblTempUsageDetail_20' ) end [2025-03-10 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:16:20] Production.INFO: ==20615== Releasing lock... [2025-03-10 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:16:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:17:04 [end_date_ymd] => 2025-03-10 02:17:04 [RateCDR] => 1 ) [2025-03-10 02:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:17:04' and `end` < '2025-03-10 02:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:17:16] Production.INFO: count ==339 [2025-03-10 02:17:16] Production.ERROR: pbx CDR StartTime 2025-03-09 23:17:04 - End Time 2025-03-10 02:17:04 [2025-03-10 02:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646399', 'tblTempUsageDetail_20' ) start [2025-03-10 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646399', 'tblTempUsageDetail_20' ) end [2025-03-10 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646399', 'tblTempVendorCDR_20' ) start [2025-03-10 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646399', 'tblTempVendorCDR_20' ) end [2025-03-10 02:17:16] Production.INFO: ProcessCDR(1,14646399,1,1,2) [2025-03-10 02:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646399', 'tblTempUsageDetail_20' ) start [2025-03-10 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646399', 'tblTempUsageDetail_20' ) end [2025-03-10 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:17:20] Production.INFO: ==20696== Releasing lock... [2025-03-10 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:17:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:18:05 [end_date_ymd] => 2025-03-10 02:18:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 23:18:05' and `end` < '2025-03-10 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-03-10 02:18:18] Production.INFO: count ==336 [2025-03-10 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:18:05 - End Time 2025-03-10 02:18:05 [2025-03-10 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646404', 'tblTempUsageDetail_20' ) start [2025-03-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646404', 'tblTempUsageDetail_20' ) end [2025-03-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646404', 'tblTempVendorCDR_20' ) start [2025-03-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646404', 'tblTempVendorCDR_20' ) end [2025-03-10 02:18:18] Production.INFO: ProcessCDR(1,14646404,1,1,2) [2025-03-10 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646404', 'tblTempUsageDetail_20' ) start [2025-03-10 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646404', 'tblTempUsageDetail_20' ) end [2025-03-10 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:18:21] Production.INFO: ==20780== Releasing lock... [2025-03-10 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:19:05 [end_date_ymd] => 2025-03-10 02:19:05 [RateCDR] => 1 ) [2025-03-10 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:19:05' and `end` < '2025-03-10 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:19:17] Production.INFO: count ==329 [2025-03-10 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:19:05 - End Time 2025-03-10 02:19:05 [2025-03-10 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646409', 'tblTempUsageDetail_20' ) start [2025-03-10 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646409', 'tblTempUsageDetail_20' ) end [2025-03-10 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646409', 'tblTempVendorCDR_20' ) start [2025-03-10 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646409', 'tblTempVendorCDR_20' ) end [2025-03-10 02:19:17] Production.INFO: ProcessCDR(1,14646409,1,1,2) [2025-03-10 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646409', 'tblTempUsageDetail_20' ) start [2025-03-10 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646409', 'tblTempUsageDetail_20' ) end [2025-03-10 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:19:21] Production.INFO: ==20863== Releasing lock... [2025-03-10 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:19:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:20:06 [end_date_ymd] => 2025-03-10 02:20:06 [RateCDR] => 1 ) [2025-03-10 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:20:06' and `end` < '2025-03-10 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:20:18] Production.INFO: count ==329 [2025-03-10 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:20:06 - End Time 2025-03-10 02:20:06 [2025-03-10 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646415', 'tblTempUsageDetail_20' ) start [2025-03-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646415', 'tblTempUsageDetail_20' ) end [2025-03-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646415', 'tblTempVendorCDR_20' ) start [2025-03-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646415', 'tblTempVendorCDR_20' ) end [2025-03-10 02:20:18] Production.INFO: ProcessCDR(1,14646415,1,1,2) [2025-03-10 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646415', 'tblTempUsageDetail_20' ) start [2025-03-10 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646415', 'tblTempUsageDetail_20' ) end [2025-03-10 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:20:21] Production.INFO: ==20944== Releasing lock... [2025-03-10 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:20:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:21:05 [end_date_ymd] => 2025-03-10 02:21:05 [RateCDR] => 1 ) [2025-03-10 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:21:05' and `end` < '2025-03-10 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:21:17] Production.INFO: count ==325 [2025-03-10 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:21:05 - End Time 2025-03-10 02:21:05 [2025-03-10 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646420', 'tblTempUsageDetail_20' ) start [2025-03-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646420', 'tblTempUsageDetail_20' ) end [2025-03-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646420', 'tblTempVendorCDR_20' ) start [2025-03-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646420', 'tblTempVendorCDR_20' ) end [2025-03-10 02:21:18] Production.INFO: ProcessCDR(1,14646420,1,1,2) [2025-03-10 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646420', 'tblTempUsageDetail_20' ) start [2025-03-10 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646420', 'tblTempUsageDetail_20' ) end [2025-03-10 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:21:21] Production.INFO: ==21026== Releasing lock... [2025-03-10 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:22:05 [end_date_ymd] => 2025-03-10 02:22:05 [RateCDR] => 1 ) [2025-03-10 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:22:05' and `end` < '2025-03-10 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:22:17] Production.INFO: count ==321 [2025-03-10 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:22:05 - End Time 2025-03-10 02:22:05 [2025-03-10 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646425', 'tblTempUsageDetail_20' ) start [2025-03-10 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646425', 'tblTempUsageDetail_20' ) end [2025-03-10 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646425', 'tblTempVendorCDR_20' ) start [2025-03-10 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646425', 'tblTempVendorCDR_20' ) end [2025-03-10 02:22:17] Production.INFO: ProcessCDR(1,14646425,1,1,2) [2025-03-10 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646425', 'tblTempUsageDetail_20' ) start [2025-03-10 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646425', 'tblTempUsageDetail_20' ) end [2025-03-10 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:22:21] Production.INFO: ==21106== Releasing lock... [2025-03-10 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:22:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:23:05 [end_date_ymd] => 2025-03-10 02:23:05 [RateCDR] => 1 ) [2025-03-10 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:23:05' and `end` < '2025-03-10 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:23:17] Production.INFO: count ==318 [2025-03-10 02:23:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:23:05 - End Time 2025-03-10 02:23:05 [2025-03-10 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646430', 'tblTempUsageDetail_20' ) start [2025-03-10 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646430', 'tblTempUsageDetail_20' ) end [2025-03-10 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646430', 'tblTempVendorCDR_20' ) start [2025-03-10 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646430', 'tblTempVendorCDR_20' ) end [2025-03-10 02:23:17] Production.INFO: ProcessCDR(1,14646430,1,1,2) [2025-03-10 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646430', 'tblTempUsageDetail_20' ) start [2025-03-10 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646430', 'tblTempUsageDetail_20' ) end [2025-03-10 02:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:23:20] Production.INFO: ==21185== Releasing lock... [2025-03-10 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:23:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:24:05 [end_date_ymd] => 2025-03-10 02:24:05 [RateCDR] => 1 ) [2025-03-10 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:24:05' and `end` < '2025-03-10 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:24:17] Production.INFO: count ==318 [2025-03-10 02:24:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:24:05 - End Time 2025-03-10 02:24:05 [2025-03-10 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646435', 'tblTempUsageDetail_20' ) start [2025-03-10 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646435', 'tblTempUsageDetail_20' ) end [2025-03-10 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646435', 'tblTempVendorCDR_20' ) start [2025-03-10 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646435', 'tblTempVendorCDR_20' ) end [2025-03-10 02:24:17] Production.INFO: ProcessCDR(1,14646435,1,1,2) [2025-03-10 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646435', 'tblTempUsageDetail_20' ) start [2025-03-10 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646435', 'tblTempUsageDetail_20' ) end [2025-03-10 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:24:21] Production.INFO: ==21269== Releasing lock... [2025-03-10 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:25:05 [end_date_ymd] => 2025-03-10 02:25:05 [RateCDR] => 1 ) [2025-03-10 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:25:05' and `end` < '2025-03-10 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:25:17] Production.INFO: count ==317 [2025-03-10 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:25:05 - End Time 2025-03-10 02:25:05 [2025-03-10 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646440', 'tblTempUsageDetail_20' ) start [2025-03-10 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646440', 'tblTempUsageDetail_20' ) end [2025-03-10 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646440', 'tblTempVendorCDR_20' ) start [2025-03-10 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646440', 'tblTempVendorCDR_20' ) end [2025-03-10 02:25:17] Production.INFO: ProcessCDR(1,14646440,1,1,2) [2025-03-10 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646440', 'tblTempUsageDetail_20' ) start [2025-03-10 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646440', 'tblTempUsageDetail_20' ) end [2025-03-10 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:25:20] Production.INFO: ==21344== Releasing lock... [2025-03-10 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:25:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:26:05 [end_date_ymd] => 2025-03-10 02:26:05 [RateCDR] => 1 ) [2025-03-10 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:26:05' and `end` < '2025-03-10 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:26:17] Production.INFO: count ==317 [2025-03-10 02:26:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:26:05 - End Time 2025-03-10 02:26:05 [2025-03-10 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646445', 'tblTempUsageDetail_20' ) start [2025-03-10 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646445', 'tblTempUsageDetail_20' ) end [2025-03-10 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646445', 'tblTempVendorCDR_20' ) start [2025-03-10 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646445', 'tblTempVendorCDR_20' ) end [2025-03-10 02:26:17] Production.INFO: ProcessCDR(1,14646445,1,1,2) [2025-03-10 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646445', 'tblTempUsageDetail_20' ) start [2025-03-10 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646445', 'tblTempUsageDetail_20' ) end [2025-03-10 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:26:21] Production.INFO: ==21465== Releasing lock... [2025-03-10 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:26:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:27:06 [end_date_ymd] => 2025-03-10 02:27:06 [RateCDR] => 1 ) [2025-03-10 02:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:27:06' and `end` < '2025-03-10 02:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:27:18] Production.INFO: count ==316 [2025-03-10 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:27:06 - End Time 2025-03-10 02:27:06 [2025-03-10 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646450', 'tblTempUsageDetail_20' ) start [2025-03-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646450', 'tblTempUsageDetail_20' ) end [2025-03-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646450', 'tblTempVendorCDR_20' ) start [2025-03-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646450', 'tblTempVendorCDR_20' ) end [2025-03-10 02:27:18] Production.INFO: ProcessCDR(1,14646450,1,1,2) [2025-03-10 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646450', 'tblTempUsageDetail_20' ) start [2025-03-10 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646450', 'tblTempUsageDetail_20' ) end [2025-03-10 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:27:21] Production.INFO: ==21545== Releasing lock... [2025-03-10 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:28:05 [end_date_ymd] => 2025-03-10 02:28:05 [RateCDR] => 1 ) [2025-03-10 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:28:05' and `end` < '2025-03-10 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:28:17] Production.INFO: count ==316 [2025-03-10 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:28:05 - End Time 2025-03-10 02:28:05 [2025-03-10 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646455', 'tblTempUsageDetail_20' ) start [2025-03-10 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646455', 'tblTempUsageDetail_20' ) end [2025-03-10 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646455', 'tblTempVendorCDR_20' ) start [2025-03-10 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646455', 'tblTempVendorCDR_20' ) end [2025-03-10 02:28:17] Production.INFO: ProcessCDR(1,14646455,1,1,2) [2025-03-10 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646455', 'tblTempUsageDetail_20' ) start [2025-03-10 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646455', 'tblTempUsageDetail_20' ) end [2025-03-10 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:28:20] Production.INFO: ==21624== Releasing lock... [2025-03-10 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:28:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:29:05 [end_date_ymd] => 2025-03-10 02:29:05 [RateCDR] => 1 ) [2025-03-10 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:29:05' and `end` < '2025-03-10 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:29:17] Production.INFO: count ==316 [2025-03-10 02:29:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:29:05 - End Time 2025-03-10 02:29:05 [2025-03-10 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646460', 'tblTempUsageDetail_20' ) start [2025-03-10 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646460', 'tblTempUsageDetail_20' ) end [2025-03-10 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646460', 'tblTempVendorCDR_20' ) start [2025-03-10 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646460', 'tblTempVendorCDR_20' ) end [2025-03-10 02:29:17] Production.INFO: ProcessCDR(1,14646460,1,1,2) [2025-03-10 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646460', 'tblTempUsageDetail_20' ) start [2025-03-10 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646460', 'tblTempUsageDetail_20' ) end [2025-03-10 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:29:20] Production.INFO: ==21699== Releasing lock... [2025-03-10 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:29:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:30:05 [end_date_ymd] => 2025-03-10 02:30:05 [RateCDR] => 1 ) [2025-03-10 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:30:05' and `end` < '2025-03-10 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:30:17] Production.INFO: count ==315 [2025-03-10 02:30:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:30:05 - End Time 2025-03-10 02:30:05 [2025-03-10 02:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646465', 'tblTempUsageDetail_20' ) start [2025-03-10 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646465', 'tblTempUsageDetail_20' ) end [2025-03-10 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646465', 'tblTempVendorCDR_20' ) start [2025-03-10 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646465', 'tblTempVendorCDR_20' ) end [2025-03-10 02:30:17] Production.INFO: ProcessCDR(1,14646465,1,1,2) [2025-03-10 02:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646465', 'tblTempUsageDetail_20' ) start [2025-03-10 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646465', 'tblTempUsageDetail_20' ) end [2025-03-10 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:30:21] Production.INFO: ==21781== Releasing lock... [2025-03-10 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:30:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:31:05 [end_date_ymd] => 2025-03-10 02:31:05 [RateCDR] => 1 ) [2025-03-10 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:31:05' and `end` < '2025-03-10 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:31:17] Production.INFO: count ==316 [2025-03-10 02:31:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:31:05 - End Time 2025-03-10 02:31:05 [2025-03-10 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646471', 'tblTempUsageDetail_20' ) start [2025-03-10 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646471', 'tblTempUsageDetail_20' ) end [2025-03-10 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646471', 'tblTempVendorCDR_20' ) start [2025-03-10 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646471', 'tblTempVendorCDR_20' ) end [2025-03-10 02:31:17] Production.INFO: ProcessCDR(1,14646471,1,1,2) [2025-03-10 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646471', 'tblTempUsageDetail_20' ) start [2025-03-10 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646471', 'tblTempUsageDetail_20' ) end [2025-03-10 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:31:20] Production.INFO: ==21860== Releasing lock... [2025-03-10 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:31:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:32:05 [end_date_ymd] => 2025-03-10 02:32:05 [RateCDR] => 1 ) [2025-03-10 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:32:05' and `end` < '2025-03-10 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:32:17] Production.INFO: count ==319 [2025-03-10 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:32:05 - End Time 2025-03-10 02:32:05 [2025-03-10 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646476', 'tblTempUsageDetail_20' ) start [2025-03-10 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646476', 'tblTempUsageDetail_20' ) end [2025-03-10 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646476', 'tblTempVendorCDR_20' ) start [2025-03-10 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646476', 'tblTempVendorCDR_20' ) end [2025-03-10 02:32:17] Production.INFO: ProcessCDR(1,14646476,1,1,2) [2025-03-10 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646476', 'tblTempUsageDetail_20' ) start [2025-03-10 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646476', 'tblTempUsageDetail_20' ) end [2025-03-10 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:32:20] Production.INFO: ==21946== Releasing lock... [2025-03-10 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:32:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:33:05 [end_date_ymd] => 2025-03-10 02:33:05 [RateCDR] => 1 ) [2025-03-10 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:33:05' and `end` < '2025-03-10 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:33:17] Production.INFO: count ==314 [2025-03-10 02:33:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:33:05 - End Time 2025-03-10 02:33:05 [2025-03-10 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646481', 'tblTempUsageDetail_20' ) start [2025-03-10 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646481', 'tblTempUsageDetail_20' ) end [2025-03-10 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646481', 'tblTempVendorCDR_20' ) start [2025-03-10 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646481', 'tblTempVendorCDR_20' ) end [2025-03-10 02:33:17] Production.INFO: ProcessCDR(1,14646481,1,1,2) [2025-03-10 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646481', 'tblTempUsageDetail_20' ) start [2025-03-10 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646481', 'tblTempUsageDetail_20' ) end [2025-03-10 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:33:21] Production.INFO: ==22024== Releasing lock... [2025-03-10 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:34:05 [end_date_ymd] => 2025-03-10 02:34:05 [RateCDR] => 1 ) [2025-03-10 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:34:05' and `end` < '2025-03-10 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:34:17] Production.INFO: count ==311 [2025-03-10 02:34:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:34:05 - End Time 2025-03-10 02:34:05 [2025-03-10 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646486', 'tblTempUsageDetail_20' ) start [2025-03-10 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646486', 'tblTempUsageDetail_20' ) end [2025-03-10 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646486', 'tblTempVendorCDR_20' ) start [2025-03-10 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646486', 'tblTempVendorCDR_20' ) end [2025-03-10 02:34:17] Production.INFO: ProcessCDR(1,14646486,1,1,2) [2025-03-10 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646486', 'tblTempUsageDetail_20' ) start [2025-03-10 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646486', 'tblTempUsageDetail_20' ) end [2025-03-10 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:34:21] Production.INFO: ==22101== Releasing lock... [2025-03-10 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:35:06 [end_date_ymd] => 2025-03-10 02:35:06 [RateCDR] => 1 ) [2025-03-10 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:35:06' and `end` < '2025-03-10 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:35:18] Production.INFO: count ==307 [2025-03-10 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:35:06 - End Time 2025-03-10 02:35:06 [2025-03-10 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646491', 'tblTempUsageDetail_20' ) start [2025-03-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646491', 'tblTempUsageDetail_20' ) end [2025-03-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646491', 'tblTempVendorCDR_20' ) start [2025-03-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646491', 'tblTempVendorCDR_20' ) end [2025-03-10 02:35:18] Production.INFO: ProcessCDR(1,14646491,1,1,2) [2025-03-10 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646491', 'tblTempUsageDetail_20' ) start [2025-03-10 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646491', 'tblTempUsageDetail_20' ) end [2025-03-10 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:35:22] Production.INFO: ==22180== Releasing lock... [2025-03-10 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:35:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:36:05 [end_date_ymd] => 2025-03-10 02:36:05 [RateCDR] => 1 ) [2025-03-10 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:36:05' and `end` < '2025-03-10 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:36:17] Production.INFO: count ==306 [2025-03-10 02:36:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:36:05 - End Time 2025-03-10 02:36:05 [2025-03-10 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646496', 'tblTempUsageDetail_20' ) start [2025-03-10 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646496', 'tblTempUsageDetail_20' ) end [2025-03-10 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646496', 'tblTempVendorCDR_20' ) start [2025-03-10 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646496', 'tblTempVendorCDR_20' ) end [2025-03-10 02:36:18] Production.INFO: ProcessCDR(1,14646496,1,1,2) [2025-03-10 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646496', 'tblTempUsageDetail_20' ) start [2025-03-10 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646496', 'tblTempUsageDetail_20' ) end [2025-03-10 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:36:22] Production.INFO: ==22268== Releasing lock... [2025-03-10 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:36:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:37:06 [end_date_ymd] => 2025-03-10 02:37:06 [RateCDR] => 1 ) [2025-03-10 02:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:37:06' and `end` < '2025-03-10 02:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:37:18] Production.INFO: count ==302 [2025-03-10 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:37:06 - End Time 2025-03-10 02:37:06 [2025-03-10 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646501', 'tblTempUsageDetail_20' ) start [2025-03-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646501', 'tblTempUsageDetail_20' ) end [2025-03-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646501', 'tblTempVendorCDR_20' ) start [2025-03-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646501', 'tblTempVendorCDR_20' ) end [2025-03-10 02:37:18] Production.INFO: ProcessCDR(1,14646501,1,1,2) [2025-03-10 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646501', 'tblTempUsageDetail_20' ) start [2025-03-10 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646501', 'tblTempUsageDetail_20' ) end [2025-03-10 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:37:22] Production.INFO: ==22349== Releasing lock... [2025-03-10 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:38:05 [end_date_ymd] => 2025-03-10 02:38:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 23:38:05' and `end` < '2025-03-10 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-03-10 02:38:18] Production.INFO: count ==301 [2025-03-10 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:38:05 - End Time 2025-03-10 02:38:05 [2025-03-10 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646506', 'tblTempUsageDetail_20' ) start [2025-03-10 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646506', 'tblTempUsageDetail_20' ) end [2025-03-10 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646506', 'tblTempVendorCDR_20' ) start [2025-03-10 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646506', 'tblTempVendorCDR_20' ) end [2025-03-10 02:38:18] Production.INFO: ProcessCDR(1,14646506,1,1,2) [2025-03-10 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646506', 'tblTempUsageDetail_20' ) start [2025-03-10 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646506', 'tblTempUsageDetail_20' ) end [2025-03-10 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:38:21] Production.INFO: ==22427== Releasing lock... [2025-03-10 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:39:06 [end_date_ymd] => 2025-03-10 02:39:06 [RateCDR] => 1 ) [2025-03-10 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:39:06' and `end` < '2025-03-10 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:39:18] Production.INFO: count ==301 [2025-03-10 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:39:06 - End Time 2025-03-10 02:39:06 [2025-03-10 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646511', 'tblTempUsageDetail_20' ) start [2025-03-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646511', 'tblTempUsageDetail_20' ) end [2025-03-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646511', 'tblTempVendorCDR_20' ) start [2025-03-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646511', 'tblTempVendorCDR_20' ) end [2025-03-10 02:39:18] Production.INFO: ProcessCDR(1,14646511,1,1,2) [2025-03-10 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646511', 'tblTempUsageDetail_20' ) start [2025-03-10 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646511', 'tblTempUsageDetail_20' ) end [2025-03-10 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:39:22] Production.INFO: ==22503== Releasing lock... [2025-03-10 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:39:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:40:06 [end_date_ymd] => 2025-03-10 02:40:06 [RateCDR] => 1 ) [2025-03-10 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:40:06' and `end` < '2025-03-10 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:40:18] Production.INFO: count ==303 [2025-03-10 02:40:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:40:06 - End Time 2025-03-10 02:40:06 [2025-03-10 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646516', 'tblTempUsageDetail_20' ) start [2025-03-10 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646516', 'tblTempUsageDetail_20' ) end [2025-03-10 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646516', 'tblTempVendorCDR_20' ) start [2025-03-10 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646516', 'tblTempVendorCDR_20' ) end [2025-03-10 02:40:18] Production.INFO: ProcessCDR(1,14646516,1,1,2) [2025-03-10 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646516', 'tblTempUsageDetail_20' ) start [2025-03-10 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646516', 'tblTempUsageDetail_20' ) end [2025-03-10 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:40:22] Production.INFO: ==22582== Releasing lock... [2025-03-10 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:41:05 [end_date_ymd] => 2025-03-10 02:41:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 23:41:05' and `end` < '2025-03-10 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-03-10 02:41:17] Production.INFO: count ==303 [2025-03-10 02:41:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:41:05 - End Time 2025-03-10 02:41:05 [2025-03-10 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646522', 'tblTempUsageDetail_20' ) start [2025-03-10 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646522', 'tblTempUsageDetail_20' ) end [2025-03-10 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646522', 'tblTempVendorCDR_20' ) start [2025-03-10 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646522', 'tblTempVendorCDR_20' ) end [2025-03-10 02:41:17] Production.INFO: ProcessCDR(1,14646522,1,1,2) [2025-03-10 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646522', 'tblTempUsageDetail_20' ) start [2025-03-10 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646522', 'tblTempUsageDetail_20' ) end [2025-03-10 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:41:21] Production.INFO: ==22660== Releasing lock... [2025-03-10 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:42:06 [end_date_ymd] => 2025-03-10 02:42:06 [RateCDR] => 1 ) [2025-03-10 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-03-09 23:42:06' and `end` < '2025-03-10 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-03-10 02:42:17] Production.INFO: count ==303 [2025-03-10 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:42:06 - End Time 2025-03-10 02:42:06 [2025-03-10 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646527', 'tblTempUsageDetail_20' ) start [2025-03-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646527', 'tblTempUsageDetail_20' ) end [2025-03-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646527', 'tblTempVendorCDR_20' ) start [2025-03-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646527', 'tblTempVendorCDR_20' ) end [2025-03-10 02:42:18] Production.INFO: ProcessCDR(1,14646527,1,1,2) [2025-03-10 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646527', 'tblTempUsageDetail_20' ) start [2025-03-10 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646527', 'tblTempUsageDetail_20' ) end [2025-03-10 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:42:21] Production.INFO: ==22771== Releasing lock... [2025-03-10 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:42:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:43:05 [end_date_ymd] => 2025-03-10 02:43:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 23:43:05' and `end` < '2025-03-10 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-03-10 02:43:17] Production.INFO: count ==303 [2025-03-10 02:43:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:43:05 - End Time 2025-03-10 02:43:05 [2025-03-10 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646532', 'tblTempUsageDetail_20' ) start [2025-03-10 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646532', 'tblTempUsageDetail_20' ) end [2025-03-10 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646532', 'tblTempVendorCDR_20' ) start [2025-03-10 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646532', 'tblTempVendorCDR_20' ) end [2025-03-10 02:43:17] Production.INFO: ProcessCDR(1,14646532,1,1,2) [2025-03-10 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646532', 'tblTempUsageDetail_20' ) start [2025-03-10 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646532', 'tblTempUsageDetail_20' ) end [2025-03-10 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:43:21] Production.INFO: ==22850== Releasing lock... [2025-03-10 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:44:06 [end_date_ymd] => 2025-03-10 02:44:06 [RateCDR] => 1 ) [2025-03-10 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:44:06' and `end` < '2025-03-10 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:44:18] Production.INFO: count ==306 [2025-03-10 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:44:06 - End Time 2025-03-10 02:44:06 [2025-03-10 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646537', 'tblTempUsageDetail_20' ) start [2025-03-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646537', 'tblTempUsageDetail_20' ) end [2025-03-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646537', 'tblTempVendorCDR_20' ) start [2025-03-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646537', 'tblTempVendorCDR_20' ) end [2025-03-10 02:44:18] Production.INFO: ProcessCDR(1,14646537,1,1,2) [2025-03-10 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646537', 'tblTempUsageDetail_20' ) start [2025-03-10 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646537', 'tblTempUsageDetail_20' ) end [2025-03-10 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:44:22] Production.INFO: ==22923== Releasing lock... [2025-03-10 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:44:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:45:05 [end_date_ymd] => 2025-03-10 02:45:05 [RateCDR] => 1 ) [2025-03-10 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:45:05' and `end` < '2025-03-10 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:45:17] Production.INFO: count ==318 [2025-03-10 02:45:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:45:05 - End Time 2025-03-10 02:45:05 [2025-03-10 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646542', 'tblTempUsageDetail_20' ) start [2025-03-10 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646542', 'tblTempUsageDetail_20' ) end [2025-03-10 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646542', 'tblTempVendorCDR_20' ) start [2025-03-10 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646542', 'tblTempVendorCDR_20' ) end [2025-03-10 02:45:18] Production.INFO: ProcessCDR(1,14646542,1,1,2) [2025-03-10 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646542', 'tblTempUsageDetail_20' ) start [2025-03-10 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646542', 'tblTempUsageDetail_20' ) end [2025-03-10 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:45:21] Production.INFO: ==22999== Releasing lock... [2025-03-10 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:45:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:46:06 [end_date_ymd] => 2025-03-10 02:46:06 [RateCDR] => 1 ) [2025-03-10 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:46:06' and `end` < '2025-03-10 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:46:18] Production.INFO: count ==318 [2025-03-10 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:46:06 - End Time 2025-03-10 02:46:06 [2025-03-10 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646547', 'tblTempUsageDetail_20' ) start [2025-03-10 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646547', 'tblTempUsageDetail_20' ) end [2025-03-10 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646547', 'tblTempVendorCDR_20' ) start [2025-03-10 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646547', 'tblTempVendorCDR_20' ) end [2025-03-10 02:46:18] Production.INFO: ProcessCDR(1,14646547,1,1,2) [2025-03-10 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646547', 'tblTempUsageDetail_20' ) start [2025-03-10 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646547', 'tblTempUsageDetail_20' ) end [2025-03-10 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:46:22] Production.INFO: ==23076== Releasing lock... [2025-03-10 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:46:22] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:47:05 [end_date_ymd] => 2025-03-10 02:47:05 [RateCDR] => 1 ) [2025-03-10 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:47:05' and `end` < '2025-03-10 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:47:17] Production.INFO: count ==318 [2025-03-10 02:47:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:47:05 - End Time 2025-03-10 02:47:05 [2025-03-10 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646552', 'tblTempUsageDetail_20' ) start [2025-03-10 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646552', 'tblTempUsageDetail_20' ) end [2025-03-10 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646552', 'tblTempVendorCDR_20' ) start [2025-03-10 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646552', 'tblTempVendorCDR_20' ) end [2025-03-10 02:47:17] Production.INFO: ProcessCDR(1,14646552,1,1,2) [2025-03-10 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646552', 'tblTempUsageDetail_20' ) start [2025-03-10 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646552', 'tblTempUsageDetail_20' ) end [2025-03-10 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:47:21] Production.INFO: ==23147== Releasing lock... [2025-03-10 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:47:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:48:06 [end_date_ymd] => 2025-03-10 02:48:06 [RateCDR] => 1 ) [2025-03-10 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:48:06' and `end` < '2025-03-10 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:48:18] Production.INFO: count ==318 [2025-03-10 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:48:06 - End Time 2025-03-10 02:48:06 [2025-03-10 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646557', 'tblTempUsageDetail_20' ) start [2025-03-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646557', 'tblTempUsageDetail_20' ) end [2025-03-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646557', 'tblTempVendorCDR_20' ) start [2025-03-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646557', 'tblTempVendorCDR_20' ) end [2025-03-10 02:48:18] Production.INFO: ProcessCDR(1,14646557,1,1,2) [2025-03-10 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646557', 'tblTempUsageDetail_20' ) start [2025-03-10 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646557', 'tblTempUsageDetail_20' ) end [2025-03-10 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:48:22] Production.INFO: ==23224== Releasing lock... [2025-03-10 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:48:22] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:49:06 [end_date_ymd] => 2025-03-10 02:49:06 [RateCDR] => 1 ) [2025-03-10 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:49:06' and `end` < '2025-03-10 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:49:18] Production.INFO: count ==318 [2025-03-10 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:49:06 - End Time 2025-03-10 02:49:06 [2025-03-10 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646562', 'tblTempUsageDetail_20' ) start [2025-03-10 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646562', 'tblTempUsageDetail_20' ) end [2025-03-10 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646562', 'tblTempVendorCDR_20' ) start [2025-03-10 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646562', 'tblTempVendorCDR_20' ) end [2025-03-10 02:49:18] Production.INFO: ProcessCDR(1,14646562,1,1,2) [2025-03-10 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646562', 'tblTempUsageDetail_20' ) start [2025-03-10 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646562', 'tblTempUsageDetail_20' ) end [2025-03-10 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:49:21] Production.INFO: ==23300== Releasing lock... [2025-03-10 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:49:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:50:07 [end_date_ymd] => 2025-03-10 02:50:07 [RateCDR] => 1 ) [2025-03-10 02:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:50:07' and `end` < '2025-03-10 02:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:50:19] Production.INFO: count ==318 [2025-03-10 02:50:19] Production.ERROR: pbx CDR StartTime 2025-03-09 23:50:07 - End Time 2025-03-10 02:50:07 [2025-03-10 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646568', 'tblTempUsageDetail_20' ) start [2025-03-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646568', 'tblTempUsageDetail_20' ) end [2025-03-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646568', 'tblTempVendorCDR_20' ) start [2025-03-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646568', 'tblTempVendorCDR_20' ) end [2025-03-10 02:50:19] Production.INFO: ProcessCDR(1,14646568,1,1,2) [2025-03-10 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646568', 'tblTempUsageDetail_20' ) start [2025-03-10 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646568', 'tblTempUsageDetail_20' ) end [2025-03-10 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:50:23] Production.INFO: ==23379== Releasing lock... [2025-03-10 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:50:23] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:51:05 [end_date_ymd] => 2025-03-10 02:51:05 [RateCDR] => 1 ) [2025-03-10 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:51:05' and `end` < '2025-03-10 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:51:17] Production.INFO: count ==318 [2025-03-10 02:51:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:51:05 - End Time 2025-03-10 02:51:05 [2025-03-10 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646573', 'tblTempUsageDetail_20' ) start [2025-03-10 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646573', 'tblTempUsageDetail_20' ) end [2025-03-10 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646573', 'tblTempVendorCDR_20' ) start [2025-03-10 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646573', 'tblTempVendorCDR_20' ) end [2025-03-10 02:51:17] Production.INFO: ProcessCDR(1,14646573,1,1,2) [2025-03-10 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646573', 'tblTempUsageDetail_20' ) start [2025-03-10 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646573', 'tblTempUsageDetail_20' ) end [2025-03-10 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:51:21] Production.INFO: ==23468== Releasing lock... [2025-03-10 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:51:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:52:05 [end_date_ymd] => 2025-03-10 02:52:05 [RateCDR] => 1 ) [2025-03-10 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-03-09 23:52:05' and `end` < '2025-03-10 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-03-10 02:52:18] Production.INFO: count ==318 [2025-03-10 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:52:05 - End Time 2025-03-10 02:52:05 [2025-03-10 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646578', 'tblTempUsageDetail_20' ) start [2025-03-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646578', 'tblTempUsageDetail_20' ) end [2025-03-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646578', 'tblTempVendorCDR_20' ) start [2025-03-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646578', 'tblTempVendorCDR_20' ) end [2025-03-10 02:52:18] Production.INFO: ProcessCDR(1,14646578,1,1,2) [2025-03-10 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646578', 'tblTempUsageDetail_20' ) start [2025-03-10 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646578', 'tblTempUsageDetail_20' ) end [2025-03-10 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:52:22] Production.INFO: ==23546== Releasing lock... [2025-03-10 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:52:22] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:53:06 [end_date_ymd] => 2025-03-10 02:53:06 [RateCDR] => 1 ) [2025-03-10 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-03-09 23:53:06' and `end` < '2025-03-10 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-03-10 02:53:18] Production.INFO: count ==318 [2025-03-10 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:53:06 - End Time 2025-03-10 02:53:06 [2025-03-10 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646583', 'tblTempUsageDetail_20' ) start [2025-03-10 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646583', 'tblTempUsageDetail_20' ) end [2025-03-10 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646583', 'tblTempVendorCDR_20' ) start [2025-03-10 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646583', 'tblTempVendorCDR_20' ) end [2025-03-10 02:53:18] Production.INFO: ProcessCDR(1,14646583,1,1,2) [2025-03-10 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646583', 'tblTempUsageDetail_20' ) start [2025-03-10 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646583', 'tblTempUsageDetail_20' ) end [2025-03-10 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:53:22] Production.INFO: ==23620== Releasing lock... [2025-03-10 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:53:22] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:54:05 [end_date_ymd] => 2025-03-10 02:54:05 [RateCDR] => 1 ) [2025-03-10 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:54:05' and `end` < '2025-03-10 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:54:17] Production.INFO: count ==316 [2025-03-10 02:54:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:54:05 - End Time 2025-03-10 02:54:05 [2025-03-10 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646588', 'tblTempUsageDetail_20' ) start [2025-03-10 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646588', 'tblTempUsageDetail_20' ) end [2025-03-10 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646588', 'tblTempVendorCDR_20' ) start [2025-03-10 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646588', 'tblTempVendorCDR_20' ) end [2025-03-10 02:54:17] Production.INFO: ProcessCDR(1,14646588,1,1,2) [2025-03-10 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646588', 'tblTempUsageDetail_20' ) start [2025-03-10 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646588', 'tblTempUsageDetail_20' ) end [2025-03-10 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:54:21] Production.INFO: ==23695== Releasing lock... [2025-03-10 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:54:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:55:06 [end_date_ymd] => 2025-03-10 02:55:06 [RateCDR] => 1 ) [2025-03-10 02:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:55:06' and `end` < '2025-03-10 02:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:55:18] Production.INFO: count ==312 [2025-03-10 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:55:06 - End Time 2025-03-10 02:55:06 [2025-03-10 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646593', 'tblTempUsageDetail_20' ) start [2025-03-10 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646593', 'tblTempUsageDetail_20' ) end [2025-03-10 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646593', 'tblTempVendorCDR_20' ) start [2025-03-10 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646593', 'tblTempVendorCDR_20' ) end [2025-03-10 02:55:18] Production.INFO: ProcessCDR(1,14646593,1,1,2) [2025-03-10 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646593', 'tblTempUsageDetail_20' ) start [2025-03-10 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646593', 'tblTempUsageDetail_20' ) end [2025-03-10 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:55:21] Production.INFO: ==23768== Releasing lock... [2025-03-10 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:56:05 [end_date_ymd] => 2025-03-10 02:56:05 [RateCDR] => 1 ) [2025-03-10 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:56:05' and `end` < '2025-03-10 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:56:17] Production.INFO: count ==306 [2025-03-10 02:56:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:56:05 - End Time 2025-03-10 02:56:05 [2025-03-10 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646598', 'tblTempUsageDetail_20' ) start [2025-03-10 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646598', 'tblTempUsageDetail_20' ) end [2025-03-10 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646598', 'tblTempVendorCDR_20' ) start [2025-03-10 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646598', 'tblTempVendorCDR_20' ) end [2025-03-10 02:56:17] Production.INFO: ProcessCDR(1,14646598,1,1,2) [2025-03-10 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646598', 'tblTempUsageDetail_20' ) start [2025-03-10 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646598', 'tblTempUsageDetail_20' ) end [2025-03-10 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:56:21] Production.INFO: ==23845== Releasing lock... [2025-03-10 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:56:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:57:06 [end_date_ymd] => 2025-03-10 02:57:06 [RateCDR] => 1 ) [2025-03-10 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:57:06' and `end` < '2025-03-10 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:57:18] Production.INFO: count ==305 [2025-03-10 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-09 23:57:06 - End Time 2025-03-10 02:57:06 [2025-03-10 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646603', 'tblTempUsageDetail_20' ) start [2025-03-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646603', 'tblTempUsageDetail_20' ) end [2025-03-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646603', 'tblTempVendorCDR_20' ) start [2025-03-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646603', 'tblTempVendorCDR_20' ) end [2025-03-10 02:57:18] Production.INFO: ProcessCDR(1,14646603,1,1,2) [2025-03-10 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646603', 'tblTempUsageDetail_20' ) start [2025-03-10 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646603', 'tblTempUsageDetail_20' ) end [2025-03-10 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:57:22] Production.INFO: ==23960== Releasing lock... [2025-03-10 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:57:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:58:05 [end_date_ymd] => 2025-03-10 02:58:05 [RateCDR] => 1 ) [2025-03-10 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:58:05' and `end` < '2025-03-10 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:58:17] Production.INFO: count ==304 [2025-03-10 02:58:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:58:05 - End Time 2025-03-10 02:58:05 [2025-03-10 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646608', 'tblTempUsageDetail_20' ) start [2025-03-10 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646608', 'tblTempUsageDetail_20' ) end [2025-03-10 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646608', 'tblTempVendorCDR_20' ) start [2025-03-10 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646608', 'tblTempVendorCDR_20' ) end [2025-03-10 02:58:17] Production.INFO: ProcessCDR(1,14646608,1,1,2) [2025-03-10 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646608', 'tblTempUsageDetail_20' ) start [2025-03-10 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646608', 'tblTempUsageDetail_20' ) end [2025-03-10 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:58:21] Production.INFO: ==24032== Releasing lock... [2025-03-10 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:58:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-09 23:59:05 [end_date_ymd] => 2025-03-10 02:59:05 [RateCDR] => 1 ) [2025-03-10 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-09 23:59:05' and `end` < '2025-03-10 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 02:59:17] Production.INFO: count ==304 [2025-03-10 02:59:17] Production.ERROR: pbx CDR StartTime 2025-03-09 23:59:05 - End Time 2025-03-10 02:59:05 [2025-03-10 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646613', 'tblTempUsageDetail_20' ) start [2025-03-10 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646613', 'tblTempUsageDetail_20' ) end [2025-03-10 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646613', 'tblTempVendorCDR_20' ) start [2025-03-10 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646613', 'tblTempVendorCDR_20' ) end [2025-03-10 02:59:17] Production.INFO: ProcessCDR(1,14646613,1,1,2) [2025-03-10 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646613', 'tblTempUsageDetail_20' ) start [2025-03-10 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646613', 'tblTempUsageDetail_20' ) end [2025-03-10 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 02:59:21] Production.INFO: ==24110== Releasing lock... [2025-03-10 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 02:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:00:06 [end_date_ymd] => 2025-03-10 03:00:06 [RateCDR] => 1 ) [2025-03-10 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:00:06' and `end` < '2025-03-10 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:00:18] Production.INFO: count ==314 [2025-03-10 03:00:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:00:06 - End Time 2025-03-10 03:00:06 [2025-03-10 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646619', 'tblTempUsageDetail_20' ) start [2025-03-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646619', 'tblTempUsageDetail_20' ) end [2025-03-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646619', 'tblTempVendorCDR_20' ) start [2025-03-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646619', 'tblTempVendorCDR_20' ) end [2025-03-10 03:00:18] Production.INFO: ProcessCDR(1,14646619,1,1,2) [2025-03-10 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646619', 'tblTempUsageDetail_20' ) start [2025-03-10 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646619', 'tblTempUsageDetail_20' ) end [2025-03-10 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:00:23] Production.INFO: ==24185== Releasing lock... [2025-03-10 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:00:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:01:06 [end_date_ymd] => 2025-03-10 03:01:06 [RateCDR] => 1 ) [2025-03-10 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:01:06' and `end` < '2025-03-10 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:01:18] Production.INFO: count ==314 [2025-03-10 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:01:06 - End Time 2025-03-10 03:01:06 [2025-03-10 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646624', 'tblTempUsageDetail_20' ) start [2025-03-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646624', 'tblTempUsageDetail_20' ) end [2025-03-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646624', 'tblTempVendorCDR_20' ) start [2025-03-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646624', 'tblTempVendorCDR_20' ) end [2025-03-10 03:01:18] Production.INFO: ProcessCDR(1,14646624,1,1,2) [2025-03-10 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646624', 'tblTempUsageDetail_20' ) start [2025-03-10 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646624', 'tblTempUsageDetail_20' ) end [2025-03-10 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:01:21] Production.INFO: ==24356== Releasing lock... [2025-03-10 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:02:05 [end_date_ymd] => 2025-03-10 03:02:05 [RateCDR] => 1 ) [2025-03-10 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:02:05' and `end` < '2025-03-10 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:02:18] Production.INFO: count ==314 [2025-03-10 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:02:05 - End Time 2025-03-10 03:02:05 [2025-03-10 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646629', 'tblTempUsageDetail_20' ) start [2025-03-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646629', 'tblTempUsageDetail_20' ) end [2025-03-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646629', 'tblTempVendorCDR_20' ) start [2025-03-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646629', 'tblTempVendorCDR_20' ) end [2025-03-10 03:02:18] Production.INFO: ProcessCDR(1,14646629,1,1,2) [2025-03-10 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646629', 'tblTempUsageDetail_20' ) start [2025-03-10 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646629', 'tblTempUsageDetail_20' ) end [2025-03-10 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:02:23] Production.INFO: ==24502== Releasing lock... [2025-03-10 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:02:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:03:06 [end_date_ymd] => 2025-03-10 03:03:06 [RateCDR] => 1 ) [2025-03-10 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:03:06' and `end` < '2025-03-10 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:03:18] Production.INFO: count ==317 [2025-03-10 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:03:06 - End Time 2025-03-10 03:03:06 [2025-03-10 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646634', 'tblTempUsageDetail_20' ) start [2025-03-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646634', 'tblTempUsageDetail_20' ) end [2025-03-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646634', 'tblTempVendorCDR_20' ) start [2025-03-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646634', 'tblTempVendorCDR_20' ) end [2025-03-10 03:03:18] Production.INFO: ProcessCDR(1,14646634,1,1,2) [2025-03-10 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646634', 'tblTempUsageDetail_20' ) start [2025-03-10 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646634', 'tblTempUsageDetail_20' ) end [2025-03-10 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:03:22] Production.INFO: ==24573== Releasing lock... [2025-03-10 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:03:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:04:05 [end_date_ymd] => 2025-03-10 03:04:05 [RateCDR] => 1 ) [2025-03-10 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:04:05' and `end` < '2025-03-10 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:04:17] Production.INFO: count ==317 [2025-03-10 03:04:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:04:05 - End Time 2025-03-10 03:04:05 [2025-03-10 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646639', 'tblTempUsageDetail_20' ) start [2025-03-10 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646639', 'tblTempUsageDetail_20' ) end [2025-03-10 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646639', 'tblTempVendorCDR_20' ) start [2025-03-10 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646639', 'tblTempVendorCDR_20' ) end [2025-03-10 03:04:17] Production.INFO: ProcessCDR(1,14646639,1,1,2) [2025-03-10 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646639', 'tblTempUsageDetail_20' ) start [2025-03-10 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646639', 'tblTempUsageDetail_20' ) end [2025-03-10 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:04:21] Production.INFO: ==24645== Releasing lock... [2025-03-10 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:05:05 [end_date_ymd] => 2025-03-10 03:05:05 [RateCDR] => 1 ) [2025-03-10 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:05:05' and `end` < '2025-03-10 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:05:17] Production.INFO: count ==314 [2025-03-10 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:05:05 - End Time 2025-03-10 03:05:05 [2025-03-10 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646644', 'tblTempUsageDetail_20' ) start [2025-03-10 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646644', 'tblTempUsageDetail_20' ) end [2025-03-10 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646644', 'tblTempVendorCDR_20' ) start [2025-03-10 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646644', 'tblTempVendorCDR_20' ) end [2025-03-10 03:05:18] Production.INFO: ProcessCDR(1,14646644,1,1,2) [2025-03-10 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646644', 'tblTempUsageDetail_20' ) start [2025-03-10 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646644', 'tblTempUsageDetail_20' ) end [2025-03-10 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:05:21] Production.INFO: ==24724== Releasing lock... [2025-03-10 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:06:05 [end_date_ymd] => 2025-03-10 03:06:05 [RateCDR] => 1 ) [2025-03-10 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:06:05' and `end` < '2025-03-10 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:06:17] Production.INFO: count ==314 [2025-03-10 03:06:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:06:05 - End Time 2025-03-10 03:06:05 [2025-03-10 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646649', 'tblTempUsageDetail_20' ) start [2025-03-10 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646649', 'tblTempUsageDetail_20' ) end [2025-03-10 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646649', 'tblTempVendorCDR_20' ) start [2025-03-10 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646649', 'tblTempVendorCDR_20' ) end [2025-03-10 03:06:17] Production.INFO: ProcessCDR(1,14646649,1,1,2) [2025-03-10 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646649', 'tblTempUsageDetail_20' ) start [2025-03-10 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646649', 'tblTempUsageDetail_20' ) end [2025-03-10 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:06:21] Production.INFO: ==24877== Releasing lock... [2025-03-10 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:07:05 [end_date_ymd] => 2025-03-10 03:07:05 [RateCDR] => 1 ) [2025-03-10 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:07:05' and `end` < '2025-03-10 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:07:17] Production.INFO: count ==314 [2025-03-10 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:07:05 - End Time 2025-03-10 03:07:05 [2025-03-10 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646654', 'tblTempUsageDetail_20' ) start [2025-03-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646654', 'tblTempUsageDetail_20' ) end [2025-03-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646654', 'tblTempVendorCDR_20' ) start [2025-03-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646654', 'tblTempVendorCDR_20' ) end [2025-03-10 03:07:17] Production.INFO: ProcessCDR(1,14646654,1,1,2) [2025-03-10 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646654', 'tblTempUsageDetail_20' ) start [2025-03-10 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646654', 'tblTempUsageDetail_20' ) end [2025-03-10 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:07:21] Production.INFO: ==24946== Releasing lock... [2025-03-10 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:08:05 [end_date_ymd] => 2025-03-10 03:08:05 [RateCDR] => 1 ) [2025-03-10 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:08:05' and `end` < '2025-03-10 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:08:17] Production.INFO: count ==313 [2025-03-10 03:08:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:08:05 - End Time 2025-03-10 03:08:05 [2025-03-10 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646659', 'tblTempUsageDetail_20' ) start [2025-03-10 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646659', 'tblTempUsageDetail_20' ) end [2025-03-10 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646659', 'tblTempVendorCDR_20' ) start [2025-03-10 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646659', 'tblTempVendorCDR_20' ) end [2025-03-10 03:08:17] Production.INFO: ProcessCDR(1,14646659,1,1,2) [2025-03-10 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646659', 'tblTempUsageDetail_20' ) start [2025-03-10 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646659', 'tblTempUsageDetail_20' ) end [2025-03-10 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:08:20] Production.INFO: ==25015== Releasing lock... [2025-03-10 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:08:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:09:05 [end_date_ymd] => 2025-03-10 03:09:05 [RateCDR] => 1 ) [2025-03-10 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:09:05' and `end` < '2025-03-10 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:09:17] Production.INFO: count ==313 [2025-03-10 03:09:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:09:05 - End Time 2025-03-10 03:09:05 [2025-03-10 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646664', 'tblTempUsageDetail_20' ) start [2025-03-10 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646664', 'tblTempUsageDetail_20' ) end [2025-03-10 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646664', 'tblTempVendorCDR_20' ) start [2025-03-10 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646664', 'tblTempVendorCDR_20' ) end [2025-03-10 03:09:17] Production.INFO: ProcessCDR(1,14646664,1,1,2) [2025-03-10 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646664', 'tblTempUsageDetail_20' ) start [2025-03-10 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646664', 'tblTempUsageDetail_20' ) end [2025-03-10 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:09:21] Production.INFO: ==25165== Releasing lock... [2025-03-10 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:10:06 [end_date_ymd] => 2025-03-10 03:10:06 [RateCDR] => 1 ) [2025-03-10 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:10:06' and `end` < '2025-03-10 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:10:18] Production.INFO: count ==305 [2025-03-10 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:10:06 - End Time 2025-03-10 03:10:06 [2025-03-10 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646670', 'tblTempUsageDetail_20' ) start [2025-03-10 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646670', 'tblTempUsageDetail_20' ) end [2025-03-10 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646670', 'tblTempVendorCDR_20' ) start [2025-03-10 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646670', 'tblTempVendorCDR_20' ) end [2025-03-10 03:10:18] Production.INFO: ProcessCDR(1,14646670,1,1,2) [2025-03-10 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646670', 'tblTempUsageDetail_20' ) start [2025-03-10 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646670', 'tblTempUsageDetail_20' ) end [2025-03-10 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:10:21] Production.INFO: ==25236== Releasing lock... [2025-03-10 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:10:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:11:06 [end_date_ymd] => 2025-03-10 03:11:06 [RateCDR] => 1 ) [2025-03-10 03:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:11:06' and `end` < '2025-03-10 03:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:11:18] Production.INFO: count ==302 [2025-03-10 03:11:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:11:06 - End Time 2025-03-10 03:11:06 [2025-03-10 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646675', 'tblTempUsageDetail_20' ) start [2025-03-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646675', 'tblTempUsageDetail_20' ) end [2025-03-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646675', 'tblTempVendorCDR_20' ) start [2025-03-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646675', 'tblTempVendorCDR_20' ) end [2025-03-10 03:11:18] Production.INFO: ProcessCDR(1,14646675,1,1,2) [2025-03-10 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646675', 'tblTempUsageDetail_20' ) start [2025-03-10 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646675', 'tblTempUsageDetail_20' ) end [2025-03-10 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:11:21] Production.INFO: ==25315== Releasing lock... [2025-03-10 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:11:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:12:05 [end_date_ymd] => 2025-03-10 03:12:05 [RateCDR] => 1 ) [2025-03-10 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:12:05' and `end` < '2025-03-10 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:12:17] Production.INFO: count ==305 [2025-03-10 03:12:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:12:05 - End Time 2025-03-10 03:12:05 [2025-03-10 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646680', 'tblTempUsageDetail_20' ) start [2025-03-10 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646680', 'tblTempUsageDetail_20' ) end [2025-03-10 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646680', 'tblTempVendorCDR_20' ) start [2025-03-10 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646680', 'tblTempVendorCDR_20' ) end [2025-03-10 03:12:17] Production.INFO: ProcessCDR(1,14646680,1,1,2) [2025-03-10 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646680', 'tblTempUsageDetail_20' ) start [2025-03-10 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646680', 'tblTempUsageDetail_20' ) end [2025-03-10 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:12:21] Production.INFO: ==25387== Releasing lock... [2025-03-10 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:13:05 [end_date_ymd] => 2025-03-10 03:13:05 [RateCDR] => 1 ) [2025-03-10 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:13:05' and `end` < '2025-03-10 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:13:17] Production.INFO: count ==305 [2025-03-10 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:13:05 - End Time 2025-03-10 03:13:05 [2025-03-10 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646685', 'tblTempUsageDetail_20' ) start [2025-03-10 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646685', 'tblTempUsageDetail_20' ) end [2025-03-10 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646685', 'tblTempVendorCDR_20' ) start [2025-03-10 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646685', 'tblTempVendorCDR_20' ) end [2025-03-10 03:13:17] Production.INFO: ProcessCDR(1,14646685,1,1,2) [2025-03-10 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646685', 'tblTempUsageDetail_20' ) start [2025-03-10 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646685', 'tblTempUsageDetail_20' ) end [2025-03-10 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:13:21] Production.INFO: ==25592== Releasing lock... [2025-03-10 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:14:05 [end_date_ymd] => 2025-03-10 03:14:05 [RateCDR] => 1 ) [2025-03-10 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:14:05' and `end` < '2025-03-10 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:14:17] Production.INFO: count ==305 [2025-03-10 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:14:05 - End Time 2025-03-10 03:14:05 [2025-03-10 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646690', 'tblTempUsageDetail_20' ) start [2025-03-10 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646690', 'tblTempUsageDetail_20' ) end [2025-03-10 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646690', 'tblTempVendorCDR_20' ) start [2025-03-10 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646690', 'tblTempVendorCDR_20' ) end [2025-03-10 03:14:17] Production.INFO: ProcessCDR(1,14646690,1,1,2) [2025-03-10 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646690', 'tblTempUsageDetail_20' ) start [2025-03-10 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646690', 'tblTempUsageDetail_20' ) end [2025-03-10 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:14:20] Production.INFO: ==25688== Releasing lock... [2025-03-10 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:14:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:15:05 [end_date_ymd] => 2025-03-10 03:15:05 [RateCDR] => 1 ) [2025-03-10 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:15:05' and `end` < '2025-03-10 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:15:17] Production.INFO: count ==306 [2025-03-10 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:15:05 - End Time 2025-03-10 03:15:05 [2025-03-10 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646695', 'tblTempUsageDetail_20' ) start [2025-03-10 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646695', 'tblTempUsageDetail_20' ) end [2025-03-10 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646695', 'tblTempVendorCDR_20' ) start [2025-03-10 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646695', 'tblTempVendorCDR_20' ) end [2025-03-10 03:15:17] Production.INFO: ProcessCDR(1,14646695,1,1,2) [2025-03-10 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646695', 'tblTempUsageDetail_20' ) start [2025-03-10 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646695', 'tblTempUsageDetail_20' ) end [2025-03-10 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:15:22] Production.INFO: ==25768== Releasing lock... [2025-03-10 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:15:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:16:05 [end_date_ymd] => 2025-03-10 03:16:05 [RateCDR] => 1 ) [2025-03-10 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:16:05' and `end` < '2025-03-10 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:16:17] Production.INFO: count ==307 [2025-03-10 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:16:05 - End Time 2025-03-10 03:16:05 [2025-03-10 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646700', 'tblTempUsageDetail_20' ) start [2025-03-10 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646700', 'tblTempUsageDetail_20' ) end [2025-03-10 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646700', 'tblTempVendorCDR_20' ) start [2025-03-10 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646700', 'tblTempVendorCDR_20' ) end [2025-03-10 03:16:17] Production.INFO: ProcessCDR(1,14646700,1,1,2) [2025-03-10 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646700', 'tblTempUsageDetail_20' ) start [2025-03-10 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646700', 'tblTempUsageDetail_20' ) end [2025-03-10 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:16:21] Production.INFO: ==25847== Releasing lock... [2025-03-10 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:17:05 [end_date_ymd] => 2025-03-10 03:17:05 [RateCDR] => 1 ) [2025-03-10 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:17:05' and `end` < '2025-03-10 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:17:17] Production.INFO: count ==307 [2025-03-10 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:17:05 - End Time 2025-03-10 03:17:05 [2025-03-10 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646705', 'tblTempUsageDetail_20' ) start [2025-03-10 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646705', 'tblTempUsageDetail_20' ) end [2025-03-10 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646705', 'tblTempVendorCDR_20' ) start [2025-03-10 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646705', 'tblTempVendorCDR_20' ) end [2025-03-10 03:17:17] Production.INFO: ProcessCDR(1,14646705,1,1,2) [2025-03-10 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646705', 'tblTempUsageDetail_20' ) start [2025-03-10 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646705', 'tblTempUsageDetail_20' ) end [2025-03-10 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:17:21] Production.INFO: ==25994== Releasing lock... [2025-03-10 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:18:05 [end_date_ymd] => 2025-03-10 03:18:05 [RateCDR] => 1 ) [2025-03-10 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:18:05' and `end` < '2025-03-10 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:18:17] Production.INFO: count ==307 [2025-03-10 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:18:05 - End Time 2025-03-10 03:18:05 [2025-03-10 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646710', 'tblTempUsageDetail_20' ) start [2025-03-10 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646710', 'tblTempUsageDetail_20' ) end [2025-03-10 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646710', 'tblTempVendorCDR_20' ) start [2025-03-10 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646710', 'tblTempVendorCDR_20' ) end [2025-03-10 03:18:17] Production.INFO: ProcessCDR(1,14646710,1,1,2) [2025-03-10 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646710', 'tblTempUsageDetail_20' ) start [2025-03-10 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646710', 'tblTempUsageDetail_20' ) end [2025-03-10 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:18:21] Production.INFO: ==26065== Releasing lock... [2025-03-10 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:19:05 [end_date_ymd] => 2025-03-10 03:19:05 [RateCDR] => 1 ) [2025-03-10 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:19:05' and `end` < '2025-03-10 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:19:17] Production.INFO: count ==307 [2025-03-10 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:19:05 - End Time 2025-03-10 03:19:05 [2025-03-10 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646715', 'tblTempUsageDetail_20' ) start [2025-03-10 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646715', 'tblTempUsageDetail_20' ) end [2025-03-10 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646715', 'tblTempVendorCDR_20' ) start [2025-03-10 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646715', 'tblTempVendorCDR_20' ) end [2025-03-10 03:19:17] Production.INFO: ProcessCDR(1,14646715,1,1,2) [2025-03-10 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646715', 'tblTempUsageDetail_20' ) start [2025-03-10 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646715', 'tblTempUsageDetail_20' ) end [2025-03-10 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:19:21] Production.INFO: ==26149== Releasing lock... [2025-03-10 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:20:07 [end_date_ymd] => 2025-03-10 03:20:07 [RateCDR] => 1 ) [2025-03-10 03:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:20:07' and `end` < '2025-03-10 03:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:20:19] Production.INFO: count ==294 [2025-03-10 03:20:19] Production.ERROR: pbx CDR StartTime 2025-03-10 00:20:07 - End Time 2025-03-10 03:20:07 [2025-03-10 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646721', 'tblTempUsageDetail_20' ) start [2025-03-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646721', 'tblTempUsageDetail_20' ) end [2025-03-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646721', 'tblTempVendorCDR_20' ) start [2025-03-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646721', 'tblTempVendorCDR_20' ) end [2025-03-10 03:20:19] Production.INFO: ProcessCDR(1,14646721,1,1,2) [2025-03-10 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646721', 'tblTempUsageDetail_20' ) start [2025-03-10 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646721', 'tblTempUsageDetail_20' ) end [2025-03-10 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:20:22] Production.INFO: ==26236== Releasing lock... [2025-03-10 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:21:05 [end_date_ymd] => 2025-03-10 03:21:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 00:21:05' and `end` < '2025-03-10 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-03-10 03:21:17] Production.INFO: count ==291 [2025-03-10 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:21:05 - End Time 2025-03-10 03:21:05 [2025-03-10 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646726', 'tblTempUsageDetail_20' ) start [2025-03-10 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646726', 'tblTempUsageDetail_20' ) end [2025-03-10 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646726', 'tblTempVendorCDR_20' ) start [2025-03-10 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646726', 'tblTempVendorCDR_20' ) end [2025-03-10 03:21:17] Production.INFO: ProcessCDR(1,14646726,1,1,2) [2025-03-10 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646726', 'tblTempUsageDetail_20' ) start [2025-03-10 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646726', 'tblTempUsageDetail_20' ) end [2025-03-10 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:21:22] Production.INFO: ==26321== Releasing lock... [2025-03-10 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:21:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:22:05 [end_date_ymd] => 2025-03-10 03:22:05 [RateCDR] => 1 ) [2025-03-10 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:22:05' and `end` < '2025-03-10 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:22:17] Production.INFO: count ==290 [2025-03-10 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:22:05 - End Time 2025-03-10 03:22:05 [2025-03-10 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646731', 'tblTempUsageDetail_20' ) start [2025-03-10 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646731', 'tblTempUsageDetail_20' ) end [2025-03-10 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646731', 'tblTempVendorCDR_20' ) start [2025-03-10 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646731', 'tblTempVendorCDR_20' ) end [2025-03-10 03:22:17] Production.INFO: ProcessCDR(1,14646731,1,1,2) [2025-03-10 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646731', 'tblTempUsageDetail_20' ) start [2025-03-10 03:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646731', 'tblTempUsageDetail_20' ) end [2025-03-10 03:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:22:20] Production.INFO: ==26403== Releasing lock... [2025-03-10 03:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:22:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:23:05 [end_date_ymd] => 2025-03-10 03:23:05 [RateCDR] => 1 ) [2025-03-10 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:23:05' and `end` < '2025-03-10 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:23:17] Production.INFO: count ==291 [2025-03-10 03:23:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:23:05 - End Time 2025-03-10 03:23:05 [2025-03-10 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646736', 'tblTempUsageDetail_20' ) start [2025-03-10 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646736', 'tblTempUsageDetail_20' ) end [2025-03-10 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646736', 'tblTempVendorCDR_20' ) start [2025-03-10 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646736', 'tblTempVendorCDR_20' ) end [2025-03-10 03:23:18] Production.INFO: ProcessCDR(1,14646736,1,1,2) [2025-03-10 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646736', 'tblTempUsageDetail_20' ) start [2025-03-10 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646736', 'tblTempUsageDetail_20' ) end [2025-03-10 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:23:22] Production.INFO: ==26484== Releasing lock... [2025-03-10 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:24:05 [end_date_ymd] => 2025-03-10 03:24:05 [RateCDR] => 1 ) [2025-03-10 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:24:05' and `end` < '2025-03-10 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:24:17] Production.INFO: count ==291 [2025-03-10 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:24:05 - End Time 2025-03-10 03:24:05 [2025-03-10 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646741', 'tblTempUsageDetail_20' ) start [2025-03-10 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646741', 'tblTempUsageDetail_20' ) end [2025-03-10 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646741', 'tblTempVendorCDR_20' ) start [2025-03-10 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646741', 'tblTempVendorCDR_20' ) end [2025-03-10 03:24:17] Production.INFO: ProcessCDR(1,14646741,1,1,2) [2025-03-10 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646741', 'tblTempUsageDetail_20' ) start [2025-03-10 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646741', 'tblTempUsageDetail_20' ) end [2025-03-10 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:24:21] Production.INFO: ==26568== Releasing lock... [2025-03-10 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:25:06 [end_date_ymd] => 2025-03-10 03:25:06 [RateCDR] => 1 ) [2025-03-10 03:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:25:06' and `end` < '2025-03-10 03:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:25:18] Production.INFO: count ==286 [2025-03-10 03:25:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:25:06 - End Time 2025-03-10 03:25:06 [2025-03-10 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646746', 'tblTempUsageDetail_20' ) start [2025-03-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646746', 'tblTempUsageDetail_20' ) end [2025-03-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646746', 'tblTempVendorCDR_20' ) start [2025-03-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646746', 'tblTempVendorCDR_20' ) end [2025-03-10 03:25:18] Production.INFO: ProcessCDR(1,14646746,1,1,2) [2025-03-10 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646746', 'tblTempUsageDetail_20' ) start [2025-03-10 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646746', 'tblTempUsageDetail_20' ) end [2025-03-10 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:25:21] Production.INFO: ==26652== Releasing lock... [2025-03-10 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:26:05 [end_date_ymd] => 2025-03-10 03:26:05 [RateCDR] => 1 ) [2025-03-10 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:26:05' and `end` < '2025-03-10 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:26:17] Production.INFO: count ==282 [2025-03-10 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:26:05 - End Time 2025-03-10 03:26:05 [2025-03-10 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646751', 'tblTempUsageDetail_20' ) start [2025-03-10 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646751', 'tblTempUsageDetail_20' ) end [2025-03-10 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646751', 'tblTempVendorCDR_20' ) start [2025-03-10 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646751', 'tblTempVendorCDR_20' ) end [2025-03-10 03:26:17] Production.INFO: ProcessCDR(1,14646751,1,1,2) [2025-03-10 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646751', 'tblTempUsageDetail_20' ) start [2025-03-10 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646751', 'tblTempUsageDetail_20' ) end [2025-03-10 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:26:20] Production.INFO: ==26733== Releasing lock... [2025-03-10 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:26:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:27:05 [end_date_ymd] => 2025-03-10 03:27:05 [RateCDR] => 1 ) [2025-03-10 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:27:05' and `end` < '2025-03-10 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:27:17] Production.INFO: count ==276 [2025-03-10 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:27:05 - End Time 2025-03-10 03:27:05 [2025-03-10 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646756', 'tblTempUsageDetail_20' ) start [2025-03-10 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646756', 'tblTempUsageDetail_20' ) end [2025-03-10 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646756', 'tblTempVendorCDR_20' ) start [2025-03-10 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646756', 'tblTempVendorCDR_20' ) end [2025-03-10 03:27:17] Production.INFO: ProcessCDR(1,14646756,1,1,2) [2025-03-10 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646756', 'tblTempUsageDetail_20' ) start [2025-03-10 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646756', 'tblTempUsageDetail_20' ) end [2025-03-10 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:27:21] Production.INFO: ==26815== Releasing lock... [2025-03-10 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:28:06 [end_date_ymd] => 2025-03-10 03:28:06 [RateCDR] => 1 ) [2025-03-10 03:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:28:06' and `end` < '2025-03-10 03:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:28:18] Production.INFO: count ==269 [2025-03-10 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:28:06 - End Time 2025-03-10 03:28:06 [2025-03-10 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646761', 'tblTempUsageDetail_20' ) start [2025-03-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646761', 'tblTempUsageDetail_20' ) end [2025-03-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646761', 'tblTempVendorCDR_20' ) start [2025-03-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646761', 'tblTempVendorCDR_20' ) end [2025-03-10 03:28:18] Production.INFO: ProcessCDR(1,14646761,1,1,2) [2025-03-10 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646761', 'tblTempUsageDetail_20' ) start [2025-03-10 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646761', 'tblTempUsageDetail_20' ) end [2025-03-10 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:28:21] Production.INFO: ==26896== Releasing lock... [2025-03-10 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-10 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:29:05 [end_date_ymd] => 2025-03-10 03:29:05 [RateCDR] => 1 ) [2025-03-10 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:29:05' and `end` < '2025-03-10 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:29:17] Production.INFO: count ==268 [2025-03-10 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:29:05 - End Time 2025-03-10 03:29:05 [2025-03-10 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646766', 'tblTempUsageDetail_20' ) start [2025-03-10 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646766', 'tblTempUsageDetail_20' ) end [2025-03-10 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646766', 'tblTempVendorCDR_20' ) start [2025-03-10 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646766', 'tblTempVendorCDR_20' ) end [2025-03-10 03:29:17] Production.INFO: ProcessCDR(1,14646766,1,1,2) [2025-03-10 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646766', 'tblTempUsageDetail_20' ) start [2025-03-10 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646766', 'tblTempUsageDetail_20' ) end [2025-03-10 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:29:21] Production.INFO: ==26975== Releasing lock... [2025-03-10 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:30:06 [end_date_ymd] => 2025-03-10 03:30:06 [RateCDR] => 1 ) [2025-03-10 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:30:06' and `end` < '2025-03-10 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:30:18] Production.INFO: count ==262 [2025-03-10 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:30:06 - End Time 2025-03-10 03:30:06 [2025-03-10 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646772', 'tblTempUsageDetail_20' ) start [2025-03-10 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646772', 'tblTempUsageDetail_20' ) end [2025-03-10 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646772', 'tblTempVendorCDR_20' ) start [2025-03-10 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646772', 'tblTempVendorCDR_20' ) end [2025-03-10 03:30:18] Production.INFO: ProcessCDR(1,14646772,1,1,2) [2025-03-10 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646772', 'tblTempUsageDetail_20' ) start [2025-03-10 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646772', 'tblTempUsageDetail_20' ) end [2025-03-10 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:30:22] Production.INFO: ==27105== Releasing lock... [2025-03-10 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:31:05 [end_date_ymd] => 2025-03-10 03:31:05 [RateCDR] => 1 ) [2025-03-10 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:31:05' and `end` < '2025-03-10 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:31:17] Production.INFO: count ==262 [2025-03-10 03:31:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:31:05 - End Time 2025-03-10 03:31:05 [2025-03-10 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646777', 'tblTempUsageDetail_20' ) start [2025-03-10 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646777', 'tblTempUsageDetail_20' ) end [2025-03-10 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646777', 'tblTempVendorCDR_20' ) start [2025-03-10 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646777', 'tblTempVendorCDR_20' ) end [2025-03-10 03:31:17] Production.INFO: ProcessCDR(1,14646777,1,1,2) [2025-03-10 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646777', 'tblTempUsageDetail_20' ) start [2025-03-10 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646777', 'tblTempUsageDetail_20' ) end [2025-03-10 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:31:21] Production.INFO: ==27189== Releasing lock... [2025-03-10 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:32:06 [end_date_ymd] => 2025-03-10 03:32:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 00:32:06' and `end` < '2025-03-10 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-03-10 03:32:18] Production.INFO: count ==262 [2025-03-10 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:32:06 - End Time 2025-03-10 03:32:06 [2025-03-10 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646782', 'tblTempUsageDetail_20' ) start [2025-03-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646782', 'tblTempUsageDetail_20' ) end [2025-03-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646782', 'tblTempVendorCDR_20' ) start [2025-03-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646782', 'tblTempVendorCDR_20' ) end [2025-03-10 03:32:18] Production.INFO: ProcessCDR(1,14646782,1,1,2) [2025-03-10 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646782', 'tblTempUsageDetail_20' ) start [2025-03-10 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646782', 'tblTempUsageDetail_20' ) end [2025-03-10 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:32:22] Production.INFO: ==27270== Releasing lock... [2025-03-10 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:32:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:33:05 [end_date_ymd] => 2025-03-10 03:33:05 [RateCDR] => 1 ) [2025-03-10 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:33:05' and `end` < '2025-03-10 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:33:17] Production.INFO: count ==260 [2025-03-10 03:33:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:33:05 - End Time 2025-03-10 03:33:05 [2025-03-10 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646787', 'tblTempUsageDetail_20' ) start [2025-03-10 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646787', 'tblTempUsageDetail_20' ) end [2025-03-10 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646787', 'tblTempVendorCDR_20' ) start [2025-03-10 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646787', 'tblTempVendorCDR_20' ) end [2025-03-10 03:33:17] Production.INFO: ProcessCDR(1,14646787,1,1,2) [2025-03-10 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646787', 'tblTempUsageDetail_20' ) start [2025-03-10 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646787', 'tblTempUsageDetail_20' ) end [2025-03-10 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:33:21] Production.INFO: ==27350== Releasing lock... [2025-03-10 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:34:06 [end_date_ymd] => 2025-03-10 03:34:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 00:34:06' and `end` < '2025-03-10 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-03-10 03:34:18] Production.INFO: count ==259 [2025-03-10 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:34:06 - End Time 2025-03-10 03:34:06 [2025-03-10 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646792', 'tblTempUsageDetail_20' ) start [2025-03-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646792', 'tblTempUsageDetail_20' ) end [2025-03-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646792', 'tblTempVendorCDR_20' ) start [2025-03-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646792', 'tblTempVendorCDR_20' ) end [2025-03-10 03:34:18] Production.INFO: ProcessCDR(1,14646792,1,1,2) [2025-03-10 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646792', 'tblTempUsageDetail_20' ) start [2025-03-10 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646792', 'tblTempUsageDetail_20' ) end [2025-03-10 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:34:21] Production.INFO: ==27429== Releasing lock... [2025-03-10 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:35:06 [end_date_ymd] => 2025-03-10 03:35:06 [RateCDR] => 1 ) [2025-03-10 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:35:06' and `end` < '2025-03-10 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:35:18] Production.INFO: count ==259 [2025-03-10 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:35:06 - End Time 2025-03-10 03:35:06 [2025-03-10 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646797', 'tblTempUsageDetail_20' ) start [2025-03-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646797', 'tblTempUsageDetail_20' ) end [2025-03-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646797', 'tblTempVendorCDR_20' ) start [2025-03-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646797', 'tblTempVendorCDR_20' ) end [2025-03-10 03:35:18] Production.INFO: ProcessCDR(1,14646797,1,1,2) [2025-03-10 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646797', 'tblTempUsageDetail_20' ) start [2025-03-10 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646797', 'tblTempUsageDetail_20' ) end [2025-03-10 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:35:21] Production.INFO: ==27516== Releasing lock... [2025-03-10 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:36:06 [end_date_ymd] => 2025-03-10 03:36:06 [RateCDR] => 1 ) [2025-03-10 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:36:06' and `end` < '2025-03-10 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:36:18] Production.INFO: count ==259 [2025-03-10 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:36:06 - End Time 2025-03-10 03:36:06 [2025-03-10 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646802', 'tblTempUsageDetail_20' ) start [2025-03-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646802', 'tblTempUsageDetail_20' ) end [2025-03-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646802', 'tblTempVendorCDR_20' ) start [2025-03-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646802', 'tblTempVendorCDR_20' ) end [2025-03-10 03:36:18] Production.INFO: ProcessCDR(1,14646802,1,1,2) [2025-03-10 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646802', 'tblTempUsageDetail_20' ) start [2025-03-10 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646802', 'tblTempUsageDetail_20' ) end [2025-03-10 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:36:22] Production.INFO: ==27601== Releasing lock... [2025-03-10 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:37:06 [end_date_ymd] => 2025-03-10 03:37:06 [RateCDR] => 1 ) [2025-03-10 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:37:06' and `end` < '2025-03-10 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:37:18] Production.INFO: count ==253 [2025-03-10 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:37:06 - End Time 2025-03-10 03:37:06 [2025-03-10 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646807', 'tblTempUsageDetail_20' ) start [2025-03-10 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646807', 'tblTempUsageDetail_20' ) end [2025-03-10 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646807', 'tblTempVendorCDR_20' ) start [2025-03-10 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646807', 'tblTempVendorCDR_20' ) end [2025-03-10 03:37:18] Production.INFO: ProcessCDR(1,14646807,1,1,2) [2025-03-10 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646807', 'tblTempUsageDetail_20' ) start [2025-03-10 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646807', 'tblTempUsageDetail_20' ) end [2025-03-10 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:37:21] Production.INFO: ==27680== Releasing lock... [2025-03-10 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:37:21] Production.INFO: 30 MB #Memory Used# [2025-03-10 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:38:06 [end_date_ymd] => 2025-03-10 03:38:06 [RateCDR] => 1 ) [2025-03-10 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:38:06' and `end` < '2025-03-10 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:38:18] Production.INFO: count ==253 [2025-03-10 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:38:06 - End Time 2025-03-10 03:38:06 [2025-03-10 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646812', 'tblTempUsageDetail_20' ) start [2025-03-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646812', 'tblTempUsageDetail_20' ) end [2025-03-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646812', 'tblTempVendorCDR_20' ) start [2025-03-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646812', 'tblTempVendorCDR_20' ) end [2025-03-10 03:38:18] Production.INFO: ProcessCDR(1,14646812,1,1,2) [2025-03-10 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646812', 'tblTempUsageDetail_20' ) start [2025-03-10 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646812', 'tblTempUsageDetail_20' ) end [2025-03-10 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:38:22] Production.INFO: ==27761== Releasing lock... [2025-03-10 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:38:22] Production.INFO: 30 MB #Memory Used# [2025-03-10 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:39:05 [end_date_ymd] => 2025-03-10 03:39:05 [RateCDR] => 1 ) [2025-03-10 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:39:05' and `end` < '2025-03-10 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:39:17] Production.INFO: count ==250 [2025-03-10 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:39:05 - End Time 2025-03-10 03:39:05 [2025-03-10 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646817', 'tblTempUsageDetail_20' ) start [2025-03-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646817', 'tblTempUsageDetail_20' ) end [2025-03-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646817', 'tblTempVendorCDR_20' ) start [2025-03-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646817', 'tblTempVendorCDR_20' ) end [2025-03-10 03:39:18] Production.INFO: ProcessCDR(1,14646817,1,1,2) [2025-03-10 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646817', 'tblTempUsageDetail_20' ) start [2025-03-10 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646817', 'tblTempUsageDetail_20' ) end [2025-03-10 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:39:21] Production.INFO: ==27842== Releasing lock... [2025-03-10 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-10 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:40:07 [end_date_ymd] => 2025-03-10 03:40:07 [RateCDR] => 1 ) [2025-03-10 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:40:07' and `end` < '2025-03-10 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:40:19] Production.INFO: count ==241 [2025-03-10 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-10 00:40:07 - End Time 2025-03-10 03:40:07 [2025-03-10 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646823', 'tblTempUsageDetail_20' ) start [2025-03-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646823', 'tblTempUsageDetail_20' ) end [2025-03-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646823', 'tblTempVendorCDR_20' ) start [2025-03-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646823', 'tblTempVendorCDR_20' ) end [2025-03-10 03:40:19] Production.INFO: ProcessCDR(1,14646823,1,1,2) [2025-03-10 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646823', 'tblTempUsageDetail_20' ) start [2025-03-10 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646823', 'tblTempUsageDetail_20' ) end [2025-03-10 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:40:23] Production.INFO: ==27929== Releasing lock... [2025-03-10 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:40:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:41:06 [end_date_ymd] => 2025-03-10 03:41:06 [RateCDR] => 1 ) [2025-03-10 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:41:06' and `end` < '2025-03-10 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:41:18] Production.INFO: count ==240 [2025-03-10 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:41:06 - End Time 2025-03-10 03:41:06 [2025-03-10 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646828', 'tblTempUsageDetail_20' ) start [2025-03-10 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646828', 'tblTempUsageDetail_20' ) end [2025-03-10 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646828', 'tblTempVendorCDR_20' ) start [2025-03-10 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646828', 'tblTempVendorCDR_20' ) end [2025-03-10 03:41:18] Production.INFO: ProcessCDR(1,14646828,1,1,2) [2025-03-10 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646828', 'tblTempUsageDetail_20' ) start [2025-03-10 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646828', 'tblTempUsageDetail_20' ) end [2025-03-10 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:41:21] Production.INFO: ==28015== Releasing lock... [2025-03-10 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:42:06 [end_date_ymd] => 2025-03-10 03:42:06 [RateCDR] => 1 ) [2025-03-10 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:42:06' and `end` < '2025-03-10 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:42:18] Production.INFO: count ==239 [2025-03-10 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:42:06 - End Time 2025-03-10 03:42:06 [2025-03-10 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646833', 'tblTempUsageDetail_20' ) start [2025-03-10 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646833', 'tblTempUsageDetail_20' ) end [2025-03-10 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646833', 'tblTempVendorCDR_20' ) start [2025-03-10 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646833', 'tblTempVendorCDR_20' ) end [2025-03-10 03:42:18] Production.INFO: ProcessCDR(1,14646833,1,1,2) [2025-03-10 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646833', 'tblTempUsageDetail_20' ) start [2025-03-10 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646833', 'tblTempUsageDetail_20' ) end [2025-03-10 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:42:22] Production.INFO: ==28094== Releasing lock... [2025-03-10 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-10 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:43:06 [end_date_ymd] => 2025-03-10 03:43:06 [RateCDR] => 1 ) [2025-03-10 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:43:06' and `end` < '2025-03-10 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:43:18] Production.INFO: count ==238 [2025-03-10 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:43:06 - End Time 2025-03-10 03:43:06 [2025-03-10 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646838', 'tblTempUsageDetail_20' ) start [2025-03-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646838', 'tblTempUsageDetail_20' ) end [2025-03-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646838', 'tblTempVendorCDR_20' ) start [2025-03-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646838', 'tblTempVendorCDR_20' ) end [2025-03-10 03:43:18] Production.INFO: ProcessCDR(1,14646838,1,1,2) [2025-03-10 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646838', 'tblTempUsageDetail_20' ) start [2025-03-10 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646838', 'tblTempUsageDetail_20' ) end [2025-03-10 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:43:22] Production.INFO: ==28175== Releasing lock... [2025-03-10 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:43:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-10 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:44:05 [end_date_ymd] => 2025-03-10 03:44:05 [RateCDR] => 1 ) [2025-03-10 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:44:05' and `end` < '2025-03-10 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:44:17] Production.INFO: count ==238 [2025-03-10 03:44:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:44:05 - End Time 2025-03-10 03:44:05 [2025-03-10 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646843', 'tblTempUsageDetail_20' ) start [2025-03-10 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646843', 'tblTempUsageDetail_20' ) end [2025-03-10 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646843', 'tblTempVendorCDR_20' ) start [2025-03-10 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646843', 'tblTempVendorCDR_20' ) end [2025-03-10 03:44:17] Production.INFO: ProcessCDR(1,14646843,1,1,2) [2025-03-10 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646843', 'tblTempUsageDetail_20' ) start [2025-03-10 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646843', 'tblTempUsageDetail_20' ) end [2025-03-10 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:44:21] Production.INFO: ==28254== Releasing lock... [2025-03-10 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-10 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:45:05 [end_date_ymd] => 2025-03-10 03:45:05 [RateCDR] => 1 ) [2025-03-10 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:45:05' and `end` < '2025-03-10 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:45:17] Production.INFO: count ==234 [2025-03-10 03:45:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:45:05 - End Time 2025-03-10 03:45:05 [2025-03-10 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646848', 'tblTempUsageDetail_20' ) start [2025-03-10 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646848', 'tblTempUsageDetail_20' ) end [2025-03-10 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646848', 'tblTempVendorCDR_20' ) start [2025-03-10 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646848', 'tblTempVendorCDR_20' ) end [2025-03-10 03:45:17] Production.INFO: ProcessCDR(1,14646848,1,1,2) [2025-03-10 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646848', 'tblTempUsageDetail_20' ) start [2025-03-10 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646848', 'tblTempUsageDetail_20' ) end [2025-03-10 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:45:21] Production.INFO: ==28379== Releasing lock... [2025-03-10 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:46:05 [end_date_ymd] => 2025-03-10 03:46:05 [RateCDR] => 1 ) [2025-03-10 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:46:05' and `end` < '2025-03-10 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:46:17] Production.INFO: count ==230 [2025-03-10 03:46:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:46:05 - End Time 2025-03-10 03:46:05 [2025-03-10 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646853', 'tblTempUsageDetail_20' ) start [2025-03-10 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646853', 'tblTempUsageDetail_20' ) end [2025-03-10 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646853', 'tblTempVendorCDR_20' ) start [2025-03-10 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646853', 'tblTempVendorCDR_20' ) end [2025-03-10 03:46:17] Production.INFO: ProcessCDR(1,14646853,1,1,2) [2025-03-10 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646853', 'tblTempUsageDetail_20' ) start [2025-03-10 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646853', 'tblTempUsageDetail_20' ) end [2025-03-10 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:46:21] Production.INFO: ==28462== Releasing lock... [2025-03-10 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-10 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:47:05 [end_date_ymd] => 2025-03-10 03:47:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 00:47:05' and `end` < '2025-03-10 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-03-10 03:47:17] Production.INFO: count ==226 [2025-03-10 03:47:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:47:05 - End Time 2025-03-10 03:47:05 [2025-03-10 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646858', 'tblTempUsageDetail_20' ) start [2025-03-10 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646858', 'tblTempUsageDetail_20' ) end [2025-03-10 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646858', 'tblTempVendorCDR_20' ) start [2025-03-10 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646858', 'tblTempVendorCDR_20' ) end [2025-03-10 03:47:17] Production.INFO: ProcessCDR(1,14646858,1,1,2) [2025-03-10 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646858', 'tblTempUsageDetail_20' ) start [2025-03-10 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646858', 'tblTempUsageDetail_20' ) end [2025-03-10 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:47:21] Production.INFO: ==28541== Releasing lock... [2025-03-10 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:48:06 [end_date_ymd] => 2025-03-10 03:48:06 [RateCDR] => 1 ) [2025-03-10 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:48:06' and `end` < '2025-03-10 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:48:18] Production.INFO: count ==225 [2025-03-10 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:48:06 - End Time 2025-03-10 03:48:06 [2025-03-10 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646863', 'tblTempUsageDetail_20' ) start [2025-03-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646863', 'tblTempUsageDetail_20' ) end [2025-03-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646863', 'tblTempVendorCDR_20' ) start [2025-03-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646863', 'tblTempVendorCDR_20' ) end [2025-03-10 03:48:18] Production.INFO: ProcessCDR(1,14646863,1,1,2) [2025-03-10 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646863', 'tblTempUsageDetail_20' ) start [2025-03-10 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646863', 'tblTempUsageDetail_20' ) end [2025-03-10 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:48:22] Production.INFO: ==28626== Releasing lock... [2025-03-10 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:48:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:49:06 [end_date_ymd] => 2025-03-10 03:49:06 [RateCDR] => 1 ) [2025-03-10 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:49:06' and `end` < '2025-03-10 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:49:18] Production.INFO: count ==225 [2025-03-10 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:49:06 - End Time 2025-03-10 03:49:06 [2025-03-10 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646868', 'tblTempUsageDetail_20' ) start [2025-03-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646868', 'tblTempUsageDetail_20' ) end [2025-03-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646868', 'tblTempVendorCDR_20' ) start [2025-03-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646868', 'tblTempVendorCDR_20' ) end [2025-03-10 03:49:18] Production.INFO: ProcessCDR(1,14646868,1,1,2) [2025-03-10 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646868', 'tblTempUsageDetail_20' ) start [2025-03-10 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646868', 'tblTempUsageDetail_20' ) end [2025-03-10 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:49:21] Production.INFO: ==28704== Releasing lock... [2025-03-10 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:50:07 [end_date_ymd] => 2025-03-10 03:50:07 [RateCDR] => 1 ) [2025-03-10 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:50:07' and `end` < '2025-03-10 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:50:19] Production.INFO: count ==215 [2025-03-10 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-10 00:50:07 - End Time 2025-03-10 03:50:07 [2025-03-10 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646873', 'tblTempUsageDetail_20' ) start [2025-03-10 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646873', 'tblTempUsageDetail_20' ) end [2025-03-10 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646873', 'tblTempVendorCDR_20' ) start [2025-03-10 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646873', 'tblTempVendorCDR_20' ) end [2025-03-10 03:50:19] Production.INFO: ProcessCDR(1,14646873,1,1,2) [2025-03-10 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646873', 'tblTempUsageDetail_20' ) start [2025-03-10 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646873', 'tblTempUsageDetail_20' ) end [2025-03-10 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:50:23] Production.INFO: ==28788== Releasing lock... [2025-03-10 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:50:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:51:06 [end_date_ymd] => 2025-03-10 03:51:06 [RateCDR] => 1 ) [2025-03-10 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:51:06' and `end` < '2025-03-10 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:51:18] Production.INFO: count ==218 [2025-03-10 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:51:06 - End Time 2025-03-10 03:51:06 [2025-03-10 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646879', 'tblTempUsageDetail_20' ) start [2025-03-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646879', 'tblTempUsageDetail_20' ) end [2025-03-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646879', 'tblTempVendorCDR_20' ) start [2025-03-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646879', 'tblTempVendorCDR_20' ) end [2025-03-10 03:51:18] Production.INFO: ProcessCDR(1,14646879,1,1,2) [2025-03-10 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646879', 'tblTempUsageDetail_20' ) start [2025-03-10 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646879', 'tblTempUsageDetail_20' ) end [2025-03-10 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:51:22] Production.INFO: ==28869== Releasing lock... [2025-03-10 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:51:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:52:06 [end_date_ymd] => 2025-03-10 03:52:06 [RateCDR] => 1 ) [2025-03-10 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:52:06' and `end` < '2025-03-10 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:52:18] Production.INFO: count ==215 [2025-03-10 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:52:06 - End Time 2025-03-10 03:52:06 [2025-03-10 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646884', 'tblTempUsageDetail_20' ) start [2025-03-10 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646884', 'tblTempUsageDetail_20' ) end [2025-03-10 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646884', 'tblTempVendorCDR_20' ) start [2025-03-10 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646884', 'tblTempVendorCDR_20' ) end [2025-03-10 03:52:18] Production.INFO: ProcessCDR(1,14646884,1,1,2) [2025-03-10 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646884', 'tblTempUsageDetail_20' ) start [2025-03-10 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646884', 'tblTempUsageDetail_20' ) end [2025-03-10 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:52:22] Production.INFO: ==28940== Releasing lock... [2025-03-10 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:53:05 [end_date_ymd] => 2025-03-10 03:53:05 [RateCDR] => 1 ) [2025-03-10 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:53:05' and `end` < '2025-03-10 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:53:17] Production.INFO: count ==215 [2025-03-10 03:53:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:53:05 - End Time 2025-03-10 03:53:05 [2025-03-10 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646889', 'tblTempUsageDetail_20' ) start [2025-03-10 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646889', 'tblTempUsageDetail_20' ) end [2025-03-10 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646889', 'tblTempVendorCDR_20' ) start [2025-03-10 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646889', 'tblTempVendorCDR_20' ) end [2025-03-10 03:53:18] Production.INFO: ProcessCDR(1,14646889,1,1,2) [2025-03-10 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646889', 'tblTempUsageDetail_20' ) start [2025-03-10 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646889', 'tblTempUsageDetail_20' ) end [2025-03-10 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:53:21] Production.INFO: ==29020== Releasing lock... [2025-03-10 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 03:54:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:54:07 [end_date_ymd] => 2025-03-10 03:54:07 [RateCDR] => 1 ) [2025-03-10 03:54:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:54:07' and `end` < '2025-03-10 03:54:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:54:19] Production.INFO: count ==215 [2025-03-10 03:54:19] Production.ERROR: pbx CDR StartTime 2025-03-10 00:54:07 - End Time 2025-03-10 03:54:07 [2025-03-10 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646894', 'tblTempUsageDetail_20' ) start [2025-03-10 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646894', 'tblTempUsageDetail_20' ) end [2025-03-10 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646894', 'tblTempVendorCDR_20' ) start [2025-03-10 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646894', 'tblTempVendorCDR_20' ) end [2025-03-10 03:54:19] Production.INFO: ProcessCDR(1,14646894,1,1,2) [2025-03-10 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646894', 'tblTempUsageDetail_20' ) start [2025-03-10 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646894', 'tblTempUsageDetail_20' ) end [2025-03-10 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:54:22] Production.INFO: ==29092== Releasing lock... [2025-03-10 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:54:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:55:05 [end_date_ymd] => 2025-03-10 03:55:05 [RateCDR] => 1 ) [2025-03-10 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:55:05' and `end` < '2025-03-10 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:55:17] Production.INFO: count ==215 [2025-03-10 03:55:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:55:05 - End Time 2025-03-10 03:55:05 [2025-03-10 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646899', 'tblTempUsageDetail_20' ) start [2025-03-10 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646899', 'tblTempUsageDetail_20' ) end [2025-03-10 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646899', 'tblTempVendorCDR_20' ) start [2025-03-10 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646899', 'tblTempVendorCDR_20' ) end [2025-03-10 03:55:17] Production.INFO: ProcessCDR(1,14646899,1,1,2) [2025-03-10 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646899', 'tblTempUsageDetail_20' ) start [2025-03-10 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646899', 'tblTempUsageDetail_20' ) end [2025-03-10 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:55:21] Production.INFO: ==29170== Releasing lock... [2025-03-10 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:55:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:56:06 [end_date_ymd] => 2025-03-10 03:56:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 00:56:06' and `end` < '2025-03-10 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-03-10 03:56:18] Production.INFO: count ==215 [2025-03-10 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:56:06 - End Time 2025-03-10 03:56:06 [2025-03-10 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646904', 'tblTempUsageDetail_20' ) start [2025-03-10 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646904', 'tblTempUsageDetail_20' ) end [2025-03-10 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646904', 'tblTempVendorCDR_20' ) start [2025-03-10 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646904', 'tblTempVendorCDR_20' ) end [2025-03-10 03:56:18] Production.INFO: ProcessCDR(1,14646904,1,1,2) [2025-03-10 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646904', 'tblTempUsageDetail_20' ) start [2025-03-10 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646904', 'tblTempUsageDetail_20' ) end [2025-03-10 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:56:21] Production.INFO: ==29243== Releasing lock... [2025-03-10 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:57:06 [end_date_ymd] => 2025-03-10 03:57:06 [RateCDR] => 1 ) [2025-03-10 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:57:06' and `end` < '2025-03-10 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:57:18] Production.INFO: count ==214 [2025-03-10 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-10 00:57:06 - End Time 2025-03-10 03:57:06 [2025-03-10 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646909', 'tblTempUsageDetail_20' ) start [2025-03-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646909', 'tblTempUsageDetail_20' ) end [2025-03-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646909', 'tblTempVendorCDR_20' ) start [2025-03-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646909', 'tblTempVendorCDR_20' ) end [2025-03-10 03:57:18] Production.INFO: ProcessCDR(1,14646909,1,1,2) [2025-03-10 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646909', 'tblTempUsageDetail_20' ) start [2025-03-10 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646909', 'tblTempUsageDetail_20' ) end [2025-03-10 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:57:21] Production.INFO: ==29313== Releasing lock... [2025-03-10 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:57:21] Production.INFO: 30 MB #Memory Used# [2025-03-10 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:58:05 [end_date_ymd] => 2025-03-10 03:58:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 00:58:05' and `end` < '2025-03-10 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:58:17] Production.INFO: count ==213 [2025-03-10 03:58:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:58:05 - End Time 2025-03-10 03:58:05 [2025-03-10 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646914', 'tblTempUsageDetail_20' ) start [2025-03-10 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646914', 'tblTempUsageDetail_20' ) end [2025-03-10 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646914', 'tblTempVendorCDR_20' ) start [2025-03-10 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646914', 'tblTempVendorCDR_20' ) end [2025-03-10 03:58:17] Production.INFO: ProcessCDR(1,14646914,1,1,2) [2025-03-10 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646914', 'tblTempUsageDetail_20' ) start [2025-03-10 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646914', 'tblTempUsageDetail_20' ) end [2025-03-10 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:58:21] Production.INFO: ==29386== Releasing lock... [2025-03-10 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:58:21] Production.INFO: 30 MB #Memory Used# [2025-03-10 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 00:59:05 [end_date_ymd] => 2025-03-10 03:59:05 [RateCDR] => 1 ) [2025-03-10 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 00:59:05' and `end` < '2025-03-10 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 03:59:17] Production.INFO: count ==214 [2025-03-10 03:59:17] Production.ERROR: pbx CDR StartTime 2025-03-10 00:59:05 - End Time 2025-03-10 03:59:05 [2025-03-10 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646919', 'tblTempUsageDetail_20' ) start [2025-03-10 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646919', 'tblTempUsageDetail_20' ) end [2025-03-10 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646919', 'tblTempVendorCDR_20' ) start [2025-03-10 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646919', 'tblTempVendorCDR_20' ) end [2025-03-10 03:59:17] Production.INFO: ProcessCDR(1,14646919,1,1,2) [2025-03-10 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646919', 'tblTempUsageDetail_20' ) start [2025-03-10 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646919', 'tblTempUsageDetail_20' ) end [2025-03-10 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 03:59:21] Production.INFO: ==29459== Releasing lock... [2025-03-10 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 03:59:21] Production.INFO: 30 MB #Memory Used# [2025-03-10 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:00:06 [end_date_ymd] => 2025-03-10 04:00:06 [RateCDR] => 1 ) [2025-03-10 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:00:06' and `end` < '2025-03-10 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:00:18] Production.INFO: count ==205 [2025-03-10 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:00:06 - End Time 2025-03-10 04:00:06 [2025-03-10 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646925', 'tblTempUsageDetail_20' ) start [2025-03-10 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646925', 'tblTempUsageDetail_20' ) end [2025-03-10 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646925', 'tblTempVendorCDR_20' ) start [2025-03-10 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646925', 'tblTempVendorCDR_20' ) end [2025-03-10 04:00:18] Production.INFO: ProcessCDR(1,14646925,1,1,2) [2025-03-10 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646925', 'tblTempUsageDetail_20' ) start [2025-03-10 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646925', 'tblTempUsageDetail_20' ) end [2025-03-10 04:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:00:21] Production.INFO: ==29536== Releasing lock... [2025-03-10 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:00:21] Production.INFO: 30 MB #Memory Used# [2025-03-10 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:01:06 [end_date_ymd] => 2025-03-10 04:01:06 [RateCDR] => 1 ) [2025-03-10 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:01:06' and `end` < '2025-03-10 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:01:18] Production.INFO: count ==203 [2025-03-10 04:01:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:01:06 - End Time 2025-03-10 04:01:06 [2025-03-10 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646931', 'tblTempUsageDetail_20' ) start [2025-03-10 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646931', 'tblTempUsageDetail_20' ) end [2025-03-10 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646931', 'tblTempVendorCDR_20' ) start [2025-03-10 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646931', 'tblTempVendorCDR_20' ) end [2025-03-10 04:01:18] Production.INFO: ProcessCDR(1,14646931,1,1,2) [2025-03-10 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646931', 'tblTempUsageDetail_20' ) start [2025-03-10 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646931', 'tblTempUsageDetail_20' ) end [2025-03-10 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:01:22] Production.INFO: ==29664== Releasing lock... [2025-03-10 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:01:22] Production.INFO: 30 MB #Memory Used# [2025-03-10 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:02:05 [end_date_ymd] => 2025-03-10 04:02:05 [RateCDR] => 1 ) [2025-03-10 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:02:05' and `end` < '2025-03-10 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:02:17] Production.INFO: count ==202 [2025-03-10 04:02:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:02:05 - End Time 2025-03-10 04:02:05 [2025-03-10 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646936', 'tblTempUsageDetail_20' ) start [2025-03-10 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646936', 'tblTempUsageDetail_20' ) end [2025-03-10 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646936', 'tblTempVendorCDR_20' ) start [2025-03-10 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646936', 'tblTempVendorCDR_20' ) end [2025-03-10 04:02:17] Production.INFO: ProcessCDR(1,14646936,1,1,2) [2025-03-10 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646936', 'tblTempUsageDetail_20' ) start [2025-03-10 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646936', 'tblTempUsageDetail_20' ) end [2025-03-10 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:02:21] Production.INFO: ==29737== Releasing lock... [2025-03-10 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:03:06 [end_date_ymd] => 2025-03-10 04:03:06 [RateCDR] => 1 ) [2025-03-10 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:03:06' and `end` < '2025-03-10 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:03:18] Production.INFO: count ==202 [2025-03-10 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:03:06 - End Time 2025-03-10 04:03:06 [2025-03-10 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646941', 'tblTempUsageDetail_20' ) start [2025-03-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646941', 'tblTempUsageDetail_20' ) end [2025-03-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646941', 'tblTempVendorCDR_20' ) start [2025-03-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646941', 'tblTempVendorCDR_20' ) end [2025-03-10 04:03:18] Production.INFO: ProcessCDR(1,14646941,1,1,2) [2025-03-10 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646941', 'tblTempUsageDetail_20' ) start [2025-03-10 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646941', 'tblTempUsageDetail_20' ) end [2025-03-10 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:03:21] Production.INFO: ==29811== Releasing lock... [2025-03-10 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:04:05 [end_date_ymd] => 2025-03-10 04:04:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 01:04:05' and `end` < '2025-03-10 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-03-10 04:04:17] Production.INFO: count ==202 [2025-03-10 04:04:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:04:05 - End Time 2025-03-10 04:04:05 [2025-03-10 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646946', 'tblTempUsageDetail_20' ) start [2025-03-10 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646946', 'tblTempUsageDetail_20' ) end [2025-03-10 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646946', 'tblTempVendorCDR_20' ) start [2025-03-10 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646946', 'tblTempVendorCDR_20' ) end [2025-03-10 04:04:17] Production.INFO: ProcessCDR(1,14646946,1,1,2) [2025-03-10 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646946', 'tblTempUsageDetail_20' ) start [2025-03-10 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646946', 'tblTempUsageDetail_20' ) end [2025-03-10 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:04:21] Production.INFO: ==29890== Releasing lock... [2025-03-10 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:05:05 [end_date_ymd] => 2025-03-10 04:05:05 [RateCDR] => 1 ) [2025-03-10 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:05:05' and `end` < '2025-03-10 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:05:17] Production.INFO: count ==202 [2025-03-10 04:05:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:05:05 - End Time 2025-03-10 04:05:05 [2025-03-10 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646951', 'tblTempUsageDetail_20' ) start [2025-03-10 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646951', 'tblTempUsageDetail_20' ) end [2025-03-10 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646951', 'tblTempVendorCDR_20' ) start [2025-03-10 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646951', 'tblTempVendorCDR_20' ) end [2025-03-10 04:05:17] Production.INFO: ProcessCDR(1,14646951,1,1,2) [2025-03-10 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646951', 'tblTempUsageDetail_20' ) start [2025-03-10 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646951', 'tblTempUsageDetail_20' ) end [2025-03-10 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:05:21] Production.INFO: ==29968== Releasing lock... [2025-03-10 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:06:05 [end_date_ymd] => 2025-03-10 04:06:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 01:06:05' and `end` < '2025-03-10 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-03-10 04:06:17] Production.INFO: count ==202 [2025-03-10 04:06:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:06:05 - End Time 2025-03-10 04:06:05 [2025-03-10 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646956', 'tblTempUsageDetail_20' ) start [2025-03-10 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646956', 'tblTempUsageDetail_20' ) end [2025-03-10 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646956', 'tblTempVendorCDR_20' ) start [2025-03-10 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646956', 'tblTempVendorCDR_20' ) end [2025-03-10 04:06:17] Production.INFO: ProcessCDR(1,14646956,1,1,2) [2025-03-10 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646956', 'tblTempUsageDetail_20' ) start [2025-03-10 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646956', 'tblTempUsageDetail_20' ) end [2025-03-10 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:06:21] Production.INFO: ==30039== Releasing lock... [2025-03-10 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:07:05 [end_date_ymd] => 2025-03-10 04:07:05 [RateCDR] => 1 ) [2025-03-10 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:07:05' and `end` < '2025-03-10 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:07:17] Production.INFO: count ==202 [2025-03-10 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:07:05 - End Time 2025-03-10 04:07:05 [2025-03-10 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646961', 'tblTempUsageDetail_20' ) start [2025-03-10 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646961', 'tblTempUsageDetail_20' ) end [2025-03-10 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646961', 'tblTempVendorCDR_20' ) start [2025-03-10 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646961', 'tblTempVendorCDR_20' ) end [2025-03-10 04:07:17] Production.INFO: ProcessCDR(1,14646961,1,1,2) [2025-03-10 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646961', 'tblTempUsageDetail_20' ) start [2025-03-10 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646961', 'tblTempUsageDetail_20' ) end [2025-03-10 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:07:21] Production.INFO: ==30115== Releasing lock... [2025-03-10 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:08:05 [end_date_ymd] => 2025-03-10 04:08:05 [RateCDR] => 1 ) [2025-03-10 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:08:05' and `end` < '2025-03-10 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:08:17] Production.INFO: count ==202 [2025-03-10 04:08:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:08:05 - End Time 2025-03-10 04:08:05 [2025-03-10 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646966', 'tblTempUsageDetail_20' ) start [2025-03-10 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646966', 'tblTempUsageDetail_20' ) end [2025-03-10 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646966', 'tblTempVendorCDR_20' ) start [2025-03-10 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646966', 'tblTempVendorCDR_20' ) end [2025-03-10 04:08:17] Production.INFO: ProcessCDR(1,14646966,1,1,2) [2025-03-10 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646966', 'tblTempUsageDetail_20' ) start [2025-03-10 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646966', 'tblTempUsageDetail_20' ) end [2025-03-10 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:08:21] Production.INFO: ==30188== Releasing lock... [2025-03-10 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:09:05 [end_date_ymd] => 2025-03-10 04:09:05 [RateCDR] => 1 ) [2025-03-10 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:09:05' and `end` < '2025-03-10 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:09:17] Production.INFO: count ==197 [2025-03-10 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:09:05 - End Time 2025-03-10 04:09:05 [2025-03-10 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646971', 'tblTempUsageDetail_20' ) start [2025-03-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646971', 'tblTempUsageDetail_20' ) end [2025-03-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646971', 'tblTempVendorCDR_20' ) start [2025-03-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646971', 'tblTempVendorCDR_20' ) end [2025-03-10 04:09:17] Production.INFO: ProcessCDR(1,14646971,1,1,2) [2025-03-10 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646971', 'tblTempUsageDetail_20' ) start [2025-03-10 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646971', 'tblTempUsageDetail_20' ) end [2025-03-10 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:09:21] Production.INFO: ==30262== Releasing lock... [2025-03-10 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:10:07 [end_date_ymd] => 2025-03-10 04:10:07 [RateCDR] => 1 ) [2025-03-10 04: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-03-10 01:10:07' and `end` < '2025-03-10 04: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-03-10 04:10:19] Production.INFO: count ==185 [2025-03-10 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-10 01:10:07 - End Time 2025-03-10 04:10:07 [2025-03-10 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646977', 'tblTempUsageDetail_20' ) start [2025-03-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646977', 'tblTempUsageDetail_20' ) end [2025-03-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646977', 'tblTempVendorCDR_20' ) start [2025-03-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646977', 'tblTempVendorCDR_20' ) end [2025-03-10 04:10:19] Production.INFO: ProcessCDR(1,14646977,1,1,2) [2025-03-10 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646977', 'tblTempUsageDetail_20' ) start [2025-03-10 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646977', 'tblTempUsageDetail_20' ) end [2025-03-10 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:10:22] Production.INFO: ==30336== Releasing lock... [2025-03-10 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:11:05 [end_date_ymd] => 2025-03-10 04:11:05 [RateCDR] => 1 ) [2025-03-10 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:11:05' and `end` < '2025-03-10 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:11:17] Production.INFO: count ==183 [2025-03-10 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:11:05 - End Time 2025-03-10 04:11:05 [2025-03-10 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646982', 'tblTempUsageDetail_20' ) start [2025-03-10 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646982', 'tblTempUsageDetail_20' ) end [2025-03-10 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646982', 'tblTempVendorCDR_20' ) start [2025-03-10 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646982', 'tblTempVendorCDR_20' ) end [2025-03-10 04:11:17] Production.INFO: ProcessCDR(1,14646982,1,1,2) [2025-03-10 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646982', 'tblTempUsageDetail_20' ) start [2025-03-10 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646982', 'tblTempUsageDetail_20' ) end [2025-03-10 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:11:20] Production.INFO: ==30413== Releasing lock... [2025-03-10 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:12:06 [end_date_ymd] => 2025-03-10 04:12:06 [RateCDR] => 1 ) [2025-03-10 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:12:06' and `end` < '2025-03-10 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:12:18] Production.INFO: count ==180 [2025-03-10 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:12:06 - End Time 2025-03-10 04:12:06 [2025-03-10 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646987', 'tblTempUsageDetail_20' ) start [2025-03-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646987', 'tblTempUsageDetail_20' ) end [2025-03-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646987', 'tblTempVendorCDR_20' ) start [2025-03-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646987', 'tblTempVendorCDR_20' ) end [2025-03-10 04:12:18] Production.INFO: ProcessCDR(1,14646987,1,1,2) [2025-03-10 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646987', 'tblTempUsageDetail_20' ) start [2025-03-10 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646987', 'tblTempUsageDetail_20' ) end [2025-03-10 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:12:21] Production.INFO: ==30484== Releasing lock... [2025-03-10 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:13:05 [end_date_ymd] => 2025-03-10 04:13:05 [RateCDR] => 1 ) [2025-03-10 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:13:05' and `end` < '2025-03-10 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:13:17] Production.INFO: count ==180 [2025-03-10 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:13:05 - End Time 2025-03-10 04:13:05 [2025-03-10 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646992', 'tblTempUsageDetail_20' ) start [2025-03-10 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646992', 'tblTempUsageDetail_20' ) end [2025-03-10 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646992', 'tblTempVendorCDR_20' ) start [2025-03-10 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646992', 'tblTempVendorCDR_20' ) end [2025-03-10 04:13:17] Production.INFO: ProcessCDR(1,14646992,1,1,2) [2025-03-10 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646992', 'tblTempUsageDetail_20' ) start [2025-03-10 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646992', 'tblTempUsageDetail_20' ) end [2025-03-10 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:13:21] Production.INFO: ==30562== Releasing lock... [2025-03-10 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:14:05 [end_date_ymd] => 2025-03-10 04:14:05 [RateCDR] => 1 ) [2025-03-10 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:14:05' and `end` < '2025-03-10 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:14:17] Production.INFO: count ==174 [2025-03-10 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:14:05 - End Time 2025-03-10 04:14:05 [2025-03-10 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646997', 'tblTempUsageDetail_20' ) start [2025-03-10 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14646997', 'tblTempUsageDetail_20' ) end [2025-03-10 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646997', 'tblTempVendorCDR_20' ) start [2025-03-10 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14646997', 'tblTempVendorCDR_20' ) end [2025-03-10 04:14:17] Production.INFO: ProcessCDR(1,14646997,1,1,2) [2025-03-10 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14646997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14646997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14646997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14646997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646997', 'tblTempUsageDetail_20' ) start [2025-03-10 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14646997', 'tblTempUsageDetail_20' ) end [2025-03-10 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:14:21] Production.INFO: ==30634== Releasing lock... [2025-03-10 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:15:05 [end_date_ymd] => 2025-03-10 04:15:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 01:15:05' and `end` < '2025-03-10 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-03-10 04:15:17] Production.INFO: count ==161 [2025-03-10 04:15:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:15:05 - End Time 2025-03-10 04:15:05 [2025-03-10 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647002', 'tblTempUsageDetail_20' ) start [2025-03-10 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647002', 'tblTempUsageDetail_20' ) end [2025-03-10 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647002', 'tblTempVendorCDR_20' ) start [2025-03-10 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647002', 'tblTempVendorCDR_20' ) end [2025-03-10 04:15:17] Production.INFO: ProcessCDR(1,14647002,1,1,2) [2025-03-10 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647002', 'tblTempUsageDetail_20' ) start [2025-03-10 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647002', 'tblTempUsageDetail_20' ) end [2025-03-10 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:15:21] Production.INFO: ==30709== Releasing lock... [2025-03-10 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:16:05 [end_date_ymd] => 2025-03-10 04:16:05 [RateCDR] => 1 ) [2025-03-10 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:16:05' and `end` < '2025-03-10 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:16:17] Production.INFO: count ==159 [2025-03-10 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:16:05 - End Time 2025-03-10 04:16:05 [2025-03-10 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647007', 'tblTempUsageDetail_20' ) start [2025-03-10 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647007', 'tblTempUsageDetail_20' ) end [2025-03-10 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647007', 'tblTempVendorCDR_20' ) start [2025-03-10 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647007', 'tblTempVendorCDR_20' ) end [2025-03-10 04:16:17] Production.INFO: ProcessCDR(1,14647007,1,1,2) [2025-03-10 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647007', 'tblTempUsageDetail_20' ) start [2025-03-10 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647007', 'tblTempUsageDetail_20' ) end [2025-03-10 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:16:21] Production.INFO: ==30819== Releasing lock... [2025-03-10 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:17:05 [end_date_ymd] => 2025-03-10 04:17:05 [RateCDR] => 1 ) [2025-03-10 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:17:05' and `end` < '2025-03-10 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:17:17] Production.INFO: count ==159 [2025-03-10 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:17:05 - End Time 2025-03-10 04:17:05 [2025-03-10 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647012', 'tblTempUsageDetail_20' ) start [2025-03-10 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647012', 'tblTempUsageDetail_20' ) end [2025-03-10 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647012', 'tblTempVendorCDR_20' ) start [2025-03-10 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647012', 'tblTempVendorCDR_20' ) end [2025-03-10 04:17:17] Production.INFO: ProcessCDR(1,14647012,1,1,2) [2025-03-10 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647012', 'tblTempUsageDetail_20' ) start [2025-03-10 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647012', 'tblTempUsageDetail_20' ) end [2025-03-10 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:17:20] Production.INFO: ==30892== Releasing lock... [2025-03-10 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:17:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:18:05 [end_date_ymd] => 2025-03-10 04:18:05 [RateCDR] => 1 ) [2025-03-10 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:18:05' and `end` < '2025-03-10 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:18:17] Production.INFO: count ==159 [2025-03-10 04:18:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:18:05 - End Time 2025-03-10 04:18:05 [2025-03-10 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647017', 'tblTempUsageDetail_20' ) start [2025-03-10 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647017', 'tblTempUsageDetail_20' ) end [2025-03-10 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647017', 'tblTempVendorCDR_20' ) start [2025-03-10 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647017', 'tblTempVendorCDR_20' ) end [2025-03-10 04:18:17] Production.INFO: ProcessCDR(1,14647017,1,1,2) [2025-03-10 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647017', 'tblTempUsageDetail_20' ) start [2025-03-10 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647017', 'tblTempUsageDetail_20' ) end [2025-03-10 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:18:21] Production.INFO: ==30962== Releasing lock... [2025-03-10 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:19:05 [end_date_ymd] => 2025-03-10 04:19:05 [RateCDR] => 1 ) [2025-03-10 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:19:05' and `end` < '2025-03-10 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:19:17] Production.INFO: count ==159 [2025-03-10 04:19:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:19:05 - End Time 2025-03-10 04:19:05 [2025-03-10 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647022', 'tblTempUsageDetail_20' ) start [2025-03-10 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647022', 'tblTempUsageDetail_20' ) end [2025-03-10 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647022', 'tblTempVendorCDR_20' ) start [2025-03-10 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647022', 'tblTempVendorCDR_20' ) end [2025-03-10 04:19:17] Production.INFO: ProcessCDR(1,14647022,1,1,2) [2025-03-10 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647022', 'tblTempUsageDetail_20' ) start [2025-03-10 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647022', 'tblTempUsageDetail_20' ) end [2025-03-10 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:19:20] Production.INFO: ==31039== Releasing lock... [2025-03-10 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:19:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:20:06 [end_date_ymd] => 2025-03-10 04:20:06 [RateCDR] => 1 ) [2025-03-10 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:20:06' and `end` < '2025-03-10 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:20:18] Production.INFO: count ==151 [2025-03-10 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:20:06 - End Time 2025-03-10 04:20:06 [2025-03-10 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647028', 'tblTempUsageDetail_20' ) start [2025-03-10 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647028', 'tblTempUsageDetail_20' ) end [2025-03-10 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647028', 'tblTempVendorCDR_20' ) start [2025-03-10 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647028', 'tblTempVendorCDR_20' ) end [2025-03-10 04:20:18] Production.INFO: ProcessCDR(1,14647028,1,1,2) [2025-03-10 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647028', 'tblTempUsageDetail_20' ) start [2025-03-10 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647028', 'tblTempUsageDetail_20' ) end [2025-03-10 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:20:21] Production.INFO: ==31124== Releasing lock... [2025-03-10 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:21:05 [end_date_ymd] => 2025-03-10 04:21:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 01:21:05' and `end` < '2025-03-10 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-03-10 04:21:17] Production.INFO: count ==151 [2025-03-10 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:21:05 - End Time 2025-03-10 04:21:05 [2025-03-10 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647033', 'tblTempUsageDetail_20' ) start [2025-03-10 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647033', 'tblTempUsageDetail_20' ) end [2025-03-10 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647033', 'tblTempVendorCDR_20' ) start [2025-03-10 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647033', 'tblTempVendorCDR_20' ) end [2025-03-10 04:21:17] Production.INFO: ProcessCDR(1,14647033,1,1,2) [2025-03-10 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647033', 'tblTempUsageDetail_20' ) start [2025-03-10 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647033', 'tblTempUsageDetail_20' ) end [2025-03-10 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:21:20] Production.INFO: ==31210== Releasing lock... [2025-03-10 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:21:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:22:06 [end_date_ymd] => 2025-03-10 04:22:06 [RateCDR] => 1 ) [2025-03-10 04:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:22:06' and `end` < '2025-03-10 04:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:22:18] Production.INFO: count ==151 [2025-03-10 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:22:06 - End Time 2025-03-10 04:22:06 [2025-03-10 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647038', 'tblTempUsageDetail_20' ) start [2025-03-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647038', 'tblTempUsageDetail_20' ) end [2025-03-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647038', 'tblTempVendorCDR_20' ) start [2025-03-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647038', 'tblTempVendorCDR_20' ) end [2025-03-10 04:22:18] Production.INFO: ProcessCDR(1,14647038,1,1,2) [2025-03-10 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647038', 'tblTempUsageDetail_20' ) start [2025-03-10 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647038', 'tblTempUsageDetail_20' ) end [2025-03-10 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:22:21] Production.INFO: ==31299== Releasing lock... [2025-03-10 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:23:05 [end_date_ymd] => 2025-03-10 04:23:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 01:23:05' and `end` < '2025-03-10 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-03-10 04:23:17] Production.INFO: count ==151 [2025-03-10 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:23:05 - End Time 2025-03-10 04:23:05 [2025-03-10 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647043', 'tblTempUsageDetail_20' ) start [2025-03-10 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647043', 'tblTempUsageDetail_20' ) end [2025-03-10 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647043', 'tblTempVendorCDR_20' ) start [2025-03-10 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647043', 'tblTempVendorCDR_20' ) end [2025-03-10 04:23:17] Production.INFO: ProcessCDR(1,14647043,1,1,2) [2025-03-10 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647043', 'tblTempUsageDetail_20' ) start [2025-03-10 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647043', 'tblTempUsageDetail_20' ) end [2025-03-10 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:23:20] Production.INFO: ==31380== Releasing lock... [2025-03-10 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:23:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:24:05 [end_date_ymd] => 2025-03-10 04:24:05 [RateCDR] => 1 ) [2025-03-10 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:24:05' and `end` < '2025-03-10 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:24:17] Production.INFO: count ==151 [2025-03-10 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:24:05 - End Time 2025-03-10 04:24:05 [2025-03-10 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647048', 'tblTempUsageDetail_20' ) start [2025-03-10 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647048', 'tblTempUsageDetail_20' ) end [2025-03-10 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647048', 'tblTempVendorCDR_20' ) start [2025-03-10 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647048', 'tblTempVendorCDR_20' ) end [2025-03-10 04:24:17] Production.INFO: ProcessCDR(1,14647048,1,1,2) [2025-03-10 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647048', 'tblTempUsageDetail_20' ) start [2025-03-10 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647048', 'tblTempUsageDetail_20' ) end [2025-03-10 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:24:20] Production.INFO: ==31463== Releasing lock... [2025-03-10 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:24:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:25:05 [end_date_ymd] => 2025-03-10 04:25:05 [RateCDR] => 1 ) [2025-03-10 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:25:05' and `end` < '2025-03-10 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:25:17] Production.INFO: count ==144 [2025-03-10 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:25:05 - End Time 2025-03-10 04:25:05 [2025-03-10 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647053', 'tblTempUsageDetail_20' ) start [2025-03-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647053', 'tblTempUsageDetail_20' ) end [2025-03-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647053', 'tblTempVendorCDR_20' ) start [2025-03-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647053', 'tblTempVendorCDR_20' ) end [2025-03-10 04:25:17] Production.INFO: ProcessCDR(1,14647053,1,1,2) [2025-03-10 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647053', 'tblTempUsageDetail_20' ) start [2025-03-10 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647053', 'tblTempUsageDetail_20' ) end [2025-03-10 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:25:20] Production.INFO: ==31545== Releasing lock... [2025-03-10 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:25:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:26:06 [end_date_ymd] => 2025-03-10 04:26:06 [RateCDR] => 1 ) [2025-03-10 04:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:26:06' and `end` < '2025-03-10 04:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:26:18] Production.INFO: count ==139 [2025-03-10 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:26:06 - End Time 2025-03-10 04:26:06 [2025-03-10 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647058', 'tblTempUsageDetail_20' ) start [2025-03-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647058', 'tblTempUsageDetail_20' ) end [2025-03-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647058', 'tblTempVendorCDR_20' ) start [2025-03-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647058', 'tblTempVendorCDR_20' ) end [2025-03-10 04:26:18] Production.INFO: ProcessCDR(1,14647058,1,1,2) [2025-03-10 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647058', 'tblTempUsageDetail_20' ) start [2025-03-10 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647058', 'tblTempUsageDetail_20' ) end [2025-03-10 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:26:21] Production.INFO: ==31641== Releasing lock... [2025-03-10 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:27:05 [end_date_ymd] => 2025-03-10 04:27:05 [RateCDR] => 1 ) [2025-03-10 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:27:05' and `end` < '2025-03-10 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:27:17] Production.INFO: count ==138 [2025-03-10 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:27:05 - End Time 2025-03-10 04:27:05 [2025-03-10 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647063', 'tblTempUsageDetail_20' ) start [2025-03-10 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647063', 'tblTempUsageDetail_20' ) end [2025-03-10 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647063', 'tblTempVendorCDR_20' ) start [2025-03-10 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647063', 'tblTempVendorCDR_20' ) end [2025-03-10 04:27:17] Production.INFO: ProcessCDR(1,14647063,1,1,2) [2025-03-10 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647063', 'tblTempUsageDetail_20' ) start [2025-03-10 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647063', 'tblTempUsageDetail_20' ) end [2025-03-10 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:27:21] Production.INFO: ==31738== Releasing lock... [2025-03-10 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:28:05 [end_date_ymd] => 2025-03-10 04:28:05 [RateCDR] => 1 ) [2025-03-10 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:28:05' and `end` < '2025-03-10 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:28:17] Production.INFO: count ==138 [2025-03-10 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:28:05 - End Time 2025-03-10 04:28:05 [2025-03-10 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647068', 'tblTempUsageDetail_20' ) start [2025-03-10 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647068', 'tblTempUsageDetail_20' ) end [2025-03-10 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647068', 'tblTempVendorCDR_20' ) start [2025-03-10 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647068', 'tblTempVendorCDR_20' ) end [2025-03-10 04:28:17] Production.INFO: ProcessCDR(1,14647068,1,1,2) [2025-03-10 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647068', 'tblTempUsageDetail_20' ) start [2025-03-10 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647068', 'tblTempUsageDetail_20' ) end [2025-03-10 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:28:20] Production.INFO: ==31845== Releasing lock... [2025-03-10 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:28:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:29:04 [end_date_ymd] => 2025-03-10 04:29:04 [RateCDR] => 1 ) [2025-03-10 04: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-03-10 01:29:04' and `end` < '2025-03-10 04: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-03-10 04:29:16] Production.INFO: count ==138 [2025-03-10 04:29:16] Production.ERROR: pbx CDR StartTime 2025-03-10 01:29:04 - End Time 2025-03-10 04:29:04 [2025-03-10 04:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647073', 'tblTempUsageDetail_20' ) start [2025-03-10 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647073', 'tblTempUsageDetail_20' ) end [2025-03-10 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647073', 'tblTempVendorCDR_20' ) start [2025-03-10 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647073', 'tblTempVendorCDR_20' ) end [2025-03-10 04:29:16] Production.INFO: ProcessCDR(1,14647073,1,1,2) [2025-03-10 04:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647073', 'tblTempUsageDetail_20' ) start [2025-03-10 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647073', 'tblTempUsageDetail_20' ) end [2025-03-10 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:29:20] Production.INFO: ==31927== Releasing lock... [2025-03-10 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:29:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:30:06 [end_date_ymd] => 2025-03-10 04:30:06 [RateCDR] => 1 ) [2025-03-10 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:30:06' and `end` < '2025-03-10 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:30:18] Production.INFO: count ==132 [2025-03-10 04:30:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:30:06 - End Time 2025-03-10 04:30:06 [2025-03-10 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647078', 'tblTempUsageDetail_20' ) start [2025-03-10 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647078', 'tblTempUsageDetail_20' ) end [2025-03-10 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647078', 'tblTempVendorCDR_20' ) start [2025-03-10 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647078', 'tblTempVendorCDR_20' ) end [2025-03-10 04:30:18] Production.INFO: ProcessCDR(1,14647078,1,1,2) [2025-03-10 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647078', 'tblTempUsageDetail_20' ) start [2025-03-10 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647078', 'tblTempUsageDetail_20' ) end [2025-03-10 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:30:21] Production.INFO: ==32018== Releasing lock... [2025-03-10 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:30:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:31:06 [end_date_ymd] => 2025-03-10 04:31:06 [RateCDR] => 1 ) [2025-03-10 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:31:06' and `end` < '2025-03-10 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:31:18] Production.INFO: count ==132 [2025-03-10 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:31:06 - End Time 2025-03-10 04:31:06 [2025-03-10 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647085', 'tblTempUsageDetail_20' ) start [2025-03-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647085', 'tblTempUsageDetail_20' ) end [2025-03-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647085', 'tblTempVendorCDR_20' ) start [2025-03-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647085', 'tblTempVendorCDR_20' ) end [2025-03-10 04:31:18] Production.INFO: ProcessCDR(1,14647085,1,1,2) [2025-03-10 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647085', 'tblTempUsageDetail_20' ) start [2025-03-10 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647085', 'tblTempUsageDetail_20' ) end [2025-03-10 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:31:22] Production.INFO: ==32160== Releasing lock... [2025-03-10 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:31:22] Production.INFO: 29 MB #Memory Used# [2025-03-10 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:32:05 [end_date_ymd] => 2025-03-10 04:32:05 [RateCDR] => 1 ) [2025-03-10 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:32:05' and `end` < '2025-03-10 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:32:17] Production.INFO: count ==131 [2025-03-10 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:32:05 - End Time 2025-03-10 04:32:05 [2025-03-10 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647090', 'tblTempUsageDetail_20' ) start [2025-03-10 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647090', 'tblTempUsageDetail_20' ) end [2025-03-10 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647090', 'tblTempVendorCDR_20' ) start [2025-03-10 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647090', 'tblTempVendorCDR_20' ) end [2025-03-10 04:32:17] Production.INFO: ProcessCDR(1,14647090,1,1,2) [2025-03-10 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647090', 'tblTempUsageDetail_20' ) start [2025-03-10 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647090', 'tblTempUsageDetail_20' ) end [2025-03-10 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:32:20] Production.INFO: ==32343== Releasing lock... [2025-03-10 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:32:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:33:05 [end_date_ymd] => 2025-03-10 04:33:05 [RateCDR] => 1 ) [2025-03-10 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:33:05' and `end` < '2025-03-10 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:33:18] Production.INFO: count ==131 [2025-03-10 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:33:05 - End Time 2025-03-10 04:33:05 [2025-03-10 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647095', 'tblTempUsageDetail_20' ) start [2025-03-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647095', 'tblTempUsageDetail_20' ) end [2025-03-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647095', 'tblTempVendorCDR_20' ) start [2025-03-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647095', 'tblTempVendorCDR_20' ) end [2025-03-10 04:33:18] Production.INFO: ProcessCDR(1,14647095,1,1,2) [2025-03-10 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647095', 'tblTempUsageDetail_20' ) start [2025-03-10 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647095', 'tblTempUsageDetail_20' ) end [2025-03-10 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:33:21] Production.INFO: ==32428== Releasing lock... [2025-03-10 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:34:05 [end_date_ymd] => 2025-03-10 04:34:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 01:34:05' and `end` < '2025-03-10 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-03-10 04:34:17] Production.INFO: count ==131 [2025-03-10 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:34:05 - End Time 2025-03-10 04:34:05 [2025-03-10 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647100', 'tblTempUsageDetail_20' ) start [2025-03-10 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647100', 'tblTempUsageDetail_20' ) end [2025-03-10 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647100', 'tblTempVendorCDR_20' ) start [2025-03-10 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647100', 'tblTempVendorCDR_20' ) end [2025-03-10 04:34:17] Production.INFO: ProcessCDR(1,14647100,1,1,2) [2025-03-10 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647100', 'tblTempUsageDetail_20' ) start [2025-03-10 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647100', 'tblTempUsageDetail_20' ) end [2025-03-10 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:34:21] Production.INFO: ==32517== Releasing lock... [2025-03-10 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:35:04 [end_date_ymd] => 2025-03-10 04:35:04 [RateCDR] => 1 ) [2025-03-10 04: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-03-10 01:35:04' and `end` < '2025-03-10 04:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:35:16] Production.INFO: count ==131 [2025-03-10 04:35:16] Production.ERROR: pbx CDR StartTime 2025-03-10 01:35:04 - End Time 2025-03-10 04:35:04 [2025-03-10 04:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647105', 'tblTempUsageDetail_20' ) start [2025-03-10 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647105', 'tblTempUsageDetail_20' ) end [2025-03-10 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647105', 'tblTempVendorCDR_20' ) start [2025-03-10 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647105', 'tblTempVendorCDR_20' ) end [2025-03-10 04:35:16] Production.INFO: ProcessCDR(1,14647105,1,1,2) [2025-03-10 04:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647105', 'tblTempUsageDetail_20' ) start [2025-03-10 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647105', 'tblTempUsageDetail_20' ) end [2025-03-10 04:35:19] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:35:19] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:35:19] Production.INFO: ==32591== Releasing lock... [2025-03-10 04:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:35:19] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:36:05 [end_date_ymd] => 2025-03-10 04:36:05 [RateCDR] => 1 ) [2025-03-10 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:36:05' and `end` < '2025-03-10 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:36:17] Production.INFO: count ==128 [2025-03-10 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:36:05 - End Time 2025-03-10 04:36:05 [2025-03-10 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647110', 'tblTempUsageDetail_20' ) start [2025-03-10 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647110', 'tblTempUsageDetail_20' ) end [2025-03-10 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647110', 'tblTempVendorCDR_20' ) start [2025-03-10 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647110', 'tblTempVendorCDR_20' ) end [2025-03-10 04:36:17] Production.INFO: ProcessCDR(1,14647110,1,1,2) [2025-03-10 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647110', 'tblTempUsageDetail_20' ) start [2025-03-10 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647110', 'tblTempUsageDetail_20' ) end [2025-03-10 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:36:20] Production.INFO: ==32665== Releasing lock... [2025-03-10 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:36:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:37:06 [end_date_ymd] => 2025-03-10 04:37:06 [RateCDR] => 1 ) [2025-03-10 04:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:37:06' and `end` < '2025-03-10 04:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:37:18] Production.INFO: count ==128 [2025-03-10 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:37:06 - End Time 2025-03-10 04:37:06 [2025-03-10 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647115', 'tblTempUsageDetail_20' ) start [2025-03-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647115', 'tblTempUsageDetail_20' ) end [2025-03-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647115', 'tblTempVendorCDR_20' ) start [2025-03-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647115', 'tblTempVendorCDR_20' ) end [2025-03-10 04:37:18] Production.INFO: ProcessCDR(1,14647115,1,1,2) [2025-03-10 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647115', 'tblTempUsageDetail_20' ) start [2025-03-10 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647115', 'tblTempUsageDetail_20' ) end [2025-03-10 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:37:21] Production.INFO: ==32752== Releasing lock... [2025-03-10 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:38:05 [end_date_ymd] => 2025-03-10 04:38:05 [RateCDR] => 1 ) [2025-03-10 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:38:05' and `end` < '2025-03-10 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:38:17] Production.INFO: count ==128 [2025-03-10 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:38:05 - End Time 2025-03-10 04:38:05 [2025-03-10 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647120', 'tblTempUsageDetail_20' ) start [2025-03-10 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647120', 'tblTempUsageDetail_20' ) end [2025-03-10 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647120', 'tblTempVendorCDR_20' ) start [2025-03-10 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647120', 'tblTempVendorCDR_20' ) end [2025-03-10 04:38:17] Production.INFO: ProcessCDR(1,14647120,1,1,2) [2025-03-10 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647120', 'tblTempUsageDetail_20' ) start [2025-03-10 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647120', 'tblTempUsageDetail_20' ) end [2025-03-10 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:38:20] Production.INFO: ==382== Releasing lock... [2025-03-10 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:38:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:39:05 [end_date_ymd] => 2025-03-10 04:39:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 01:39:05' and `end` < '2025-03-10 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-03-10 04:39:17] Production.INFO: count ==128 [2025-03-10 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:39:05 - End Time 2025-03-10 04:39:05 [2025-03-10 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647125', 'tblTempUsageDetail_20' ) start [2025-03-10 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647125', 'tblTempUsageDetail_20' ) end [2025-03-10 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647125', 'tblTempVendorCDR_20' ) start [2025-03-10 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647125', 'tblTempVendorCDR_20' ) end [2025-03-10 04:39:17] Production.INFO: ProcessCDR(1,14647125,1,1,2) [2025-03-10 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647125', 'tblTempUsageDetail_20' ) start [2025-03-10 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647125', 'tblTempUsageDetail_20' ) end [2025-03-10 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:39:20] Production.INFO: ==466== Releasing lock... [2025-03-10 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:39:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:40:06 [end_date_ymd] => 2025-03-10 04:40:06 [RateCDR] => 1 ) [2025-03-10 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:40:06' and `end` < '2025-03-10 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:40:18] Production.INFO: count ==120 [2025-03-10 04:40:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:40:06 - End Time 2025-03-10 04:40:06 [2025-03-10 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647131', 'tblTempUsageDetail_20' ) start [2025-03-10 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647131', 'tblTempUsageDetail_20' ) end [2025-03-10 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647131', 'tblTempVendorCDR_20' ) start [2025-03-10 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647131', 'tblTempVendorCDR_20' ) end [2025-03-10 04:40:18] Production.INFO: ProcessCDR(1,14647131,1,1,2) [2025-03-10 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647131', 'tblTempUsageDetail_20' ) start [2025-03-10 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647131', 'tblTempUsageDetail_20' ) end [2025-03-10 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:40:21] Production.INFO: ==540== Releasing lock... [2025-03-10 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:41:05 [end_date_ymd] => 2025-03-10 04:41:05 [RateCDR] => 1 ) [2025-03-10 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:41:05' and `end` < '2025-03-10 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:41:17] Production.INFO: count ==120 [2025-03-10 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:41:05 - End Time 2025-03-10 04:41:05 [2025-03-10 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647136', 'tblTempUsageDetail_20' ) start [2025-03-10 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647136', 'tblTempUsageDetail_20' ) end [2025-03-10 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647136', 'tblTempVendorCDR_20' ) start [2025-03-10 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647136', 'tblTempVendorCDR_20' ) end [2025-03-10 04:41:17] Production.INFO: ProcessCDR(1,14647136,1,1,2) [2025-03-10 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647136', 'tblTempUsageDetail_20' ) start [2025-03-10 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647136', 'tblTempUsageDetail_20' ) end [2025-03-10 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:41:20] Production.INFO: ==623== Releasing lock... [2025-03-10 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:41:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:42:05 [end_date_ymd] => 2025-03-10 04:42:05 [RateCDR] => 1 ) [2025-03-10 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:42:05' and `end` < '2025-03-10 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:42:17] Production.INFO: count ==120 [2025-03-10 04:42:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:42:05 - End Time 2025-03-10 04:42:05 [2025-03-10 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647141', 'tblTempUsageDetail_20' ) start [2025-03-10 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647141', 'tblTempUsageDetail_20' ) end [2025-03-10 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647141', 'tblTempVendorCDR_20' ) start [2025-03-10 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647141', 'tblTempVendorCDR_20' ) end [2025-03-10 04:42:17] Production.INFO: ProcessCDR(1,14647141,1,1,2) [2025-03-10 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647141', 'tblTempUsageDetail_20' ) start [2025-03-10 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647141', 'tblTempUsageDetail_20' ) end [2025-03-10 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:42:20] Production.INFO: ==717== Releasing lock... [2025-03-10 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:42:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:43:05 [end_date_ymd] => 2025-03-10 04:43:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 01:43:05' and `end` < '2025-03-10 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-03-10 04:43:17] Production.INFO: count ==119 [2025-03-10 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:43:05 - End Time 2025-03-10 04:43:05 [2025-03-10 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647146', 'tblTempUsageDetail_20' ) start [2025-03-10 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647146', 'tblTempUsageDetail_20' ) end [2025-03-10 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647146', 'tblTempVendorCDR_20' ) start [2025-03-10 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647146', 'tblTempVendorCDR_20' ) end [2025-03-10 04:43:17] Production.INFO: ProcessCDR(1,14647146,1,1,2) [2025-03-10 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647146', 'tblTempUsageDetail_20' ) start [2025-03-10 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647146', 'tblTempUsageDetail_20' ) end [2025-03-10 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:43:21] Production.INFO: ==793== Releasing lock... [2025-03-10 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:44:06 [end_date_ymd] => 2025-03-10 04:44:06 [RateCDR] => 1 ) [2025-03-10 04:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:44:06' and `end` < '2025-03-10 04:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:44:18] Production.INFO: count ==111 [2025-03-10 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:44:06 - End Time 2025-03-10 04:44:06 [2025-03-10 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647151', 'tblTempUsageDetail_20' ) start [2025-03-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647151', 'tblTempUsageDetail_20' ) end [2025-03-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647151', 'tblTempVendorCDR_20' ) start [2025-03-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647151', 'tblTempVendorCDR_20' ) end [2025-03-10 04:44:18] Production.INFO: ProcessCDR(1,14647151,1,1,2) [2025-03-10 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647151', 'tblTempUsageDetail_20' ) start [2025-03-10 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647151', 'tblTempUsageDetail_20' ) end [2025-03-10 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:44:21] Production.INFO: ==870== Releasing lock... [2025-03-10 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:45:04 [end_date_ymd] => 2025-03-10 04:45:04 [RateCDR] => 1 ) [2025-03-10 04: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-03-10 01:45:04' and `end` < '2025-03-10 04: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-03-10 04:45:16] Production.INFO: count ==108 [2025-03-10 04:45:16] Production.ERROR: pbx CDR StartTime 2025-03-10 01:45:04 - End Time 2025-03-10 04:45:04 [2025-03-10 04:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647156', 'tblTempUsageDetail_20' ) start [2025-03-10 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647156', 'tblTempUsageDetail_20' ) end [2025-03-10 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647156', 'tblTempVendorCDR_20' ) start [2025-03-10 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647156', 'tblTempVendorCDR_20' ) end [2025-03-10 04:45:16] Production.INFO: ProcessCDR(1,14647156,1,1,2) [2025-03-10 04:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647156', 'tblTempUsageDetail_20' ) start [2025-03-10 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647156', 'tblTempUsageDetail_20' ) end [2025-03-10 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:45:20] Production.INFO: ==942== Releasing lock... [2025-03-10 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:45:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:46:05 [end_date_ymd] => 2025-03-10 04:46:05 [RateCDR] => 1 ) [2025-03-10 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:46:05' and `end` < '2025-03-10 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:46:18] Production.INFO: count ==106 [2025-03-10 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:46:05 - End Time 2025-03-10 04:46:05 [2025-03-10 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647161', 'tblTempUsageDetail_20' ) start [2025-03-10 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647161', 'tblTempUsageDetail_20' ) end [2025-03-10 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647161', 'tblTempVendorCDR_20' ) start [2025-03-10 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647161', 'tblTempVendorCDR_20' ) end [2025-03-10 04:46:18] Production.INFO: ProcessCDR(1,14647161,1,1,2) [2025-03-10 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647161', 'tblTempUsageDetail_20' ) start [2025-03-10 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647161', 'tblTempUsageDetail_20' ) end [2025-03-10 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:46:21] Production.INFO: ==1014== Releasing lock... [2025-03-10 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:47:04 [end_date_ymd] => 2025-03-10 04:47:04 [RateCDR] => 1 ) [2025-03-10 04: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-03-10 01:47:04' and `end` < '2025-03-10 04: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-03-10 04:47:17] Production.INFO: count ==106 [2025-03-10 04:47:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:47:04 - End Time 2025-03-10 04:47:04 [2025-03-10 04:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647166', 'tblTempUsageDetail_20' ) start [2025-03-10 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647166', 'tblTempUsageDetail_20' ) end [2025-03-10 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647166', 'tblTempVendorCDR_20' ) start [2025-03-10 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647166', 'tblTempVendorCDR_20' ) end [2025-03-10 04:47:17] Production.INFO: ProcessCDR(1,14647166,1,1,2) [2025-03-10 04:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647166', 'tblTempUsageDetail_20' ) start [2025-03-10 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647166', 'tblTempUsageDetail_20' ) end [2025-03-10 04:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:47:20] Production.INFO: ==1128== Releasing lock... [2025-03-10 04:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:47:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:48:05 [end_date_ymd] => 2025-03-10 04:48:05 [RateCDR] => 1 ) [2025-03-10 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:48:05' and `end` < '2025-03-10 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:48:18] Production.INFO: count ==105 [2025-03-10 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:48:05 - End Time 2025-03-10 04:48:05 [2025-03-10 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647171', 'tblTempUsageDetail_20' ) start [2025-03-10 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647171', 'tblTempUsageDetail_20' ) end [2025-03-10 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647171', 'tblTempVendorCDR_20' ) start [2025-03-10 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647171', 'tblTempVendorCDR_20' ) end [2025-03-10 04:48:18] Production.INFO: ProcessCDR(1,14647171,1,1,2) [2025-03-10 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647171', 'tblTempUsageDetail_20' ) start [2025-03-10 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647171', 'tblTempUsageDetail_20' ) end [2025-03-10 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:48:21] Production.INFO: ==1214== Releasing lock... [2025-03-10 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:49:05 [end_date_ymd] => 2025-03-10 04:49:05 [RateCDR] => 1 ) [2025-03-10 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:49:05' and `end` < '2025-03-10 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:49:17] Production.INFO: count ==105 [2025-03-10 04:49:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:49:05 - End Time 2025-03-10 04:49:05 [2025-03-10 04:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647176', 'tblTempUsageDetail_20' ) start [2025-03-10 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647176', 'tblTempUsageDetail_20' ) end [2025-03-10 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647176', 'tblTempVendorCDR_20' ) start [2025-03-10 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647176', 'tblTempVendorCDR_20' ) end [2025-03-10 04:49:17] Production.INFO: ProcessCDR(1,14647176,1,1,2) [2025-03-10 04:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647176', 'tblTempUsageDetail_20' ) start [2025-03-10 04:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647176', 'tblTempUsageDetail_20' ) end [2025-03-10 04:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:49:20] Production.INFO: ==1301== Releasing lock... [2025-03-10 04:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:49:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:50:06 [end_date_ymd] => 2025-03-10 04:50:06 [RateCDR] => 1 ) [2025-03-10 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:50:06' and `end` < '2025-03-10 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:50:18] Production.INFO: count ==105 [2025-03-10 04:50:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:50:06 - End Time 2025-03-10 04:50:06 [2025-03-10 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647181', 'tblTempUsageDetail_20' ) start [2025-03-10 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647181', 'tblTempUsageDetail_20' ) end [2025-03-10 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647181', 'tblTempVendorCDR_20' ) start [2025-03-10 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647181', 'tblTempVendorCDR_20' ) end [2025-03-10 04:50:18] Production.INFO: ProcessCDR(1,14647181,1,1,2) [2025-03-10 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647181', 'tblTempUsageDetail_20' ) start [2025-03-10 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647181', 'tblTempUsageDetail_20' ) end [2025-03-10 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:50:21] Production.INFO: ==1374== Releasing lock... [2025-03-10 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:51:05 [end_date_ymd] => 2025-03-10 04:51:05 [RateCDR] => 1 ) [2025-03-10 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:51:05' and `end` < '2025-03-10 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:51:17] Production.INFO: count ==105 [2025-03-10 04:51:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:51:05 - End Time 2025-03-10 04:51:05 [2025-03-10 04:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647187', 'tblTempUsageDetail_20' ) start [2025-03-10 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647187', 'tblTempUsageDetail_20' ) end [2025-03-10 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647187', 'tblTempVendorCDR_20' ) start [2025-03-10 04:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647187', 'tblTempVendorCDR_20' ) end [2025-03-10 04:51:17] Production.INFO: ProcessCDR(1,14647187,1,1,2) [2025-03-10 04:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647187', 'tblTempUsageDetail_20' ) start [2025-03-10 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647187', 'tblTempUsageDetail_20' ) end [2025-03-10 04:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:51:20] Production.INFO: ==1446== Releasing lock... [2025-03-10 04:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:52:05 [end_date_ymd] => 2025-03-10 04:52:05 [RateCDR] => 1 ) [2025-03-10 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:52:05' and `end` < '2025-03-10 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:52:18] Production.INFO: count ==105 [2025-03-10 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:52:05 - End Time 2025-03-10 04:52:05 [2025-03-10 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647192', 'tblTempUsageDetail_20' ) start [2025-03-10 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647192', 'tblTempUsageDetail_20' ) end [2025-03-10 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647192', 'tblTempVendorCDR_20' ) start [2025-03-10 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647192', 'tblTempVendorCDR_20' ) end [2025-03-10 04:52:18] Production.INFO: ProcessCDR(1,14647192,1,1,2) [2025-03-10 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647192', 'tblTempUsageDetail_20' ) start [2025-03-10 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647192', 'tblTempUsageDetail_20' ) end [2025-03-10 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:52:21] Production.INFO: ==1547== Releasing lock... [2025-03-10 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:53:05 [end_date_ymd] => 2025-03-10 04:53:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 01:53:05' and `end` < '2025-03-10 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-03-10 04:53:17] Production.INFO: count ==105 [2025-03-10 04:53:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:53:05 - End Time 2025-03-10 04:53:05 [2025-03-10 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647197', 'tblTempUsageDetail_20' ) start [2025-03-10 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647197', 'tblTempUsageDetail_20' ) end [2025-03-10 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647197', 'tblTempVendorCDR_20' ) start [2025-03-10 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647197', 'tblTempVendorCDR_20' ) end [2025-03-10 04:53:17] Production.INFO: ProcessCDR(1,14647197,1,1,2) [2025-03-10 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647197', 'tblTempUsageDetail_20' ) start [2025-03-10 04:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647197', 'tblTempUsageDetail_20' ) end [2025-03-10 04:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:53:21] Production.INFO: ==1637== Releasing lock... [2025-03-10 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:54:05 [end_date_ymd] => 2025-03-10 04:54:05 [RateCDR] => 1 ) [2025-03-10 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:54:05' and `end` < '2025-03-10 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:54:18] Production.INFO: count ==105 [2025-03-10 04:54:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:54:05 - End Time 2025-03-10 04:54:05 [2025-03-10 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647202', 'tblTempUsageDetail_20' ) start [2025-03-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647202', 'tblTempUsageDetail_20' ) end [2025-03-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647202', 'tblTempVendorCDR_20' ) start [2025-03-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647202', 'tblTempVendorCDR_20' ) end [2025-03-10 04:54:18] Production.INFO: ProcessCDR(1,14647202,1,1,2) [2025-03-10 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647202', 'tblTempUsageDetail_20' ) start [2025-03-10 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647202', 'tblTempUsageDetail_20' ) end [2025-03-10 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:54:21] Production.INFO: ==1712== Releasing lock... [2025-03-10 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:55:05 [end_date_ymd] => 2025-03-10 04:55:05 [RateCDR] => 1 ) [2025-03-10 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:55:05' and `end` < '2025-03-10 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:55:18] Production.INFO: count ==104 [2025-03-10 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:55:05 - End Time 2025-03-10 04:55:05 [2025-03-10 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647207', 'tblTempUsageDetail_20' ) start [2025-03-10 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647207', 'tblTempUsageDetail_20' ) end [2025-03-10 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647207', 'tblTempVendorCDR_20' ) start [2025-03-10 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647207', 'tblTempVendorCDR_20' ) end [2025-03-10 04:55:18] Production.INFO: ProcessCDR(1,14647207,1,1,2) [2025-03-10 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647207', 'tblTempUsageDetail_20' ) start [2025-03-10 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647207', 'tblTempUsageDetail_20' ) end [2025-03-10 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:55:21] Production.INFO: ==1781== Releasing lock... [2025-03-10 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:56:05 [end_date_ymd] => 2025-03-10 04:56:05 [RateCDR] => 1 ) [2025-03-10 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:56:05' and `end` < '2025-03-10 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:56:17] Production.INFO: count ==104 [2025-03-10 04:56:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:56:05 - End Time 2025-03-10 04:56:05 [2025-03-10 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647212', 'tblTempUsageDetail_20' ) start [2025-03-10 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647212', 'tblTempUsageDetail_20' ) end [2025-03-10 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647212', 'tblTempVendorCDR_20' ) start [2025-03-10 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647212', 'tblTempVendorCDR_20' ) end [2025-03-10 04:56:17] Production.INFO: ProcessCDR(1,14647212,1,1,2) [2025-03-10 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647212', 'tblTempUsageDetail_20' ) start [2025-03-10 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647212', 'tblTempUsageDetail_20' ) end [2025-03-10 04:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:56:20] Production.INFO: ==1859== Releasing lock... [2025-03-10 04:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:56:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:57:05 [end_date_ymd] => 2025-03-10 04:57:05 [RateCDR] => 1 ) [2025-03-10 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:57:05' and `end` < '2025-03-10 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:57:18] Production.INFO: count ==104 [2025-03-10 04:57:19] Production.ERROR: pbx CDR StartTime 2025-03-10 01:57:05 - End Time 2025-03-10 04:57:05 [2025-03-10 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647217', 'tblTempUsageDetail_20' ) start [2025-03-10 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647217', 'tblTempUsageDetail_20' ) end [2025-03-10 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647217', 'tblTempVendorCDR_20' ) start [2025-03-10 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647217', 'tblTempVendorCDR_20' ) end [2025-03-10 04:57:19] Production.INFO: ProcessCDR(1,14647217,1,1,2) [2025-03-10 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647217', 'tblTempUsageDetail_20' ) start [2025-03-10 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647217', 'tblTempUsageDetail_20' ) end [2025-03-10 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:57:22] Production.INFO: ==1932== Releasing lock... [2025-03-10 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:58:05 [end_date_ymd] => 2025-03-10 04:58:05 [RateCDR] => 1 ) [2025-03-10 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:58:05' and `end` < '2025-03-10 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:58:17] Production.INFO: count ==103 [2025-03-10 04:58:17] Production.ERROR: pbx CDR StartTime 2025-03-10 01:58:05 - End Time 2025-03-10 04:58:05 [2025-03-10 04:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647222', 'tblTempUsageDetail_20' ) start [2025-03-10 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647222', 'tblTempUsageDetail_20' ) end [2025-03-10 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647222', 'tblTempVendorCDR_20' ) start [2025-03-10 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647222', 'tblTempVendorCDR_20' ) end [2025-03-10 04:58:17] Production.INFO: ProcessCDR(1,14647222,1,1,2) [2025-03-10 04:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647222', 'tblTempUsageDetail_20' ) start [2025-03-10 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647222', 'tblTempUsageDetail_20' ) end [2025-03-10 04:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:58:20] Production.INFO: ==2004== Releasing lock... [2025-03-10 04:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:58:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 01:59:05 [end_date_ymd] => 2025-03-10 04:59:05 [RateCDR] => 1 ) [2025-03-10 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 01:59:05' and `end` < '2025-03-10 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 04:59:18] Production.INFO: count ==103 [2025-03-10 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-10 01:59:05 - End Time 2025-03-10 04:59:05 [2025-03-10 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647227', 'tblTempUsageDetail_20' ) start [2025-03-10 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647227', 'tblTempUsageDetail_20' ) end [2025-03-10 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647227', 'tblTempVendorCDR_20' ) start [2025-03-10 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647227', 'tblTempVendorCDR_20' ) end [2025-03-10 04:59:18] Production.INFO: ProcessCDR(1,14647227,1,1,2) [2025-03-10 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647227', 'tblTempUsageDetail_20' ) start [2025-03-10 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647227', 'tblTempUsageDetail_20' ) end [2025-03-10 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 04:59:21] Production.INFO: ==2075== Releasing lock... [2025-03-10 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 04:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:00:05 [end_date_ymd] => 2025-03-10 05:00:05 [RateCDR] => 1 ) [2025-03-10 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:00:05' and `end` < '2025-03-10 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:00:17] Production.INFO: count ==106 [2025-03-10 05:00:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:00:05 - End Time 2025-03-10 05:00:05 [2025-03-10 05:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647232', 'tblTempUsageDetail_20' ) start [2025-03-10 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647232', 'tblTempUsageDetail_20' ) end [2025-03-10 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647232', 'tblTempVendorCDR_20' ) start [2025-03-10 05:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647232', 'tblTempVendorCDR_20' ) end [2025-03-10 05:00:17] Production.INFO: ProcessCDR(1,14647232,1,1,2) [2025-03-10 05:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647232', 'tblTempUsageDetail_20' ) start [2025-03-10 05:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647232', 'tblTempUsageDetail_20' ) end [2025-03-10 05:00:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:00:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:00:20] Production.INFO: ==2152== Releasing lock... [2025-03-10 05:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:00:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:01:05 [end_date_ymd] => 2025-03-10 05:01:05 [RateCDR] => 1 ) [2025-03-10 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:01:05' and `end` < '2025-03-10 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:01:18] Production.INFO: count ==104 [2025-03-10 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:01:05 - End Time 2025-03-10 05:01:05 [2025-03-10 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647238', 'tblTempUsageDetail_20' ) start [2025-03-10 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647238', 'tblTempUsageDetail_20' ) end [2025-03-10 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647238', 'tblTempVendorCDR_20' ) start [2025-03-10 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647238', 'tblTempVendorCDR_20' ) end [2025-03-10 05:01:18] Production.INFO: ProcessCDR(1,14647238,1,1,2) [2025-03-10 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647238', 'tblTempUsageDetail_20' ) start [2025-03-10 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647238', 'tblTempUsageDetail_20' ) end [2025-03-10 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:01:21] Production.INFO: ==2240== Releasing lock... [2025-03-10 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:02:05 [end_date_ymd] => 2025-03-10 05:02:05 [RateCDR] => 1 ) [2025-03-10 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:02:05' and `end` < '2025-03-10 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:02:17] Production.INFO: count ==114 [2025-03-10 05:02:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:02:05 - End Time 2025-03-10 05:02:05 [2025-03-10 05:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647243', 'tblTempUsageDetail_20' ) start [2025-03-10 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647243', 'tblTempUsageDetail_20' ) end [2025-03-10 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647243', 'tblTempVendorCDR_20' ) start [2025-03-10 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647243', 'tblTempVendorCDR_20' ) end [2025-03-10 05:02:17] Production.INFO: ProcessCDR(1,14647243,1,1,2) [2025-03-10 05:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647243', 'tblTempUsageDetail_20' ) start [2025-03-10 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647243', 'tblTempUsageDetail_20' ) end [2025-03-10 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:02:21] Production.INFO: ==2349== Releasing lock... [2025-03-10 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:02:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:03:05 [end_date_ymd] => 2025-03-10 05:03:05 [RateCDR] => 1 ) [2025-03-10 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:03:05' and `end` < '2025-03-10 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:03:17] Production.INFO: count ==114 [2025-03-10 05:03:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:03:05 - End Time 2025-03-10 05:03:05 [2025-03-10 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647248', 'tblTempUsageDetail_20' ) start [2025-03-10 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647248', 'tblTempUsageDetail_20' ) end [2025-03-10 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647248', 'tblTempVendorCDR_20' ) start [2025-03-10 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647248', 'tblTempVendorCDR_20' ) end [2025-03-10 05:03:17] Production.INFO: ProcessCDR(1,14647248,1,1,2) [2025-03-10 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647248', 'tblTempUsageDetail_20' ) start [2025-03-10 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647248', 'tblTempUsageDetail_20' ) end [2025-03-10 05:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:03:20] Production.INFO: ==2427== Releasing lock... [2025-03-10 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:03:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:04:05 [end_date_ymd] => 2025-03-10 05:04:05 [RateCDR] => 1 ) [2025-03-10 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:04:05' and `end` < '2025-03-10 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:04:17] Production.INFO: count ==114 [2025-03-10 05:04:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:04:05 - End Time 2025-03-10 05:04:05 [2025-03-10 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647253', 'tblTempUsageDetail_20' ) start [2025-03-10 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647253', 'tblTempUsageDetail_20' ) end [2025-03-10 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647253', 'tblTempVendorCDR_20' ) start [2025-03-10 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647253', 'tblTempVendorCDR_20' ) end [2025-03-10 05:04:17] Production.INFO: ProcessCDR(1,14647253,1,1,2) [2025-03-10 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647253', 'tblTempUsageDetail_20' ) start [2025-03-10 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647253', 'tblTempUsageDetail_20' ) end [2025-03-10 05:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:04:20] Production.INFO: ==2501== Releasing lock... [2025-03-10 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:04:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:05:05 [end_date_ymd] => 2025-03-10 05:05:05 [RateCDR] => 1 ) [2025-03-10 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:05:05' and `end` < '2025-03-10 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:05:18] Production.INFO: count ==118 [2025-03-10 05:05:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:05:05 - End Time 2025-03-10 05:05:05 [2025-03-10 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647258', 'tblTempUsageDetail_20' ) start [2025-03-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647258', 'tblTempUsageDetail_20' ) end [2025-03-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647258', 'tblTempVendorCDR_20' ) start [2025-03-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647258', 'tblTempVendorCDR_20' ) end [2025-03-10 05:05:18] Production.INFO: ProcessCDR(1,14647258,1,1,2) [2025-03-10 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647258', 'tblTempUsageDetail_20' ) start [2025-03-10 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647258', 'tblTempUsageDetail_20' ) end [2025-03-10 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:05:21] Production.INFO: ==2571== Releasing lock... [2025-03-10 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:05:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:06:05 [end_date_ymd] => 2025-03-10 05:06:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 02:06:05' and `end` < '2025-03-10 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-03-10 05:06:18] Production.INFO: count ==118 [2025-03-10 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:06:05 - End Time 2025-03-10 05:06:05 [2025-03-10 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647263', 'tblTempUsageDetail_20' ) start [2025-03-10 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647263', 'tblTempUsageDetail_20' ) end [2025-03-10 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647263', 'tblTempVendorCDR_20' ) start [2025-03-10 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647263', 'tblTempVendorCDR_20' ) end [2025-03-10 05:06:18] Production.INFO: ProcessCDR(1,14647263,1,1,2) [2025-03-10 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647263', 'tblTempUsageDetail_20' ) start [2025-03-10 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647263', 'tblTempUsageDetail_20' ) end [2025-03-10 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:06:21] Production.INFO: ==2641== Releasing lock... [2025-03-10 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:06:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:07:05 [end_date_ymd] => 2025-03-10 05:07:05 [RateCDR] => 1 ) [2025-03-10 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:07:05' and `end` < '2025-03-10 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:07:17] Production.INFO: count ==118 [2025-03-10 05:07:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:07:05 - End Time 2025-03-10 05:07:05 [2025-03-10 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647268', 'tblTempUsageDetail_20' ) start [2025-03-10 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647268', 'tblTempUsageDetail_20' ) end [2025-03-10 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647268', 'tblTempVendorCDR_20' ) start [2025-03-10 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647268', 'tblTempVendorCDR_20' ) end [2025-03-10 05:07:17] Production.INFO: ProcessCDR(1,14647268,1,1,2) [2025-03-10 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647268', 'tblTempUsageDetail_20' ) start [2025-03-10 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647268', 'tblTempUsageDetail_20' ) end [2025-03-10 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:07:20] Production.INFO: ==2718== Releasing lock... [2025-03-10 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:07:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:08:05 [end_date_ymd] => 2025-03-10 05:08:05 [RateCDR] => 1 ) [2025-03-10 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:08:05' and `end` < '2025-03-10 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:08:17] Production.INFO: count ==118 [2025-03-10 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:08:05 - End Time 2025-03-10 05:08:05 [2025-03-10 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647273', 'tblTempUsageDetail_20' ) start [2025-03-10 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647273', 'tblTempUsageDetail_20' ) end [2025-03-10 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647273', 'tblTempVendorCDR_20' ) start [2025-03-10 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647273', 'tblTempVendorCDR_20' ) end [2025-03-10 05:08:18] Production.INFO: ProcessCDR(1,14647273,1,1,2) [2025-03-10 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647273', 'tblTempUsageDetail_20' ) start [2025-03-10 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647273', 'tblTempUsageDetail_20' ) end [2025-03-10 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:08:21] Production.INFO: ==2791== Releasing lock... [2025-03-10 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:08:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:09:05 [end_date_ymd] => 2025-03-10 05:09:05 [RateCDR] => 1 ) [2025-03-10 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:09:05' and `end` < '2025-03-10 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:09:17] Production.INFO: count ==117 [2025-03-10 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:09:05 - End Time 2025-03-10 05:09:05 [2025-03-10 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647278', 'tblTempUsageDetail_20' ) start [2025-03-10 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647278', 'tblTempUsageDetail_20' ) end [2025-03-10 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647278', 'tblTempVendorCDR_20' ) start [2025-03-10 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647278', 'tblTempVendorCDR_20' ) end [2025-03-10 05:09:17] Production.INFO: ProcessCDR(1,14647278,1,1,2) [2025-03-10 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647278', 'tblTempUsageDetail_20' ) start [2025-03-10 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647278', 'tblTempUsageDetail_20' ) end [2025-03-10 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:09:20] Production.INFO: ==2863== Releasing lock... [2025-03-10 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:09:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:10:06 [end_date_ymd] => 2025-03-10 05:10:06 [RateCDR] => 1 ) [2025-03-10 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:10:06' and `end` < '2025-03-10 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:10:18] Production.INFO: count ==109 [2025-03-10 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:10:06 - End Time 2025-03-10 05:10:06 [2025-03-10 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647284', 'tblTempUsageDetail_20' ) start [2025-03-10 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647284', 'tblTempUsageDetail_20' ) end [2025-03-10 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647284', 'tblTempVendorCDR_20' ) start [2025-03-10 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647284', 'tblTempVendorCDR_20' ) end [2025-03-10 05:10:18] Production.INFO: ProcessCDR(1,14647284,1,1,2) [2025-03-10 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647284', 'tblTempUsageDetail_20' ) start [2025-03-10 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647284', 'tblTempUsageDetail_20' ) end [2025-03-10 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:10:21] Production.INFO: ==2939== Releasing lock... [2025-03-10 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:10:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:11:05 [end_date_ymd] => 2025-03-10 05:11:05 [RateCDR] => 1 ) [2025-03-10 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:11:05' and `end` < '2025-03-10 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:11:17] Production.INFO: count ==109 [2025-03-10 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:11:05 - End Time 2025-03-10 05:11:05 [2025-03-10 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647289', 'tblTempUsageDetail_20' ) start [2025-03-10 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647289', 'tblTempUsageDetail_20' ) end [2025-03-10 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647289', 'tblTempVendorCDR_20' ) start [2025-03-10 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647289', 'tblTempVendorCDR_20' ) end [2025-03-10 05:11:17] Production.INFO: ProcessCDR(1,14647289,1,1,2) [2025-03-10 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647289', 'tblTempUsageDetail_20' ) start [2025-03-10 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647289', 'tblTempUsageDetail_20' ) end [2025-03-10 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:11:21] Production.INFO: ==3013== Releasing lock... [2025-03-10 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:11:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:12:05 [end_date_ymd] => 2025-03-10 05:12:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 02:12:05' and `end` < '2025-03-10 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-03-10 05:12:17] Production.INFO: count ==109 [2025-03-10 05:12:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:12:05 - End Time 2025-03-10 05:12:05 [2025-03-10 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647294', 'tblTempUsageDetail_20' ) start [2025-03-10 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647294', 'tblTempUsageDetail_20' ) end [2025-03-10 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647294', 'tblTempVendorCDR_20' ) start [2025-03-10 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647294', 'tblTempVendorCDR_20' ) end [2025-03-10 05:12:17] Production.INFO: ProcessCDR(1,14647294,1,1,2) [2025-03-10 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647294', 'tblTempUsageDetail_20' ) start [2025-03-10 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647294', 'tblTempUsageDetail_20' ) end [2025-03-10 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:12:20] Production.INFO: ==3085== Releasing lock... [2025-03-10 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:12:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:13:05 [end_date_ymd] => 2025-03-10 05:13:05 [RateCDR] => 1 ) [2025-03-10 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:13:05' and `end` < '2025-03-10 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:13:17] Production.INFO: count ==109 [2025-03-10 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:13:05 - End Time 2025-03-10 05:13:05 [2025-03-10 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647299', 'tblTempUsageDetail_20' ) start [2025-03-10 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647299', 'tblTempUsageDetail_20' ) end [2025-03-10 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647299', 'tblTempVendorCDR_20' ) start [2025-03-10 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647299', 'tblTempVendorCDR_20' ) end [2025-03-10 05:13:17] Production.INFO: ProcessCDR(1,14647299,1,1,2) [2025-03-10 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647299', 'tblTempUsageDetail_20' ) start [2025-03-10 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647299', 'tblTempUsageDetail_20' ) end [2025-03-10 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:13:20] Production.INFO: ==3158== Releasing lock... [2025-03-10 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:13:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:14:05 [end_date_ymd] => 2025-03-10 05:14:05 [RateCDR] => 1 ) [2025-03-10 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:14:05' and `end` < '2025-03-10 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:14:17] Production.INFO: count ==109 [2025-03-10 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:14:05 - End Time 2025-03-10 05:14:05 [2025-03-10 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647304', 'tblTempUsageDetail_20' ) start [2025-03-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647304', 'tblTempUsageDetail_20' ) end [2025-03-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647304', 'tblTempVendorCDR_20' ) start [2025-03-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647304', 'tblTempVendorCDR_20' ) end [2025-03-10 05:14:17] Production.INFO: ProcessCDR(1,14647304,1,1,2) [2025-03-10 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647304', 'tblTempUsageDetail_20' ) start [2025-03-10 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647304', 'tblTempUsageDetail_20' ) end [2025-03-10 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:14:20] Production.INFO: ==3231== Releasing lock... [2025-03-10 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:14:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:15:04 [end_date_ymd] => 2025-03-10 05:15:04 [RateCDR] => 1 ) [2025-03-10 05:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:15:04' and `end` < '2025-03-10 05:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:15:16] Production.INFO: count ==106 [2025-03-10 05:15:16] Production.ERROR: pbx CDR StartTime 2025-03-10 02:15:04 - End Time 2025-03-10 05:15:04 [2025-03-10 05:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647309', 'tblTempUsageDetail_20' ) start [2025-03-10 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647309', 'tblTempUsageDetail_20' ) end [2025-03-10 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647309', 'tblTempVendorCDR_20' ) start [2025-03-10 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647309', 'tblTempVendorCDR_20' ) end [2025-03-10 05:15:16] Production.INFO: ProcessCDR(1,14647309,1,1,2) [2025-03-10 05:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647309', 'tblTempUsageDetail_20' ) start [2025-03-10 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647309', 'tblTempUsageDetail_20' ) end [2025-03-10 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:15:20] Production.INFO: ==3302== Releasing lock... [2025-03-10 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:15:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:16:05 [end_date_ymd] => 2025-03-10 05:16:05 [RateCDR] => 1 ) [2025-03-10 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:16:05' and `end` < '2025-03-10 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:16:17] Production.INFO: count ==105 [2025-03-10 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:16:05 - End Time 2025-03-10 05:16:05 [2025-03-10 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647314', 'tblTempUsageDetail_20' ) start [2025-03-10 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647314', 'tblTempUsageDetail_20' ) end [2025-03-10 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647314', 'tblTempVendorCDR_20' ) start [2025-03-10 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647314', 'tblTempVendorCDR_20' ) end [2025-03-10 05:16:17] Production.INFO: ProcessCDR(1,14647314,1,1,2) [2025-03-10 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647314', 'tblTempUsageDetail_20' ) start [2025-03-10 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647314', 'tblTempUsageDetail_20' ) end [2025-03-10 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:16:21] Production.INFO: ==3373== Releasing lock... [2025-03-10 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:16:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:17:06 [end_date_ymd] => 2025-03-10 05:17:06 [RateCDR] => 1 ) [2025-03-10 05:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:17:06' and `end` < '2025-03-10 05:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:17:18] Production.INFO: count ==105 [2025-03-10 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:17:06 - End Time 2025-03-10 05:17:06 [2025-03-10 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647319', 'tblTempUsageDetail_20' ) start [2025-03-10 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647319', 'tblTempUsageDetail_20' ) end [2025-03-10 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647319', 'tblTempVendorCDR_20' ) start [2025-03-10 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647319', 'tblTempVendorCDR_20' ) end [2025-03-10 05:17:18] Production.INFO: ProcessCDR(1,14647319,1,1,2) [2025-03-10 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647319', 'tblTempUsageDetail_20' ) start [2025-03-10 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647319', 'tblTempUsageDetail_20' ) end [2025-03-10 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:17:21] Production.INFO: ==3452== Releasing lock... [2025-03-10 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:17:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:18:04 [end_date_ymd] => 2025-03-10 05:18:04 [RateCDR] => 1 ) [2025-03-10 05:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:18:04' and `end` < '2025-03-10 05:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:18:17] Production.INFO: count ==105 [2025-03-10 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:18:04 - End Time 2025-03-10 05:18:04 [2025-03-10 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647324', 'tblTempUsageDetail_20' ) start [2025-03-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647324', 'tblTempUsageDetail_20' ) end [2025-03-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647324', 'tblTempVendorCDR_20' ) start [2025-03-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647324', 'tblTempVendorCDR_20' ) end [2025-03-10 05:18:17] Production.INFO: ProcessCDR(1,14647324,1,1,2) [2025-03-10 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647324', 'tblTempUsageDetail_20' ) start [2025-03-10 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647324', 'tblTempUsageDetail_20' ) end [2025-03-10 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:18:20] Production.INFO: ==3572== Releasing lock... [2025-03-10 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:18:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:19:05 [end_date_ymd] => 2025-03-10 05:19:05 [RateCDR] => 1 ) [2025-03-10 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:19:05' and `end` < '2025-03-10 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:19:17] Production.INFO: count ==109 [2025-03-10 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:19:05 - End Time 2025-03-10 05:19:05 [2025-03-10 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647329', 'tblTempUsageDetail_20' ) start [2025-03-10 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647329', 'tblTempUsageDetail_20' ) end [2025-03-10 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647329', 'tblTempVendorCDR_20' ) start [2025-03-10 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647329', 'tblTempVendorCDR_20' ) end [2025-03-10 05:19:17] Production.INFO: ProcessCDR(1,14647329,1,1,2) [2025-03-10 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647329', 'tblTempUsageDetail_20' ) start [2025-03-10 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647329', 'tblTempUsageDetail_20' ) end [2025-03-10 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:19:21] Production.INFO: ==3643== Releasing lock... [2025-03-10 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:19:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:20:06 [end_date_ymd] => 2025-03-10 05:20:06 [RateCDR] => 1 ) [2025-03-10 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:20:06' and `end` < '2025-03-10 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:20:18] Production.INFO: count ==109 [2025-03-10 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:20:06 - End Time 2025-03-10 05:20:06 [2025-03-10 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647335', 'tblTempUsageDetail_20' ) start [2025-03-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647335', 'tblTempUsageDetail_20' ) end [2025-03-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647335', 'tblTempVendorCDR_20' ) start [2025-03-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647335', 'tblTempVendorCDR_20' ) end [2025-03-10 05:20:18] Production.INFO: ProcessCDR(1,14647335,1,1,2) [2025-03-10 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647335', 'tblTempUsageDetail_20' ) start [2025-03-10 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647335', 'tblTempUsageDetail_20' ) end [2025-03-10 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:20:22] Production.INFO: ==3718== Releasing lock... [2025-03-10 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:20:22] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:21:05 [end_date_ymd] => 2025-03-10 05:21:05 [RateCDR] => 1 ) [2025-03-10 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:21:05' and `end` < '2025-03-10 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:21:17] Production.INFO: count ==109 [2025-03-10 05:21:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:21:05 - End Time 2025-03-10 05:21:05 [2025-03-10 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647340', 'tblTempUsageDetail_20' ) start [2025-03-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647340', 'tblTempUsageDetail_20' ) end [2025-03-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647340', 'tblTempVendorCDR_20' ) start [2025-03-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647340', 'tblTempVendorCDR_20' ) end [2025-03-10 05:21:18] Production.INFO: ProcessCDR(1,14647340,1,1,2) [2025-03-10 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647340', 'tblTempUsageDetail_20' ) start [2025-03-10 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647340', 'tblTempUsageDetail_20' ) end [2025-03-10 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:21:21] Production.INFO: ==3790== Releasing lock... [2025-03-10 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:21:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:22:05 [end_date_ymd] => 2025-03-10 05:22:05 [RateCDR] => 1 ) [2025-03-10 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:22:05' and `end` < '2025-03-10 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:22:17] Production.INFO: count ==109 [2025-03-10 05:22:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:22:05 - End Time 2025-03-10 05:22:05 [2025-03-10 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647345', 'tblTempUsageDetail_20' ) start [2025-03-10 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647345', 'tblTempUsageDetail_20' ) end [2025-03-10 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647345', 'tblTempVendorCDR_20' ) start [2025-03-10 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647345', 'tblTempVendorCDR_20' ) end [2025-03-10 05:22:17] Production.INFO: ProcessCDR(1,14647345,1,1,2) [2025-03-10 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647345', 'tblTempUsageDetail_20' ) start [2025-03-10 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647345', 'tblTempUsageDetail_20' ) end [2025-03-10 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:22:20] Production.INFO: ==3860== Releasing lock... [2025-03-10 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:22:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:23:05 [end_date_ymd] => 2025-03-10 05:23:05 [RateCDR] => 1 ) [2025-03-10 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:23:05' and `end` < '2025-03-10 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:23:17] Production.INFO: count ==109 [2025-03-10 05:23:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:23:05 - End Time 2025-03-10 05:23:05 [2025-03-10 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647350', 'tblTempUsageDetail_20' ) start [2025-03-10 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647350', 'tblTempUsageDetail_20' ) end [2025-03-10 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647350', 'tblTempVendorCDR_20' ) start [2025-03-10 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647350', 'tblTempVendorCDR_20' ) end [2025-03-10 05:23:17] Production.INFO: ProcessCDR(1,14647350,1,1,2) [2025-03-10 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647350', 'tblTempUsageDetail_20' ) start [2025-03-10 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647350', 'tblTempUsageDetail_20' ) end [2025-03-10 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:23:20] Production.INFO: ==3931== Releasing lock... [2025-03-10 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:23:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:24:05 [end_date_ymd] => 2025-03-10 05:24:05 [RateCDR] => 1 ) [2025-03-10 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:24:05' and `end` < '2025-03-10 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:24:17] Production.INFO: count ==109 [2025-03-10 05:24:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:24:05 - End Time 2025-03-10 05:24:05 [2025-03-10 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647355', 'tblTempUsageDetail_20' ) start [2025-03-10 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647355', 'tblTempUsageDetail_20' ) end [2025-03-10 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647355', 'tblTempVendorCDR_20' ) start [2025-03-10 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647355', 'tblTempVendorCDR_20' ) end [2025-03-10 05:24:17] Production.INFO: ProcessCDR(1,14647355,1,1,2) [2025-03-10 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647355', 'tblTempUsageDetail_20' ) start [2025-03-10 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647355', 'tblTempUsageDetail_20' ) end [2025-03-10 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:24:20] Production.INFO: ==4002== Releasing lock... [2025-03-10 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:24:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:25:05 [end_date_ymd] => 2025-03-10 05:25:05 [RateCDR] => 1 ) [2025-03-10 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:25:05' and `end` < '2025-03-10 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:25:17] Production.INFO: count ==109 [2025-03-10 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:25:05 - End Time 2025-03-10 05:25:05 [2025-03-10 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647360', 'tblTempUsageDetail_20' ) start [2025-03-10 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647360', 'tblTempUsageDetail_20' ) end [2025-03-10 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647360', 'tblTempVendorCDR_20' ) start [2025-03-10 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647360', 'tblTempVendorCDR_20' ) end [2025-03-10 05:25:17] Production.INFO: ProcessCDR(1,14647360,1,1,2) [2025-03-10 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647360', 'tblTempUsageDetail_20' ) start [2025-03-10 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647360', 'tblTempUsageDetail_20' ) end [2025-03-10 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:25:20] Production.INFO: ==4075== Releasing lock... [2025-03-10 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:25:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:26:04 [end_date_ymd] => 2025-03-10 05:26:04 [RateCDR] => 1 ) [2025-03-10 05:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:26:04' and `end` < '2025-03-10 05:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:26:16] Production.INFO: count ==109 [2025-03-10 05:26:16] Production.ERROR: pbx CDR StartTime 2025-03-10 02:26:04 - End Time 2025-03-10 05:26:04 [2025-03-10 05:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647365', 'tblTempUsageDetail_20' ) start [2025-03-10 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647365', 'tblTempUsageDetail_20' ) end [2025-03-10 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647365', 'tblTempVendorCDR_20' ) start [2025-03-10 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647365', 'tblTempVendorCDR_20' ) end [2025-03-10 05:26:16] Production.INFO: ProcessCDR(1,14647365,1,1,2) [2025-03-10 05:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647365', 'tblTempUsageDetail_20' ) start [2025-03-10 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647365', 'tblTempUsageDetail_20' ) end [2025-03-10 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:26:20] Production.INFO: ==4156== Releasing lock... [2025-03-10 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:26:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:27:05 [end_date_ymd] => 2025-03-10 05:27:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 02:27:05' and `end` < '2025-03-10 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-03-10 05:27:17] Production.INFO: count ==109 [2025-03-10 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:27:05 - End Time 2025-03-10 05:27:05 [2025-03-10 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647370', 'tblTempUsageDetail_20' ) start [2025-03-10 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647370', 'tblTempUsageDetail_20' ) end [2025-03-10 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647370', 'tblTempVendorCDR_20' ) start [2025-03-10 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647370', 'tblTempVendorCDR_20' ) end [2025-03-10 05:27:17] Production.INFO: ProcessCDR(1,14647370,1,1,2) [2025-03-10 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647370', 'tblTempUsageDetail_20' ) start [2025-03-10 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647370', 'tblTempUsageDetail_20' ) end [2025-03-10 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:27:20] Production.INFO: ==4231== Releasing lock... [2025-03-10 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:27:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:28:04 [end_date_ymd] => 2025-03-10 05:28:04 [RateCDR] => 1 ) [2025-03-10 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:28:04' and `end` < '2025-03-10 05:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:28:17] Production.INFO: count ==109 [2025-03-10 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:28:04 - End Time 2025-03-10 05:28:04 [2025-03-10 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647375', 'tblTempUsageDetail_20' ) start [2025-03-10 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647375', 'tblTempUsageDetail_20' ) end [2025-03-10 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647375', 'tblTempVendorCDR_20' ) start [2025-03-10 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647375', 'tblTempVendorCDR_20' ) end [2025-03-10 05:28:17] Production.INFO: ProcessCDR(1,14647375,1,1,2) [2025-03-10 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647375', 'tblTempUsageDetail_20' ) start [2025-03-10 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647375', 'tblTempUsageDetail_20' ) end [2025-03-10 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:28:20] Production.INFO: ==4302== Releasing lock... [2025-03-10 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:28:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:29:05 [end_date_ymd] => 2025-03-10 05:29:05 [RateCDR] => 1 ) [2025-03-10 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:29:05' and `end` < '2025-03-10 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:29:17] Production.INFO: count ==109 [2025-03-10 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:29:05 - End Time 2025-03-10 05:29:05 [2025-03-10 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647380', 'tblTempUsageDetail_20' ) start [2025-03-10 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647380', 'tblTempUsageDetail_20' ) end [2025-03-10 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647380', 'tblTempVendorCDR_20' ) start [2025-03-10 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647380', 'tblTempVendorCDR_20' ) end [2025-03-10 05:29:17] Production.INFO: ProcessCDR(1,14647380,1,1,2) [2025-03-10 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647380', 'tblTempUsageDetail_20' ) start [2025-03-10 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647380', 'tblTempUsageDetail_20' ) end [2025-03-10 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:29:20] Production.INFO: ==4373== Releasing lock... [2025-03-10 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:29:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:30:05 [end_date_ymd] => 2025-03-10 05:30:05 [RateCDR] => 1 ) [2025-03-10 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:30:05' and `end` < '2025-03-10 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:30:17] Production.INFO: count ==107 [2025-03-10 05:30:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:30:05 - End Time 2025-03-10 05:30:05 [2025-03-10 05:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647386', 'tblTempUsageDetail_20' ) start [2025-03-10 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647386', 'tblTempUsageDetail_20' ) end [2025-03-10 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647386', 'tblTempVendorCDR_20' ) start [2025-03-10 05:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647386', 'tblTempVendorCDR_20' ) end [2025-03-10 05:30:17] Production.INFO: ProcessCDR(1,14647386,1,1,2) [2025-03-10 05:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647386', 'tblTempUsageDetail_20' ) start [2025-03-10 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647386', 'tblTempUsageDetail_20' ) end [2025-03-10 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:30:21] Production.INFO: ==4446== Releasing lock... [2025-03-10 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:30:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:31:05 [end_date_ymd] => 2025-03-10 05:31:05 [RateCDR] => 1 ) [2025-03-10 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:31:05' and `end` < '2025-03-10 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:31:17] Production.INFO: count ==104 [2025-03-10 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:31:05 - End Time 2025-03-10 05:31:05 [2025-03-10 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647391', 'tblTempUsageDetail_20' ) start [2025-03-10 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647391', 'tblTempUsageDetail_20' ) end [2025-03-10 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647391', 'tblTempVendorCDR_20' ) start [2025-03-10 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647391', 'tblTempVendorCDR_20' ) end [2025-03-10 05:31:17] Production.INFO: ProcessCDR(1,14647391,1,1,2) [2025-03-10 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647391', 'tblTempUsageDetail_20' ) start [2025-03-10 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647391', 'tblTempUsageDetail_20' ) end [2025-03-10 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:31:20] Production.INFO: ==4520== Releasing lock... [2025-03-10 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:31:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:32:06 [end_date_ymd] => 2025-03-10 05:32:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 02:32:06' and `end` < '2025-03-10 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-03-10 05:32:18] Production.INFO: count ==103 [2025-03-10 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:32:06 - End Time 2025-03-10 05:32:06 [2025-03-10 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647396', 'tblTempUsageDetail_20' ) start [2025-03-10 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647396', 'tblTempUsageDetail_20' ) end [2025-03-10 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647396', 'tblTempVendorCDR_20' ) start [2025-03-10 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647396', 'tblTempVendorCDR_20' ) end [2025-03-10 05:32:18] Production.INFO: ProcessCDR(1,14647396,1,1,2) [2025-03-10 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647396', 'tblTempUsageDetail_20' ) start [2025-03-10 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647396', 'tblTempUsageDetail_20' ) end [2025-03-10 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:32:21] Production.INFO: ==4603== Releasing lock... [2025-03-10 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:32:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:33:05 [end_date_ymd] => 2025-03-10 05:33:05 [RateCDR] => 1 ) [2025-03-10 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:33:05' and `end` < '2025-03-10 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:33:17] Production.INFO: count ==103 [2025-03-10 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:33:05 - End Time 2025-03-10 05:33:05 [2025-03-10 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647401', 'tblTempUsageDetail_20' ) start [2025-03-10 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647401', 'tblTempUsageDetail_20' ) end [2025-03-10 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647401', 'tblTempVendorCDR_20' ) start [2025-03-10 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647401', 'tblTempVendorCDR_20' ) end [2025-03-10 05:33:17] Production.INFO: ProcessCDR(1,14647401,1,1,2) [2025-03-10 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647401', 'tblTempUsageDetail_20' ) start [2025-03-10 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647401', 'tblTempUsageDetail_20' ) end [2025-03-10 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:33:20] Production.INFO: ==4723== Releasing lock... [2025-03-10 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:33:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:34:05 [end_date_ymd] => 2025-03-10 05:34:05 [RateCDR] => 1 ) [2025-03-10 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:34:05' and `end` < '2025-03-10 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:34:17] Production.INFO: count ==103 [2025-03-10 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:34:05 - End Time 2025-03-10 05:34:05 [2025-03-10 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647406', 'tblTempUsageDetail_20' ) start [2025-03-10 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647406', 'tblTempUsageDetail_20' ) end [2025-03-10 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647406', 'tblTempVendorCDR_20' ) start [2025-03-10 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647406', 'tblTempVendorCDR_20' ) end [2025-03-10 05:34:17] Production.INFO: ProcessCDR(1,14647406,1,1,2) [2025-03-10 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647406', 'tblTempUsageDetail_20' ) start [2025-03-10 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647406', 'tblTempUsageDetail_20' ) end [2025-03-10 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:34:21] Production.INFO: ==4801== Releasing lock... [2025-03-10 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:34:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:35:05 [end_date_ymd] => 2025-03-10 05:35:05 [RateCDR] => 1 ) [2025-03-10 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:35:05' and `end` < '2025-03-10 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:35:17] Production.INFO: count ==103 [2025-03-10 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:35:05 - End Time 2025-03-10 05:35:05 [2025-03-10 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647411', 'tblTempUsageDetail_20' ) start [2025-03-10 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647411', 'tblTempUsageDetail_20' ) end [2025-03-10 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647411', 'tblTempVendorCDR_20' ) start [2025-03-10 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647411', 'tblTempVendorCDR_20' ) end [2025-03-10 05:35:17] Production.INFO: ProcessCDR(1,14647411,1,1,2) [2025-03-10 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647411', 'tblTempUsageDetail_20' ) start [2025-03-10 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647411', 'tblTempUsageDetail_20' ) end [2025-03-10 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:35:20] Production.INFO: ==4872== Releasing lock... [2025-03-10 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:35:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:36:06 [end_date_ymd] => 2025-03-10 05:36:06 [RateCDR] => 1 ) [2025-03-10 05:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:36:06' and `end` < '2025-03-10 05:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:36:18] Production.INFO: count ==103 [2025-03-10 05:36:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:36:06 - End Time 2025-03-10 05:36:06 [2025-03-10 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647416', 'tblTempUsageDetail_20' ) start [2025-03-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647416', 'tblTempUsageDetail_20' ) end [2025-03-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647416', 'tblTempVendorCDR_20' ) start [2025-03-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647416', 'tblTempVendorCDR_20' ) end [2025-03-10 05:36:18] Production.INFO: ProcessCDR(1,14647416,1,1,2) [2025-03-10 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647416', 'tblTempUsageDetail_20' ) start [2025-03-10 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647416', 'tblTempUsageDetail_20' ) end [2025-03-10 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:36:21] Production.INFO: ==4947== Releasing lock... [2025-03-10 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:36:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:37:05 [end_date_ymd] => 2025-03-10 05:37:05 [RateCDR] => 1 ) [2025-03-10 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:37:05' and `end` < '2025-03-10 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:37:17] Production.INFO: count ==106 [2025-03-10 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:37:05 - End Time 2025-03-10 05:37:05 [2025-03-10 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647421', 'tblTempUsageDetail_20' ) start [2025-03-10 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647421', 'tblTempUsageDetail_20' ) end [2025-03-10 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647421', 'tblTempVendorCDR_20' ) start [2025-03-10 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647421', 'tblTempVendorCDR_20' ) end [2025-03-10 05:37:17] Production.INFO: ProcessCDR(1,14647421,1,1,2) [2025-03-10 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647421', 'tblTempUsageDetail_20' ) start [2025-03-10 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647421', 'tblTempUsageDetail_20' ) end [2025-03-10 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:37:20] Production.INFO: ==5019== Releasing lock... [2025-03-10 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:37:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:38:06 [end_date_ymd] => 2025-03-10 05:38:06 [RateCDR] => 1 ) [2025-03-10 05:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:38:06' and `end` < '2025-03-10 05:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:38:18] Production.INFO: count ==109 [2025-03-10 05:38:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:38:06 - End Time 2025-03-10 05:38:06 [2025-03-10 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647426', 'tblTempUsageDetail_20' ) start [2025-03-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647426', 'tblTempUsageDetail_20' ) end [2025-03-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647426', 'tblTempVendorCDR_20' ) start [2025-03-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647426', 'tblTempVendorCDR_20' ) end [2025-03-10 05:38:18] Production.INFO: ProcessCDR(1,14647426,1,1,2) [2025-03-10 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647426', 'tblTempUsageDetail_20' ) start [2025-03-10 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647426', 'tblTempUsageDetail_20' ) end [2025-03-10 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:38:21] Production.INFO: ==5093== Releasing lock... [2025-03-10 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:39:05 [end_date_ymd] => 2025-03-10 05:39:05 [RateCDR] => 1 ) [2025-03-10 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:39:05' and `end` < '2025-03-10 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:39:17] Production.INFO: count ==109 [2025-03-10 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:39:05 - End Time 2025-03-10 05:39:05 [2025-03-10 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647431', 'tblTempUsageDetail_20' ) start [2025-03-10 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647431', 'tblTempUsageDetail_20' ) end [2025-03-10 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647431', 'tblTempVendorCDR_20' ) start [2025-03-10 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647431', 'tblTempVendorCDR_20' ) end [2025-03-10 05:39:17] Production.INFO: ProcessCDR(1,14647431,1,1,2) [2025-03-10 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647431', 'tblTempUsageDetail_20' ) start [2025-03-10 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647431', 'tblTempUsageDetail_20' ) end [2025-03-10 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:39:20] Production.INFO: ==5167== Releasing lock... [2025-03-10 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:39:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:40:06 [end_date_ymd] => 2025-03-10 05:40:06 [RateCDR] => 1 ) [2025-03-10 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:40:06' and `end` < '2025-03-10 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:40:18] Production.INFO: count ==110 [2025-03-10 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:40:06 - End Time 2025-03-10 05:40:06 [2025-03-10 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647437', 'tblTempUsageDetail_20' ) start [2025-03-10 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647437', 'tblTempUsageDetail_20' ) end [2025-03-10 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647437', 'tblTempVendorCDR_20' ) start [2025-03-10 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647437', 'tblTempVendorCDR_20' ) end [2025-03-10 05:40:18] Production.INFO: ProcessCDR(1,14647437,1,1,2) [2025-03-10 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647437', 'tblTempUsageDetail_20' ) start [2025-03-10 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647437', 'tblTempUsageDetail_20' ) end [2025-03-10 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:40:21] Production.INFO: ==5243== Releasing lock... [2025-03-10 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:40:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:41:05 [end_date_ymd] => 2025-03-10 05:41:05 [RateCDR] => 1 ) [2025-03-10 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:41:05' and `end` < '2025-03-10 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:41:17] Production.INFO: count ==110 [2025-03-10 05:41:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:41:05 - End Time 2025-03-10 05:41:05 [2025-03-10 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647442', 'tblTempUsageDetail_20' ) start [2025-03-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647442', 'tblTempUsageDetail_20' ) end [2025-03-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647442', 'tblTempVendorCDR_20' ) start [2025-03-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647442', 'tblTempVendorCDR_20' ) end [2025-03-10 05:41:18] Production.INFO: ProcessCDR(1,14647442,1,1,2) [2025-03-10 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647442', 'tblTempUsageDetail_20' ) start [2025-03-10 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647442', 'tblTempUsageDetail_20' ) end [2025-03-10 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:41:21] Production.INFO: ==5320== Releasing lock... [2025-03-10 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:41:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:42:05 [end_date_ymd] => 2025-03-10 05:42:05 [RateCDR] => 1 ) [2025-03-10 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:42:05' and `end` < '2025-03-10 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:42:17] Production.INFO: count ==110 [2025-03-10 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:42:05 - End Time 2025-03-10 05:42:05 [2025-03-10 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647447', 'tblTempUsageDetail_20' ) start [2025-03-10 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647447', 'tblTempUsageDetail_20' ) end [2025-03-10 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647447', 'tblTempVendorCDR_20' ) start [2025-03-10 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647447', 'tblTempVendorCDR_20' ) end [2025-03-10 05:42:17] Production.INFO: ProcessCDR(1,14647447,1,1,2) [2025-03-10 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647447', 'tblTempUsageDetail_20' ) start [2025-03-10 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647447', 'tblTempUsageDetail_20' ) end [2025-03-10 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:42:21] Production.INFO: ==5397== Releasing lock... [2025-03-10 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:42:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:43:06 [end_date_ymd] => 2025-03-10 05:43:06 [RateCDR] => 1 ) [2025-03-10 05:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:43:06' and `end` < '2025-03-10 05:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:43:18] Production.INFO: count ==110 [2025-03-10 05:43:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:43:06 - End Time 2025-03-10 05:43:06 [2025-03-10 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647452', 'tblTempUsageDetail_20' ) start [2025-03-10 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647452', 'tblTempUsageDetail_20' ) end [2025-03-10 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647452', 'tblTempVendorCDR_20' ) start [2025-03-10 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647452', 'tblTempVendorCDR_20' ) end [2025-03-10 05:43:18] Production.INFO: ProcessCDR(1,14647452,1,1,2) [2025-03-10 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647452', 'tblTempUsageDetail_20' ) start [2025-03-10 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647452', 'tblTempUsageDetail_20' ) end [2025-03-10 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:43:21] Production.INFO: ==5474== Releasing lock... [2025-03-10 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:43:21] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:44:05 [end_date_ymd] => 2025-03-10 05:44:05 [RateCDR] => 1 ) [2025-03-10 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:44:05' and `end` < '2025-03-10 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:44:17] Production.INFO: count ==106 [2025-03-10 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:44:05 - End Time 2025-03-10 05:44:05 [2025-03-10 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647457', 'tblTempUsageDetail_20' ) start [2025-03-10 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647457', 'tblTempUsageDetail_20' ) end [2025-03-10 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647457', 'tblTempVendorCDR_20' ) start [2025-03-10 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647457', 'tblTempVendorCDR_20' ) end [2025-03-10 05:44:17] Production.INFO: ProcessCDR(1,14647457,1,1,2) [2025-03-10 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647457', 'tblTempUsageDetail_20' ) start [2025-03-10 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647457', 'tblTempUsageDetail_20' ) end [2025-03-10 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:44:20] Production.INFO: ==5560== Releasing lock... [2025-03-10 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:44:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:45:06 [end_date_ymd] => 2025-03-10 05:45:06 [RateCDR] => 1 ) [2025-03-10 05:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:45:06' and `end` < '2025-03-10 05:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:45:18] Production.INFO: count ==95 [2025-03-10 05:45:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:45:06 - End Time 2025-03-10 05:45:06 [2025-03-10 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647462', 'tblTempUsageDetail_20' ) start [2025-03-10 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647462', 'tblTempUsageDetail_20' ) end [2025-03-10 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647462', 'tblTempVendorCDR_20' ) start [2025-03-10 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647462', 'tblTempVendorCDR_20' ) end [2025-03-10 05:45:18] Production.INFO: ProcessCDR(1,14647462,1,1,2) [2025-03-10 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647462', 'tblTempUsageDetail_20' ) start [2025-03-10 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647462', 'tblTempUsageDetail_20' ) end [2025-03-10 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:45:21] Production.INFO: ==5644== Releasing lock... [2025-03-10 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:46:05 [end_date_ymd] => 2025-03-10 05:46:05 [RateCDR] => 1 ) [2025-03-10 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:46:05' and `end` < '2025-03-10 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:46:17] Production.INFO: count ==96 [2025-03-10 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:46:05 - End Time 2025-03-10 05:46:05 [2025-03-10 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647467', 'tblTempUsageDetail_20' ) start [2025-03-10 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647467', 'tblTempUsageDetail_20' ) end [2025-03-10 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647467', 'tblTempVendorCDR_20' ) start [2025-03-10 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647467', 'tblTempVendorCDR_20' ) end [2025-03-10 05:46:17] Production.INFO: ProcessCDR(1,14647467,1,1,2) [2025-03-10 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647467', 'tblTempUsageDetail_20' ) start [2025-03-10 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647467', 'tblTempUsageDetail_20' ) end [2025-03-10 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:46:21] Production.INFO: ==5740== Releasing lock... [2025-03-10 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:47:05 [end_date_ymd] => 2025-03-10 05:47:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 02:47:05' and `end` < '2025-03-10 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-03-10 05:47:18] Production.INFO: count ==96 [2025-03-10 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:47:05 - End Time 2025-03-10 05:47:05 [2025-03-10 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647472', 'tblTempUsageDetail_20' ) start [2025-03-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647472', 'tblTempUsageDetail_20' ) end [2025-03-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647472', 'tblTempVendorCDR_20' ) start [2025-03-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647472', 'tblTempVendorCDR_20' ) end [2025-03-10 05:47:18] Production.INFO: ProcessCDR(1,14647472,1,1,2) [2025-03-10 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647472', 'tblTempUsageDetail_20' ) start [2025-03-10 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647472', 'tblTempUsageDetail_20' ) end [2025-03-10 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:47:21] Production.INFO: ==5834== Releasing lock... [2025-03-10 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:48:05 [end_date_ymd] => 2025-03-10 05:48:05 [RateCDR] => 1 ) [2025-03-10 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:48:05' and `end` < '2025-03-10 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:48:17] Production.INFO: count ==96 [2025-03-10 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:48:05 - End Time 2025-03-10 05:48:05 [2025-03-10 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647477', 'tblTempUsageDetail_20' ) start [2025-03-10 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647477', 'tblTempUsageDetail_20' ) end [2025-03-10 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647477', 'tblTempVendorCDR_20' ) start [2025-03-10 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647477', 'tblTempVendorCDR_20' ) end [2025-03-10 05:48:17] Production.INFO: ProcessCDR(1,14647477,1,1,2) [2025-03-10 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647477', 'tblTempUsageDetail_20' ) start [2025-03-10 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647477', 'tblTempUsageDetail_20' ) end [2025-03-10 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:48:20] Production.INFO: ==5921== Releasing lock... [2025-03-10 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:48:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:49:05 [end_date_ymd] => 2025-03-10 05:49:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 02:49:05' and `end` < '2025-03-10 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-03-10 05:49:17] Production.INFO: count ==96 [2025-03-10 05:49:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:49:05 - End Time 2025-03-10 05:49:05 [2025-03-10 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647482', 'tblTempUsageDetail_20' ) start [2025-03-10 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647482', 'tblTempUsageDetail_20' ) end [2025-03-10 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647482', 'tblTempVendorCDR_20' ) start [2025-03-10 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647482', 'tblTempVendorCDR_20' ) end [2025-03-10 05:49:17] Production.INFO: ProcessCDR(1,14647482,1,1,2) [2025-03-10 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647482', 'tblTempUsageDetail_20' ) start [2025-03-10 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647482', 'tblTempUsageDetail_20' ) end [2025-03-10 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:49:20] Production.INFO: ==6049== Releasing lock... [2025-03-10 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:50:06 [end_date_ymd] => 2025-03-10 05:50:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 02:50:06' and `end` < '2025-03-10 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-03-10 05:50:17] Production.INFO: count ==96 [2025-03-10 05:50:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:50:06 - End Time 2025-03-10 05:50:06 [2025-03-10 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647488', 'tblTempUsageDetail_20' ) start [2025-03-10 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647488', 'tblTempUsageDetail_20' ) end [2025-03-10 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647488', 'tblTempVendorCDR_20' ) start [2025-03-10 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647488', 'tblTempVendorCDR_20' ) end [2025-03-10 05:50:18] Production.INFO: ProcessCDR(1,14647488,1,1,2) [2025-03-10 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647488', 'tblTempUsageDetail_20' ) start [2025-03-10 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647488', 'tblTempUsageDetail_20' ) end [2025-03-10 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:50:21] Production.INFO: ==6136== Releasing lock... [2025-03-10 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:51:05 [end_date_ymd] => 2025-03-10 05:51:05 [RateCDR] => 1 ) [2025-03-10 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:51:05' and `end` < '2025-03-10 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:51:17] Production.INFO: count ==96 [2025-03-10 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:51:05 - End Time 2025-03-10 05:51:05 [2025-03-10 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647493', 'tblTempUsageDetail_20' ) start [2025-03-10 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647493', 'tblTempUsageDetail_20' ) end [2025-03-10 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647493', 'tblTempVendorCDR_20' ) start [2025-03-10 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647493', 'tblTempVendorCDR_20' ) end [2025-03-10 05:51:17] Production.INFO: ProcessCDR(1,14647493,1,1,2) [2025-03-10 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647493', 'tblTempUsageDetail_20' ) start [2025-03-10 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647493', 'tblTempUsageDetail_20' ) end [2025-03-10 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:51:21] Production.INFO: ==6230== Releasing lock... [2025-03-10 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:52:05 [end_date_ymd] => 2025-03-10 05:52:05 [RateCDR] => 1 ) [2025-03-10 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:52:05' and `end` < '2025-03-10 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:52:17] Production.INFO: count ==96 [2025-03-10 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:52:05 - End Time 2025-03-10 05:52:05 [2025-03-10 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647498', 'tblTempUsageDetail_20' ) start [2025-03-10 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647498', 'tblTempUsageDetail_20' ) end [2025-03-10 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647498', 'tblTempVendorCDR_20' ) start [2025-03-10 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647498', 'tblTempVendorCDR_20' ) end [2025-03-10 05:52:17] Production.INFO: ProcessCDR(1,14647498,1,1,2) [2025-03-10 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647498', 'tblTempUsageDetail_20' ) start [2025-03-10 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647498', 'tblTempUsageDetail_20' ) end [2025-03-10 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:52:20] Production.INFO: ==6314== Releasing lock... [2025-03-10 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:52:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:53:05 [end_date_ymd] => 2025-03-10 05:53:05 [RateCDR] => 1 ) [2025-03-10 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:53:05' and `end` < '2025-03-10 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:53:17] Production.INFO: count ==96 [2025-03-10 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:53:05 - End Time 2025-03-10 05:53:05 [2025-03-10 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647503', 'tblTempUsageDetail_20' ) start [2025-03-10 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647503', 'tblTempUsageDetail_20' ) end [2025-03-10 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647503', 'tblTempVendorCDR_20' ) start [2025-03-10 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647503', 'tblTempVendorCDR_20' ) end [2025-03-10 05:53:17] Production.INFO: ProcessCDR(1,14647503,1,1,2) [2025-03-10 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647503', 'tblTempUsageDetail_20' ) start [2025-03-10 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647503', 'tblTempUsageDetail_20' ) end [2025-03-10 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:53:20] Production.INFO: ==6392== Releasing lock... [2025-03-10 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:53:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:54:05 [end_date_ymd] => 2025-03-10 05:54:05 [RateCDR] => 1 ) [2025-03-10 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:54:05' and `end` < '2025-03-10 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:54:16] Production.INFO: count ==96 [2025-03-10 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:54:05 - End Time 2025-03-10 05:54:05 [2025-03-10 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647508', 'tblTempUsageDetail_20' ) start [2025-03-10 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647508', 'tblTempUsageDetail_20' ) end [2025-03-10 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647508', 'tblTempVendorCDR_20' ) start [2025-03-10 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647508', 'tblTempVendorCDR_20' ) end [2025-03-10 05:54:17] Production.INFO: ProcessCDR(1,14647508,1,1,2) [2025-03-10 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647508', 'tblTempUsageDetail_20' ) start [2025-03-10 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647508', 'tblTempUsageDetail_20' ) end [2025-03-10 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:54:20] Production.INFO: ==6469== Releasing lock... [2025-03-10 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:54:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:55:05 [end_date_ymd] => 2025-03-10 05:55:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 02:55:05' and `end` < '2025-03-10 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-03-10 05:55:17] Production.INFO: count ==96 [2025-03-10 05:55:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:55:05 - End Time 2025-03-10 05:55:05 [2025-03-10 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647513', 'tblTempUsageDetail_20' ) start [2025-03-10 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647513', 'tblTempUsageDetail_20' ) end [2025-03-10 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647513', 'tblTempVendorCDR_20' ) start [2025-03-10 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647513', 'tblTempVendorCDR_20' ) end [2025-03-10 05:55:17] Production.INFO: ProcessCDR(1,14647513,1,1,2) [2025-03-10 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647513', 'tblTempUsageDetail_20' ) start [2025-03-10 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647513', 'tblTempUsageDetail_20' ) end [2025-03-10 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:55:21] Production.INFO: ==6545== Releasing lock... [2025-03-10 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:56:05 [end_date_ymd] => 2025-03-10 05:56:05 [RateCDR] => 1 ) [2025-03-10 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:56:05' and `end` < '2025-03-10 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:56:17] Production.INFO: count ==96 [2025-03-10 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:56:05 - End Time 2025-03-10 05:56:05 [2025-03-10 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647518', 'tblTempUsageDetail_20' ) start [2025-03-10 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647518', 'tblTempUsageDetail_20' ) end [2025-03-10 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647518', 'tblTempVendorCDR_20' ) start [2025-03-10 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647518', 'tblTempVendorCDR_20' ) end [2025-03-10 05:56:17] Production.INFO: ProcessCDR(1,14647518,1,1,2) [2025-03-10 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647518', 'tblTempUsageDetail_20' ) start [2025-03-10 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647518', 'tblTempUsageDetail_20' ) end [2025-03-10 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:56:21] Production.INFO: ==6621== Releasing lock... [2025-03-10 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:57:05 [end_date_ymd] => 2025-03-10 05:57:05 [RateCDR] => 1 ) [2025-03-10 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:57:05' and `end` < '2025-03-10 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:57:17] Production.INFO: count ==96 [2025-03-10 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:57:05 - End Time 2025-03-10 05:57:05 [2025-03-10 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647523', 'tblTempUsageDetail_20' ) start [2025-03-10 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647523', 'tblTempUsageDetail_20' ) end [2025-03-10 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647523', 'tblTempVendorCDR_20' ) start [2025-03-10 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647523', 'tblTempVendorCDR_20' ) end [2025-03-10 05:57:17] Production.INFO: ProcessCDR(1,14647523,1,1,2) [2025-03-10 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647523', 'tblTempUsageDetail_20' ) start [2025-03-10 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647523', 'tblTempUsageDetail_20' ) end [2025-03-10 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:57:21] Production.INFO: ==6696== Releasing lock... [2025-03-10 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:58:06 [end_date_ymd] => 2025-03-10 05:58:06 [RateCDR] => 1 ) [2025-03-10 05:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:58:06' and `end` < '2025-03-10 05:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:58:18] Production.INFO: count ==100 [2025-03-10 05:58:18] Production.ERROR: pbx CDR StartTime 2025-03-10 02:58:06 - End Time 2025-03-10 05:58:06 [2025-03-10 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647528', 'tblTempUsageDetail_20' ) start [2025-03-10 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647528', 'tblTempUsageDetail_20' ) end [2025-03-10 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647528', 'tblTempVendorCDR_20' ) start [2025-03-10 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647528', 'tblTempVendorCDR_20' ) end [2025-03-10 05:58:18] Production.INFO: ProcessCDR(1,14647528,1,1,2) [2025-03-10 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647528', 'tblTempUsageDetail_20' ) start [2025-03-10 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647528', 'tblTempUsageDetail_20' ) end [2025-03-10 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:58:22] Production.INFO: ==6774== Releasing lock... [2025-03-10 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:58:22] Production.INFO: 29 MB #Memory Used# [2025-03-10 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 02:59:05 [end_date_ymd] => 2025-03-10 05:59:05 [RateCDR] => 1 ) [2025-03-10 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 02:59:05' and `end` < '2025-03-10 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 05:59:17] Production.INFO: count ==100 [2025-03-10 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-10 02:59:05 - End Time 2025-03-10 05:59:05 [2025-03-10 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647533', 'tblTempUsageDetail_20' ) start [2025-03-10 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647533', 'tblTempUsageDetail_20' ) end [2025-03-10 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647533', 'tblTempVendorCDR_20' ) start [2025-03-10 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647533', 'tblTempVendorCDR_20' ) end [2025-03-10 05:59:17] Production.INFO: ProcessCDR(1,14647533,1,1,2) [2025-03-10 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647533', 'tblTempUsageDetail_20' ) start [2025-03-10 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647533', 'tblTempUsageDetail_20' ) end [2025-03-10 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 05:59:20] Production.INFO: ==6848== Releasing lock... [2025-03-10 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 05:59:20] Production.INFO: 29 MB #Memory Used# [2025-03-10 06:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:00:07 [end_date_ymd] => 2025-03-10 06:00:07 [RateCDR] => 1 ) [2025-03-10 06:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:00:07' and `end` < '2025-03-10 06:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:00:19] Production.INFO: count ==87 [2025-03-10 06:00:19] Production.ERROR: pbx CDR StartTime 2025-03-10 03:00:07 - End Time 2025-03-10 06:00:07 [2025-03-10 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647539', 'tblTempUsageDetail_20' ) start [2025-03-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647539', 'tblTempUsageDetail_20' ) end [2025-03-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647539', 'tblTempVendorCDR_20' ) start [2025-03-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647539', 'tblTempVendorCDR_20' ) end [2025-03-10 06:00:19] Production.INFO: ProcessCDR(1,14647539,1,1,2) [2025-03-10 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647539', 'tblTempUsageDetail_20' ) start [2025-03-10 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647539', 'tblTempUsageDetail_20' ) end [2025-03-10 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:00:22] Production.INFO: ==6928== Releasing lock... [2025-03-10 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:00:22] Production.INFO: 29 MB #Memory Used# [2025-03-10 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:01:05 [end_date_ymd] => 2025-03-10 06:01:05 [RateCDR] => 1 ) [2025-03-10 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:01:05' and `end` < '2025-03-10 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:01:17] Production.INFO: count ==81 [2025-03-10 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:01:05 - End Time 2025-03-10 06:01:05 [2025-03-10 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647544', 'tblTempUsageDetail_20' ) start [2025-03-10 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647544', 'tblTempUsageDetail_20' ) end [2025-03-10 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647544', 'tblTempVendorCDR_20' ) start [2025-03-10 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647544', 'tblTempVendorCDR_20' ) end [2025-03-10 06:01:17] Production.INFO: ProcessCDR(1,14647544,1,1,2) [2025-03-10 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647544', 'tblTempUsageDetail_20' ) start [2025-03-10 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647544', 'tblTempUsageDetail_20' ) end [2025-03-10 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:01:20] Production.INFO: ==7021== Releasing lock... [2025-03-10 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:02:06 [end_date_ymd] => 2025-03-10 06:02:06 [RateCDR] => 1 ) [2025-03-10 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:02:06' and `end` < '2025-03-10 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:02:18] Production.INFO: count ==79 [2025-03-10 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-10 03:02:06 - End Time 2025-03-10 06:02:06 [2025-03-10 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647549', 'tblTempUsageDetail_20' ) start [2025-03-10 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647549', 'tblTempUsageDetail_20' ) end [2025-03-10 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647549', 'tblTempVendorCDR_20' ) start [2025-03-10 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647549', 'tblTempVendorCDR_20' ) end [2025-03-10 06:02:18] Production.INFO: ProcessCDR(1,14647549,1,1,2) [2025-03-10 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647549', 'tblTempUsageDetail_20' ) start [2025-03-10 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647549', 'tblTempUsageDetail_20' ) end [2025-03-10 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:02:21] Production.INFO: ==7095== Releasing lock... [2025-03-10 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:03:05 [end_date_ymd] => 2025-03-10 06:03:05 [RateCDR] => 1 ) [2025-03-10 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:03:05' and `end` < '2025-03-10 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:03:17] Production.INFO: count ==78 [2025-03-10 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:03:05 - End Time 2025-03-10 06:03:05 [2025-03-10 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647554', 'tblTempUsageDetail_20' ) start [2025-03-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647554', 'tblTempUsageDetail_20' ) end [2025-03-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647554', 'tblTempVendorCDR_20' ) start [2025-03-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647554', 'tblTempVendorCDR_20' ) end [2025-03-10 06:03:17] Production.INFO: ProcessCDR(1,14647554,1,1,2) [2025-03-10 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647554', 'tblTempUsageDetail_20' ) start [2025-03-10 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647554', 'tblTempUsageDetail_20' ) end [2025-03-10 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:03:21] Production.INFO: ==7176== Releasing lock... [2025-03-10 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:04:06 [end_date_ymd] => 2025-03-10 06:04:06 [RateCDR] => 1 ) [2025-03-10 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:04:06' and `end` < '2025-03-10 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:04:18] Production.INFO: count ==78 [2025-03-10 06:04:18] Production.ERROR: pbx CDR StartTime 2025-03-10 03:04:06 - End Time 2025-03-10 06:04:06 [2025-03-10 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647559', 'tblTempUsageDetail_20' ) start [2025-03-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647559', 'tblTempUsageDetail_20' ) end [2025-03-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647559', 'tblTempVendorCDR_20' ) start [2025-03-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647559', 'tblTempVendorCDR_20' ) end [2025-03-10 06:04:18] Production.INFO: ProcessCDR(1,14647559,1,1,2) [2025-03-10 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647559', 'tblTempUsageDetail_20' ) start [2025-03-10 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647559', 'tblTempUsageDetail_20' ) end [2025-03-10 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:04:21] Production.INFO: ==7294== Releasing lock... [2025-03-10 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:05:05 [end_date_ymd] => 2025-03-10 06:05:05 [RateCDR] => 1 ) [2025-03-10 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:05:05' and `end` < '2025-03-10 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:05:17] Production.INFO: count ==78 [2025-03-10 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:05:05 - End Time 2025-03-10 06:05:05 [2025-03-10 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647564', 'tblTempUsageDetail_20' ) start [2025-03-10 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647564', 'tblTempUsageDetail_20' ) end [2025-03-10 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647564', 'tblTempVendorCDR_20' ) start [2025-03-10 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647564', 'tblTempVendorCDR_20' ) end [2025-03-10 06:05:17] Production.INFO: ProcessCDR(1,14647564,1,1,2) [2025-03-10 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647564', 'tblTempUsageDetail_20' ) start [2025-03-10 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647564', 'tblTempUsageDetail_20' ) end [2025-03-10 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:05:20] Production.INFO: ==7371== Releasing lock... [2025-03-10 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:05:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:06:05 [end_date_ymd] => 2025-03-10 06:06:05 [RateCDR] => 1 ) [2025-03-10 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:06:05' and `end` < '2025-03-10 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:06:17] Production.INFO: count ==78 [2025-03-10 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:06:05 - End Time 2025-03-10 06:06:05 [2025-03-10 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647569', 'tblTempUsageDetail_20' ) start [2025-03-10 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647569', 'tblTempUsageDetail_20' ) end [2025-03-10 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647569', 'tblTempVendorCDR_20' ) start [2025-03-10 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647569', 'tblTempVendorCDR_20' ) end [2025-03-10 06:06:17] Production.INFO: ProcessCDR(1,14647569,1,1,2) [2025-03-10 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647569', 'tblTempUsageDetail_20' ) start [2025-03-10 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647569', 'tblTempUsageDetail_20' ) end [2025-03-10 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:06:20] Production.INFO: ==7451== Releasing lock... [2025-03-10 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:06:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:07:04 [end_date_ymd] => 2025-03-10 06:07:04 [RateCDR] => 1 ) [2025-03-10 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:07:04' and `end` < '2025-03-10 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:07:16] Production.INFO: count ==78 [2025-03-10 06:07:16] Production.ERROR: pbx CDR StartTime 2025-03-10 03:07:04 - End Time 2025-03-10 06:07:04 [2025-03-10 06:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647574', 'tblTempUsageDetail_20' ) start [2025-03-10 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647574', 'tblTempUsageDetail_20' ) end [2025-03-10 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647574', 'tblTempVendorCDR_20' ) start [2025-03-10 06:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647574', 'tblTempVendorCDR_20' ) end [2025-03-10 06:07:16] Production.INFO: ProcessCDR(1,14647574,1,1,2) [2025-03-10 06:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647574', 'tblTempUsageDetail_20' ) start [2025-03-10 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647574', 'tblTempUsageDetail_20' ) end [2025-03-10 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:07:20] Production.INFO: ==7528== Releasing lock... [2025-03-10 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:08:05 [end_date_ymd] => 2025-03-10 06:08:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:08:05' and `end` < '2025-03-10 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-03-10 06:08:17] Production.INFO: count ==78 [2025-03-10 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:08:05 - End Time 2025-03-10 06:08:05 [2025-03-10 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647579', 'tblTempUsageDetail_20' ) start [2025-03-10 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647579', 'tblTempUsageDetail_20' ) end [2025-03-10 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647579', 'tblTempVendorCDR_20' ) start [2025-03-10 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647579', 'tblTempVendorCDR_20' ) end [2025-03-10 06:08:18] Production.INFO: ProcessCDR(1,14647579,1,1,2) [2025-03-10 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647579', 'tblTempUsageDetail_20' ) start [2025-03-10 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647579', 'tblTempUsageDetail_20' ) end [2025-03-10 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:08:20] Production.INFO: ==7606== Releasing lock... [2025-03-10 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:08:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:09:05 [end_date_ymd] => 2025-03-10 06:09:05 [RateCDR] => 1 ) [2025-03-10 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:09:05' and `end` < '2025-03-10 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:09:17] Production.INFO: count ==78 [2025-03-10 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:09:05 - End Time 2025-03-10 06:09:05 [2025-03-10 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647584', 'tblTempUsageDetail_20' ) start [2025-03-10 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647584', 'tblTempUsageDetail_20' ) end [2025-03-10 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647584', 'tblTempVendorCDR_20' ) start [2025-03-10 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647584', 'tblTempVendorCDR_20' ) end [2025-03-10 06:09:17] Production.INFO: ProcessCDR(1,14647584,1,1,2) [2025-03-10 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647584', 'tblTempUsageDetail_20' ) start [2025-03-10 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647584', 'tblTempUsageDetail_20' ) end [2025-03-10 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:09:20] Production.INFO: ==7679== Releasing lock... [2025-03-10 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:09:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:10:05 [end_date_ymd] => 2025-03-10 06:10:05 [RateCDR] => 1 ) [2025-03-10 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:10:05' and `end` < '2025-03-10 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:10:17] Production.INFO: count ==78 [2025-03-10 06:10:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:10:05 - End Time 2025-03-10 06:10:05 [2025-03-10 06:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647590', 'tblTempUsageDetail_20' ) start [2025-03-10 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647590', 'tblTempUsageDetail_20' ) end [2025-03-10 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647590', 'tblTempVendorCDR_20' ) start [2025-03-10 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647590', 'tblTempVendorCDR_20' ) end [2025-03-10 06:10:18] Production.INFO: ProcessCDR(1,14647590,1,1,2) [2025-03-10 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647590', 'tblTempUsageDetail_20' ) start [2025-03-10 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647590', 'tblTempUsageDetail_20' ) end [2025-03-10 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:10:21] Production.INFO: ==7764== Releasing lock... [2025-03-10 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:11:06 [end_date_ymd] => 2025-03-10 06:11:06 [RateCDR] => 1 ) [2025-03-10 06:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:11:06' and `end` < '2025-03-10 06:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:11:18] Production.INFO: count ==78 [2025-03-10 06:11:18] Production.ERROR: pbx CDR StartTime 2025-03-10 03:11:06 - End Time 2025-03-10 06:11:06 [2025-03-10 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647595', 'tblTempUsageDetail_20' ) start [2025-03-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647595', 'tblTempUsageDetail_20' ) end [2025-03-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647595', 'tblTempVendorCDR_20' ) start [2025-03-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647595', 'tblTempVendorCDR_20' ) end [2025-03-10 06:11:18] Production.INFO: ProcessCDR(1,14647595,1,1,2) [2025-03-10 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647595', 'tblTempUsageDetail_20' ) start [2025-03-10 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647595', 'tblTempUsageDetail_20' ) end [2025-03-10 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:11:21] Production.INFO: ==7880== Releasing lock... [2025-03-10 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:12:05 [end_date_ymd] => 2025-03-10 06:12:05 [RateCDR] => 1 ) [2025-03-10 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:12:05' and `end` < '2025-03-10 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:12:17] Production.INFO: count ==74 [2025-03-10 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:12:05 - End Time 2025-03-10 06:12:05 [2025-03-10 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647600', 'tblTempUsageDetail_20' ) start [2025-03-10 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647600', 'tblTempUsageDetail_20' ) end [2025-03-10 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647600', 'tblTempVendorCDR_20' ) start [2025-03-10 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647600', 'tblTempVendorCDR_20' ) end [2025-03-10 06:12:17] Production.INFO: ProcessCDR(1,14647600,1,1,2) [2025-03-10 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647600', 'tblTempUsageDetail_20' ) start [2025-03-10 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647600', 'tblTempUsageDetail_20' ) end [2025-03-10 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:12:20] Production.INFO: ==7998== Releasing lock... [2025-03-10 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:12:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:13:06 [end_date_ymd] => 2025-03-10 06:13:06 [RateCDR] => 1 ) [2025-03-10 06:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:13:06' and `end` < '2025-03-10 06:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:13:18] Production.INFO: count ==74 [2025-03-10 06:13:18] Production.ERROR: pbx CDR StartTime 2025-03-10 03:13:06 - End Time 2025-03-10 06:13:06 [2025-03-10 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647605', 'tblTempUsageDetail_20' ) start [2025-03-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647605', 'tblTempUsageDetail_20' ) end [2025-03-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647605', 'tblTempVendorCDR_20' ) start [2025-03-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647605', 'tblTempVendorCDR_20' ) end [2025-03-10 06:13:18] Production.INFO: ProcessCDR(1,14647605,1,1,2) [2025-03-10 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647605', 'tblTempUsageDetail_20' ) start [2025-03-10 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647605', 'tblTempUsageDetail_20' ) end [2025-03-10 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:13:21] Production.INFO: ==8112== Releasing lock... [2025-03-10 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:14:05 [end_date_ymd] => 2025-03-10 06:14:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:14:05' and `end` < '2025-03-10 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-03-10 06:14:17] Production.INFO: count ==74 [2025-03-10 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:14:05 - End Time 2025-03-10 06:14:05 [2025-03-10 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647610', 'tblTempUsageDetail_20' ) start [2025-03-10 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647610', 'tblTempUsageDetail_20' ) end [2025-03-10 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647610', 'tblTempVendorCDR_20' ) start [2025-03-10 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647610', 'tblTempVendorCDR_20' ) end [2025-03-10 06:14:17] Production.INFO: ProcessCDR(1,14647610,1,1,2) [2025-03-10 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647610', 'tblTempUsageDetail_20' ) start [2025-03-10 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647610', 'tblTempUsageDetail_20' ) end [2025-03-10 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:14:20] Production.INFO: ==8225== Releasing lock... [2025-03-10 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:14:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:15:05 [end_date_ymd] => 2025-03-10 06:15:05 [RateCDR] => 1 ) [2025-03-10 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:15:05' and `end` < '2025-03-10 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:15:17] Production.INFO: count ==73 [2025-03-10 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:15:05 - End Time 2025-03-10 06:15:05 [2025-03-10 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647615', 'tblTempUsageDetail_20' ) start [2025-03-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647615', 'tblTempUsageDetail_20' ) end [2025-03-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647615', 'tblTempVendorCDR_20' ) start [2025-03-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647615', 'tblTempVendorCDR_20' ) end [2025-03-10 06:15:17] Production.INFO: ProcessCDR(1,14647615,1,1,2) [2025-03-10 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647615', 'tblTempUsageDetail_20' ) start [2025-03-10 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647615', 'tblTempUsageDetail_20' ) end [2025-03-10 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:15:21] Production.INFO: ==8340== Releasing lock... [2025-03-10 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:16:05 [end_date_ymd] => 2025-03-10 06:16:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:16:05' and `end` < '2025-03-10 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-03-10 06:16:17] Production.INFO: count ==75 [2025-03-10 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:16:05 - End Time 2025-03-10 06:16:05 [2025-03-10 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647620', 'tblTempUsageDetail_20' ) start [2025-03-10 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647620', 'tblTempUsageDetail_20' ) end [2025-03-10 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647620', 'tblTempVendorCDR_20' ) start [2025-03-10 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647620', 'tblTempVendorCDR_20' ) end [2025-03-10 06:16:17] Production.INFO: ProcessCDR(1,14647620,1,1,2) [2025-03-10 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647620', 'tblTempUsageDetail_20' ) start [2025-03-10 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647620', 'tblTempUsageDetail_20' ) end [2025-03-10 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:16:20] Production.INFO: ==8450== Releasing lock... [2025-03-10 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:16:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:17:05 [end_date_ymd] => 2025-03-10 06:17:05 [RateCDR] => 1 ) [2025-03-10 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:17:05' and `end` < '2025-03-10 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:17:17] Production.INFO: count ==78 [2025-03-10 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:17:05 - End Time 2025-03-10 06:17:05 [2025-03-10 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647625', 'tblTempUsageDetail_20' ) start [2025-03-10 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647625', 'tblTempUsageDetail_20' ) end [2025-03-10 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647625', 'tblTempVendorCDR_20' ) start [2025-03-10 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647625', 'tblTempVendorCDR_20' ) end [2025-03-10 06:17:17] Production.INFO: ProcessCDR(1,14647625,1,1,2) [2025-03-10 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647625', 'tblTempUsageDetail_20' ) start [2025-03-10 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647625', 'tblTempUsageDetail_20' ) end [2025-03-10 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:17:20] Production.INFO: ==8565== Releasing lock... [2025-03-10 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:18:05 [end_date_ymd] => 2025-03-10 06:18:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:18:05' and `end` < '2025-03-10 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-03-10 06:18:17] Production.INFO: count ==78 [2025-03-10 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:18:05 - End Time 2025-03-10 06:18:05 [2025-03-10 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647630', 'tblTempUsageDetail_20' ) start [2025-03-10 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647630', 'tblTempUsageDetail_20' ) end [2025-03-10 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647630', 'tblTempVendorCDR_20' ) start [2025-03-10 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647630', 'tblTempVendorCDR_20' ) end [2025-03-10 06:18:17] Production.INFO: ProcessCDR(1,14647630,1,1,2) [2025-03-10 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647630', 'tblTempUsageDetail_20' ) start [2025-03-10 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647630', 'tblTempUsageDetail_20' ) end [2025-03-10 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:18:20] Production.INFO: ==8676== Releasing lock... [2025-03-10 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:18:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:19:05 [end_date_ymd] => 2025-03-10 06:19:05 [RateCDR] => 1 ) [2025-03-10 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:19:05' and `end` < '2025-03-10 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-03-10 06:19:17] Production.INFO: count ==78 [2025-03-10 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:19:05 - End Time 2025-03-10 06:19:05 [2025-03-10 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647635', 'tblTempUsageDetail_20' ) start [2025-03-10 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647635', 'tblTempUsageDetail_20' ) end [2025-03-10 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647635', 'tblTempVendorCDR_20' ) start [2025-03-10 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647635', 'tblTempVendorCDR_20' ) end [2025-03-10 06:19:17] Production.INFO: ProcessCDR(1,14647635,1,1,2) [2025-03-10 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647635', 'tblTempUsageDetail_20' ) start [2025-03-10 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647635', 'tblTempUsageDetail_20' ) end [2025-03-10 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:19:20] Production.INFO: ==8792== Releasing lock... [2025-03-10 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:20:05 [end_date_ymd] => 2025-03-10 06:20:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:20:05' and `end` < '2025-03-10 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-03-10 06:20:17] Production.INFO: count ==78 [2025-03-10 06:20:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:20:05 - End Time 2025-03-10 06:20:05 [2025-03-10 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647641', 'tblTempUsageDetail_20' ) start [2025-03-10 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647641', 'tblTempUsageDetail_20' ) end [2025-03-10 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647641', 'tblTempVendorCDR_20' ) start [2025-03-10 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647641', 'tblTempVendorCDR_20' ) end [2025-03-10 06:20:17] Production.INFO: ProcessCDR(1,14647641,1,1,2) [2025-03-10 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647641', 'tblTempUsageDetail_20' ) start [2025-03-10 06:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647641', 'tblTempUsageDetail_20' ) end [2025-03-10 06:20:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:20:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:20:20] Production.INFO: ==8945== Releasing lock... [2025-03-10 06:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:20:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:21:05 [end_date_ymd] => 2025-03-10 06:21:05 [RateCDR] => 1 ) [2025-03-10 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:21:05' and `end` < '2025-03-10 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:21:17] Production.INFO: count ==77 [2025-03-10 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:21:05 - End Time 2025-03-10 06:21:05 [2025-03-10 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647646', 'tblTempUsageDetail_20' ) start [2025-03-10 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647646', 'tblTempUsageDetail_20' ) end [2025-03-10 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647646', 'tblTempVendorCDR_20' ) start [2025-03-10 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647646', 'tblTempVendorCDR_20' ) end [2025-03-10 06:21:17] Production.INFO: ProcessCDR(1,14647646,1,1,2) [2025-03-10 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647646', 'tblTempUsageDetail_20' ) start [2025-03-10 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647646', 'tblTempUsageDetail_20' ) end [2025-03-10 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:21:20] Production.INFO: ==9057== Releasing lock... [2025-03-10 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:22:05 [end_date_ymd] => 2025-03-10 06:22:05 [RateCDR] => 1 ) [2025-03-10 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:22:05' and `end` < '2025-03-10 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:22:17] Production.INFO: count ==77 [2025-03-10 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:22:05 - End Time 2025-03-10 06:22:05 [2025-03-10 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647651', 'tblTempUsageDetail_20' ) start [2025-03-10 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647651', 'tblTempUsageDetail_20' ) end [2025-03-10 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647651', 'tblTempVendorCDR_20' ) start [2025-03-10 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647651', 'tblTempVendorCDR_20' ) end [2025-03-10 06:22:17] Production.INFO: ProcessCDR(1,14647651,1,1,2) [2025-03-10 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647651', 'tblTempUsageDetail_20' ) start [2025-03-10 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647651', 'tblTempUsageDetail_20' ) end [2025-03-10 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:22:20] Production.INFO: ==9171== Releasing lock... [2025-03-10 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:22:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:23:05 [end_date_ymd] => 2025-03-10 06:23:05 [RateCDR] => 1 ) [2025-03-10 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:23:05' and `end` < '2025-03-10 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:23:17] Production.INFO: count ==76 [2025-03-10 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:23:05 - End Time 2025-03-10 06:23:05 [2025-03-10 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647656', 'tblTempUsageDetail_20' ) start [2025-03-10 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647656', 'tblTempUsageDetail_20' ) end [2025-03-10 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647656', 'tblTempVendorCDR_20' ) start [2025-03-10 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647656', 'tblTempVendorCDR_20' ) end [2025-03-10 06:23:17] Production.INFO: ProcessCDR(1,14647656,1,1,2) [2025-03-10 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647656', 'tblTempUsageDetail_20' ) start [2025-03-10 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647656', 'tblTempUsageDetail_20' ) end [2025-03-10 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:23:20] Production.INFO: ==9266== Releasing lock... [2025-03-10 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:24:05 [end_date_ymd] => 2025-03-10 06:24:05 [RateCDR] => 1 ) [2025-03-10 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:24:05' and `end` < '2025-03-10 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:24:17] Production.INFO: count ==76 [2025-03-10 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:24:05 - End Time 2025-03-10 06:24:05 [2025-03-10 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647661', 'tblTempUsageDetail_20' ) start [2025-03-10 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647661', 'tblTempUsageDetail_20' ) end [2025-03-10 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647661', 'tblTempVendorCDR_20' ) start [2025-03-10 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647661', 'tblTempVendorCDR_20' ) end [2025-03-10 06:24:17] Production.INFO: ProcessCDR(1,14647661,1,1,2) [2025-03-10 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647661', 'tblTempUsageDetail_20' ) start [2025-03-10 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647661', 'tblTempUsageDetail_20' ) end [2025-03-10 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:24:21] Production.INFO: ==9344== Releasing lock... [2025-03-10 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:25:05 [end_date_ymd] => 2025-03-10 06:25:05 [RateCDR] => 1 ) [2025-03-10 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:25:05' and `end` < '2025-03-10 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:25:17] Production.INFO: count ==76 [2025-03-10 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:25:05 - End Time 2025-03-10 06:25:05 [2025-03-10 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647666', 'tblTempUsageDetail_20' ) start [2025-03-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647666', 'tblTempUsageDetail_20' ) end [2025-03-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647666', 'tblTempVendorCDR_20' ) start [2025-03-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647666', 'tblTempVendorCDR_20' ) end [2025-03-10 06:25:17] Production.INFO: ProcessCDR(1,14647666,1,1,2) [2025-03-10 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647666', 'tblTempUsageDetail_20' ) start [2025-03-10 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647666', 'tblTempUsageDetail_20' ) end [2025-03-10 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:25:20] Production.INFO: ==9419== Releasing lock... [2025-03-10 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:25:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:26:06 [end_date_ymd] => 2025-03-10 06:26:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:26:06' and `end` < '2025-03-10 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-03-10 06:26:18] Production.INFO: count ==76 [2025-03-10 06:26:18] Production.ERROR: pbx CDR StartTime 2025-03-10 03:26:06 - End Time 2025-03-10 06:26:06 [2025-03-10 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647671', 'tblTempUsageDetail_20' ) start [2025-03-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647671', 'tblTempUsageDetail_20' ) end [2025-03-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647671', 'tblTempVendorCDR_20' ) start [2025-03-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647671', 'tblTempVendorCDR_20' ) end [2025-03-10 06:26:18] Production.INFO: ProcessCDR(1,14647671,1,1,2) [2025-03-10 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647671', 'tblTempUsageDetail_20' ) start [2025-03-10 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647671', 'tblTempUsageDetail_20' ) end [2025-03-10 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:26:21] Production.INFO: ==9491== Releasing lock... [2025-03-10 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:27:05 [end_date_ymd] => 2025-03-10 06:27:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:27:05' and `end` < '2025-03-10 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-03-10 06:27:17] Production.INFO: count ==76 [2025-03-10 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:27:05 - End Time 2025-03-10 06:27:05 [2025-03-10 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647676', 'tblTempUsageDetail_20' ) start [2025-03-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647676', 'tblTempUsageDetail_20' ) end [2025-03-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647676', 'tblTempVendorCDR_20' ) start [2025-03-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647676', 'tblTempVendorCDR_20' ) end [2025-03-10 06:27:17] Production.INFO: ProcessCDR(1,14647676,1,1,2) [2025-03-10 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647676', 'tblTempUsageDetail_20' ) start [2025-03-10 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647676', 'tblTempUsageDetail_20' ) end [2025-03-10 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:27:20] Production.INFO: ==9564== Releasing lock... [2025-03-10 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:27:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:28:05 [end_date_ymd] => 2025-03-10 06:28:05 [RateCDR] => 1 ) [2025-03-10 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:28:05' and `end` < '2025-03-10 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:28:17] Production.INFO: count ==78 [2025-03-10 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:28:05 - End Time 2025-03-10 06:28:05 [2025-03-10 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647681', 'tblTempUsageDetail_20' ) start [2025-03-10 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647681', 'tblTempUsageDetail_20' ) end [2025-03-10 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647681', 'tblTempVendorCDR_20' ) start [2025-03-10 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647681', 'tblTempVendorCDR_20' ) end [2025-03-10 06:28:17] Production.INFO: ProcessCDR(1,14647681,1,1,2) [2025-03-10 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647681', 'tblTempUsageDetail_20' ) start [2025-03-10 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647681', 'tblTempUsageDetail_20' ) end [2025-03-10 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:28:21] Production.INFO: ==9637== Releasing lock... [2025-03-10 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:29:04 [end_date_ymd] => 2025-03-10 06:29:04 [RateCDR] => 1 ) [2025-03-10 06: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-03-10 03:29:04' and `end` < '2025-03-10 06: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-03-10 06:29:16] Production.INFO: count ==78 [2025-03-10 06:29:16] Production.ERROR: pbx CDR StartTime 2025-03-10 03:29:04 - End Time 2025-03-10 06:29:04 [2025-03-10 06:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647686', 'tblTempUsageDetail_20' ) start [2025-03-10 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647686', 'tblTempUsageDetail_20' ) end [2025-03-10 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647686', 'tblTempVendorCDR_20' ) start [2025-03-10 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647686', 'tblTempVendorCDR_20' ) end [2025-03-10 06:29:16] Production.INFO: ProcessCDR(1,14647686,1,1,2) [2025-03-10 06:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647686', 'tblTempUsageDetail_20' ) start [2025-03-10 06:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647686', 'tblTempUsageDetail_20' ) end [2025-03-10 06:29:19] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:29:19] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:29:19] Production.INFO: ==9710== Releasing lock... [2025-03-10 06:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:29:19] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:30:06 [end_date_ymd] => 2025-03-10 06:30:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:30:06' and `end` < '2025-03-10 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-03-10 06:30:18] Production.INFO: count ==80 [2025-03-10 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-10 03:30:06 - End Time 2025-03-10 06:30:06 [2025-03-10 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647692', 'tblTempUsageDetail_20' ) start [2025-03-10 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647692', 'tblTempUsageDetail_20' ) end [2025-03-10 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647692', 'tblTempVendorCDR_20' ) start [2025-03-10 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647692', 'tblTempVendorCDR_20' ) end [2025-03-10 06:30:18] Production.INFO: ProcessCDR(1,14647692,1,1,2) [2025-03-10 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647692', 'tblTempUsageDetail_20' ) start [2025-03-10 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647692', 'tblTempUsageDetail_20' ) end [2025-03-10 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:30:21] Production.INFO: ==9793== Releasing lock... [2025-03-10 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:31:05 [end_date_ymd] => 2025-03-10 06:31:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:31:05' and `end` < '2025-03-10 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-03-10 06:31:17] Production.INFO: count ==80 [2025-03-10 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:31:05 - End Time 2025-03-10 06:31:05 [2025-03-10 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647697', 'tblTempUsageDetail_20' ) start [2025-03-10 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647697', 'tblTempUsageDetail_20' ) end [2025-03-10 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647697', 'tblTempVendorCDR_20' ) start [2025-03-10 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647697', 'tblTempVendorCDR_20' ) end [2025-03-10 06:31:17] Production.INFO: ProcessCDR(1,14647697,1,1,2) [2025-03-10 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647697', 'tblTempUsageDetail_20' ) start [2025-03-10 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647697', 'tblTempUsageDetail_20' ) end [2025-03-10 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:31:20] Production.INFO: ==9869== Releasing lock... [2025-03-10 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:31:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:32:05 [end_date_ymd] => 2025-03-10 06:32:05 [RateCDR] => 1 ) [2025-03-10 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:32:05' and `end` < '2025-03-10 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:32:17] Production.INFO: count ==80 [2025-03-10 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:32:05 - End Time 2025-03-10 06:32:05 [2025-03-10 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647702', 'tblTempUsageDetail_20' ) start [2025-03-10 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647702', 'tblTempUsageDetail_20' ) end [2025-03-10 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647702', 'tblTempVendorCDR_20' ) start [2025-03-10 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647702', 'tblTempVendorCDR_20' ) end [2025-03-10 06:32:17] Production.INFO: ProcessCDR(1,14647702,1,1,2) [2025-03-10 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647702', 'tblTempUsageDetail_20' ) start [2025-03-10 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647702', 'tblTempUsageDetail_20' ) end [2025-03-10 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:32:20] Production.INFO: ==9944== Releasing lock... [2025-03-10 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:32:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:33:05 [end_date_ymd] => 2025-03-10 06:33:05 [RateCDR] => 1 ) [2025-03-10 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:33:05' and `end` < '2025-03-10 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:33:17] Production.INFO: count ==80 [2025-03-10 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:33:05 - End Time 2025-03-10 06:33:05 [2025-03-10 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647707', 'tblTempUsageDetail_20' ) start [2025-03-10 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647707', 'tblTempUsageDetail_20' ) end [2025-03-10 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647707', 'tblTempVendorCDR_20' ) start [2025-03-10 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647707', 'tblTempVendorCDR_20' ) end [2025-03-10 06:33:17] Production.INFO: ProcessCDR(1,14647707,1,1,2) [2025-03-10 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647707', 'tblTempUsageDetail_20' ) start [2025-03-10 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647707', 'tblTempUsageDetail_20' ) end [2025-03-10 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:33:20] Production.INFO: ==10016== Releasing lock... [2025-03-10 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:33:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:34:05 [end_date_ymd] => 2025-03-10 06:34:05 [RateCDR] => 1 ) [2025-03-10 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:34:05' and `end` < '2025-03-10 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:34:17] Production.INFO: count ==80 [2025-03-10 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:34:05 - End Time 2025-03-10 06:34:05 [2025-03-10 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647712', 'tblTempUsageDetail_20' ) start [2025-03-10 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647712', 'tblTempUsageDetail_20' ) end [2025-03-10 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647712', 'tblTempVendorCDR_20' ) start [2025-03-10 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647712', 'tblTempVendorCDR_20' ) end [2025-03-10 06:34:17] Production.INFO: ProcessCDR(1,14647712,1,1,2) [2025-03-10 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647712', 'tblTempUsageDetail_20' ) start [2025-03-10 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647712', 'tblTempUsageDetail_20' ) end [2025-03-10 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:34:20] Production.INFO: ==10087== Releasing lock... [2025-03-10 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:34:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:35:05 [end_date_ymd] => 2025-03-10 06:35:05 [RateCDR] => 1 ) [2025-03-10 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:35:05' and `end` < '2025-03-10 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:35:17] Production.INFO: count ==83 [2025-03-10 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:35:05 - End Time 2025-03-10 06:35:05 [2025-03-10 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647717', 'tblTempUsageDetail_20' ) start [2025-03-10 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647717', 'tblTempUsageDetail_20' ) end [2025-03-10 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647717', 'tblTempVendorCDR_20' ) start [2025-03-10 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647717', 'tblTempVendorCDR_20' ) end [2025-03-10 06:35:17] Production.INFO: ProcessCDR(1,14647717,1,1,2) [2025-03-10 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647717', 'tblTempUsageDetail_20' ) start [2025-03-10 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647717', 'tblTempUsageDetail_20' ) end [2025-03-10 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:35:20] Production.INFO: ==10200== Releasing lock... [2025-03-10 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:36:05 [end_date_ymd] => 2025-03-10 06:36:05 [RateCDR] => 1 ) [2025-03-10 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:36:05' and `end` < '2025-03-10 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:36:17] Production.INFO: count ==83 [2025-03-10 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:36:05 - End Time 2025-03-10 06:36:05 [2025-03-10 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647722', 'tblTempUsageDetail_20' ) start [2025-03-10 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647722', 'tblTempUsageDetail_20' ) end [2025-03-10 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647722', 'tblTempVendorCDR_20' ) start [2025-03-10 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647722', 'tblTempVendorCDR_20' ) end [2025-03-10 06:36:17] Production.INFO: ProcessCDR(1,14647722,1,1,2) [2025-03-10 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647722', 'tblTempUsageDetail_20' ) start [2025-03-10 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647722', 'tblTempUsageDetail_20' ) end [2025-03-10 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:36:20] Production.INFO: ==10271== Releasing lock... [2025-03-10 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:36:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:37:05 [end_date_ymd] => 2025-03-10 06:37:05 [RateCDR] => 1 ) [2025-03-10 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:37:05' and `end` < '2025-03-10 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:37:17] Production.INFO: count ==83 [2025-03-10 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:37:05 - End Time 2025-03-10 06:37:05 [2025-03-10 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647727', 'tblTempUsageDetail_20' ) start [2025-03-10 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647727', 'tblTempUsageDetail_20' ) end [2025-03-10 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647727', 'tblTempVendorCDR_20' ) start [2025-03-10 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647727', 'tblTempVendorCDR_20' ) end [2025-03-10 06:37:17] Production.INFO: ProcessCDR(1,14647727,1,1,2) [2025-03-10 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647727', 'tblTempUsageDetail_20' ) start [2025-03-10 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647727', 'tblTempUsageDetail_20' ) end [2025-03-10 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:37:20] Production.INFO: ==10343== Releasing lock... [2025-03-10 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:37:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:38:05 [end_date_ymd] => 2025-03-10 06:38:05 [RateCDR] => 1 ) [2025-03-10 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:38:05' and `end` < '2025-03-10 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:38:17] Production.INFO: count ==83 [2025-03-10 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:38:05 - End Time 2025-03-10 06:38:05 [2025-03-10 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647732', 'tblTempUsageDetail_20' ) start [2025-03-10 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647732', 'tblTempUsageDetail_20' ) end [2025-03-10 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647732', 'tblTempVendorCDR_20' ) start [2025-03-10 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647732', 'tblTempVendorCDR_20' ) end [2025-03-10 06:38:17] Production.INFO: ProcessCDR(1,14647732,1,1,2) [2025-03-10 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647732', 'tblTempUsageDetail_20' ) start [2025-03-10 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647732', 'tblTempUsageDetail_20' ) end [2025-03-10 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:38:20] Production.INFO: ==10416== Releasing lock... [2025-03-10 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:38:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:39:05 [end_date_ymd] => 2025-03-10 06:39:05 [RateCDR] => 1 ) [2025-03-10 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:39:05' and `end` < '2025-03-10 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:39:16] Production.INFO: count ==83 [2025-03-10 06:39:16] Production.ERROR: pbx CDR StartTime 2025-03-10 03:39:05 - End Time 2025-03-10 06:39:05 [2025-03-10 06:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647737', 'tblTempUsageDetail_20' ) start [2025-03-10 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647737', 'tblTempUsageDetail_20' ) end [2025-03-10 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647737', 'tblTempVendorCDR_20' ) start [2025-03-10 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647737', 'tblTempVendorCDR_20' ) end [2025-03-10 06:39:16] Production.INFO: ProcessCDR(1,14647737,1,1,2) [2025-03-10 06:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647737', 'tblTempUsageDetail_20' ) start [2025-03-10 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647737', 'tblTempUsageDetail_20' ) end [2025-03-10 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:39:20] Production.INFO: ==10490== Releasing lock... [2025-03-10 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:39:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:40:06 [end_date_ymd] => 2025-03-10 06:40:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:40:06' and `end` < '2025-03-10 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-03-10 06:40:18] Production.INFO: count ==83 [2025-03-10 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-10 03:40:06 - End Time 2025-03-10 06:40:06 [2025-03-10 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647743', 'tblTempUsageDetail_20' ) start [2025-03-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647743', 'tblTempUsageDetail_20' ) end [2025-03-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647743', 'tblTempVendorCDR_20' ) start [2025-03-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647743', 'tblTempVendorCDR_20' ) end [2025-03-10 06:40:18] Production.INFO: ProcessCDR(1,14647743,1,1,2) [2025-03-10 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647743', 'tblTempUsageDetail_20' ) start [2025-03-10 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647743', 'tblTempUsageDetail_20' ) end [2025-03-10 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:40:21] Production.INFO: ==10567== Releasing lock... [2025-03-10 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:41:05 [end_date_ymd] => 2025-03-10 06:41:05 [RateCDR] => 1 ) [2025-03-10 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:41:05' and `end` < '2025-03-10 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:41:17] Production.INFO: count ==83 [2025-03-10 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:41:05 - End Time 2025-03-10 06:41:05 [2025-03-10 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647748', 'tblTempUsageDetail_20' ) start [2025-03-10 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647748', 'tblTempUsageDetail_20' ) end [2025-03-10 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647748', 'tblTempVendorCDR_20' ) start [2025-03-10 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647748', 'tblTempVendorCDR_20' ) end [2025-03-10 06:41:17] Production.INFO: ProcessCDR(1,14647748,1,1,2) [2025-03-10 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647748', 'tblTempUsageDetail_20' ) start [2025-03-10 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647748', 'tblTempUsageDetail_20' ) end [2025-03-10 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:41:20] Production.INFO: ==10641== Releasing lock... [2025-03-10 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:42:05 [end_date_ymd] => 2025-03-10 06:42:05 [RateCDR] => 1 ) [2025-03-10 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:42:05' and `end` < '2025-03-10 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:42:17] Production.INFO: count ==83 [2025-03-10 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:42:05 - End Time 2025-03-10 06:42:05 [2025-03-10 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647753', 'tblTempUsageDetail_20' ) start [2025-03-10 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647753', 'tblTempUsageDetail_20' ) end [2025-03-10 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647753', 'tblTempVendorCDR_20' ) start [2025-03-10 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647753', 'tblTempVendorCDR_20' ) end [2025-03-10 06:42:17] Production.INFO: ProcessCDR(1,14647753,1,1,2) [2025-03-10 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647753', 'tblTempUsageDetail_20' ) start [2025-03-10 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647753', 'tblTempUsageDetail_20' ) end [2025-03-10 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:42:21] Production.INFO: ==10712== Releasing lock... [2025-03-10 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:43:04 [end_date_ymd] => 2025-03-10 06:43:04 [RateCDR] => 1 ) [2025-03-10 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:43:04' and `end` < '2025-03-10 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:43:16] Production.INFO: count ==83 [2025-03-10 06:43:16] Production.ERROR: pbx CDR StartTime 2025-03-10 03:43:04 - End Time 2025-03-10 06:43:04 [2025-03-10 06:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647758', 'tblTempUsageDetail_20' ) start [2025-03-10 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647758', 'tblTempUsageDetail_20' ) end [2025-03-10 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647758', 'tblTempVendorCDR_20' ) start [2025-03-10 06:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647758', 'tblTempVendorCDR_20' ) end [2025-03-10 06:43:16] Production.INFO: ProcessCDR(1,14647758,1,1,2) [2025-03-10 06:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647758', 'tblTempUsageDetail_20' ) start [2025-03-10 06:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647758', 'tblTempUsageDetail_20' ) end [2025-03-10 06:43:19] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:43:19] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:43:19] Production.INFO: ==10784== Releasing lock... [2025-03-10 06:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:43:19] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:44:05 [end_date_ymd] => 2025-03-10 06:44:05 [RateCDR] => 1 ) [2025-03-10 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:44:05' and `end` < '2025-03-10 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:44:17] Production.INFO: count ==83 [2025-03-10 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:44:05 - End Time 2025-03-10 06:44:05 [2025-03-10 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647763', 'tblTempUsageDetail_20' ) start [2025-03-10 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647763', 'tblTempUsageDetail_20' ) end [2025-03-10 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647763', 'tblTempVendorCDR_20' ) start [2025-03-10 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647763', 'tblTempVendorCDR_20' ) end [2025-03-10 06:44:17] Production.INFO: ProcessCDR(1,14647763,1,1,2) [2025-03-10 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647763', 'tblTempUsageDetail_20' ) start [2025-03-10 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647763', 'tblTempUsageDetail_20' ) end [2025-03-10 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:44:21] Production.INFO: ==10863== Releasing lock... [2025-03-10 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:45:04 [end_date_ymd] => 2025-03-10 06:45:04 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:45:04' and `end` < '2025-03-10 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-03-10 06:45:16] Production.INFO: count ==83 [2025-03-10 06:45:16] Production.ERROR: pbx CDR StartTime 2025-03-10 03:45:04 - End Time 2025-03-10 06:45:04 [2025-03-10 06:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647768', 'tblTempUsageDetail_20' ) start [2025-03-10 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647768', 'tblTempUsageDetail_20' ) end [2025-03-10 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647768', 'tblTempVendorCDR_20' ) start [2025-03-10 06:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647768', 'tblTempVendorCDR_20' ) end [2025-03-10 06:45:16] Production.INFO: ProcessCDR(1,14647768,1,1,2) [2025-03-10 06:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647768', 'tblTempUsageDetail_20' ) start [2025-03-10 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647768', 'tblTempUsageDetail_20' ) end [2025-03-10 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:45:20] Production.INFO: ==10936== Releasing lock... [2025-03-10 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:46:06 [end_date_ymd] => 2025-03-10 06:46:06 [RateCDR] => 1 ) [2025-03-10 06:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:46:06' and `end` < '2025-03-10 06:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:46:18] Production.INFO: count ==83 [2025-03-10 06:46:18] Production.ERROR: pbx CDR StartTime 2025-03-10 03:46:06 - End Time 2025-03-10 06:46:06 [2025-03-10 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647773', 'tblTempUsageDetail_20' ) start [2025-03-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647773', 'tblTempUsageDetail_20' ) end [2025-03-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647773', 'tblTempVendorCDR_20' ) start [2025-03-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647773', 'tblTempVendorCDR_20' ) end [2025-03-10 06:46:18] Production.INFO: ProcessCDR(1,14647773,1,1,2) [2025-03-10 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647773', 'tblTempUsageDetail_20' ) start [2025-03-10 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647773', 'tblTempUsageDetail_20' ) end [2025-03-10 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:46:21] Production.INFO: ==11006== Releasing lock... [2025-03-10 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:47:04 [end_date_ymd] => 2025-03-10 06:47:04 [RateCDR] => 1 ) [2025-03-10 06: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-03-10 03:47:04' and `end` < '2025-03-10 06: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-03-10 06:47:17] Production.INFO: count ==83 [2025-03-10 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:47:04 - End Time 2025-03-10 06:47:04 [2025-03-10 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647778', 'tblTempUsageDetail_20' ) start [2025-03-10 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647778', 'tblTempUsageDetail_20' ) end [2025-03-10 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647778', 'tblTempVendorCDR_20' ) start [2025-03-10 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647778', 'tblTempVendorCDR_20' ) end [2025-03-10 06:47:17] Production.INFO: ProcessCDR(1,14647778,1,1,2) [2025-03-10 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647778', 'tblTempUsageDetail_20' ) start [2025-03-10 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647778', 'tblTempUsageDetail_20' ) end [2025-03-10 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:47:20] Production.INFO: ==11077== Releasing lock... [2025-03-10 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:47:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:48:05 [end_date_ymd] => 2025-03-10 06:48:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:48:05' and `end` < '2025-03-10 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-03-10 06:48:17] Production.INFO: count ==84 [2025-03-10 06:48:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:48:05 - End Time 2025-03-10 06:48:05 [2025-03-10 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647783', 'tblTempUsageDetail_20' ) start [2025-03-10 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647783', 'tblTempUsageDetail_20' ) end [2025-03-10 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647783', 'tblTempVendorCDR_20' ) start [2025-03-10 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647783', 'tblTempVendorCDR_20' ) end [2025-03-10 06:48:17] Production.INFO: ProcessCDR(1,14647783,1,1,2) [2025-03-10 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647783', 'tblTempUsageDetail_20' ) start [2025-03-10 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647783', 'tblTempUsageDetail_20' ) end [2025-03-10 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:48:21] Production.INFO: ==11152== Releasing lock... [2025-03-10 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:49:04 [end_date_ymd] => 2025-03-10 06:49:04 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:49:04' and `end` < '2025-03-10 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-03-10 06:49:16] Production.INFO: count ==86 [2025-03-10 06:49:16] Production.ERROR: pbx CDR StartTime 2025-03-10 03:49:04 - End Time 2025-03-10 06:49:04 [2025-03-10 06:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647788', 'tblTempUsageDetail_20' ) start [2025-03-10 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647788', 'tblTempUsageDetail_20' ) end [2025-03-10 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647788', 'tblTempVendorCDR_20' ) start [2025-03-10 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647788', 'tblTempVendorCDR_20' ) end [2025-03-10 06:49:16] Production.INFO: ProcessCDR(1,14647788,1,1,2) [2025-03-10 06:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647788', 'tblTempUsageDetail_20' ) start [2025-03-10 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647788', 'tblTempUsageDetail_20' ) end [2025-03-10 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:49:20] Production.INFO: ==11225== Releasing lock... [2025-03-10 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:50:05 [end_date_ymd] => 2025-03-10 06:50:05 [RateCDR] => 1 ) [2025-03-10 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:50:05' and `end` < '2025-03-10 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:50:17] Production.INFO: count ==86 [2025-03-10 06:50:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:50:05 - End Time 2025-03-10 06:50:05 [2025-03-10 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647794', 'tblTempUsageDetail_20' ) start [2025-03-10 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647794', 'tblTempUsageDetail_20' ) end [2025-03-10 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647794', 'tblTempVendorCDR_20' ) start [2025-03-10 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647794', 'tblTempVendorCDR_20' ) end [2025-03-10 06:50:17] Production.INFO: ProcessCDR(1,14647794,1,1,2) [2025-03-10 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647794', 'tblTempUsageDetail_20' ) start [2025-03-10 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647794', 'tblTempUsageDetail_20' ) end [2025-03-10 06:50:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:50:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:50:20] Production.INFO: ==11335== Releasing lock... [2025-03-10 06:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:50:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:51:05 [end_date_ymd] => 2025-03-10 06:51:05 [RateCDR] => 1 ) [2025-03-10 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:51:05' and `end` < '2025-03-10 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:51:17] Production.INFO: count ==82 [2025-03-10 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:51:05 - End Time 2025-03-10 06:51:05 [2025-03-10 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647799', 'tblTempUsageDetail_20' ) start [2025-03-10 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647799', 'tblTempUsageDetail_20' ) end [2025-03-10 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647799', 'tblTempVendorCDR_20' ) start [2025-03-10 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647799', 'tblTempVendorCDR_20' ) end [2025-03-10 06:51:17] Production.INFO: ProcessCDR(1,14647799,1,1,2) [2025-03-10 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647799', 'tblTempUsageDetail_20' ) start [2025-03-10 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647799', 'tblTempUsageDetail_20' ) end [2025-03-10 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:51:20] Production.INFO: ==11411== Releasing lock... [2025-03-10 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:52:05 [end_date_ymd] => 2025-03-10 06:52:05 [RateCDR] => 1 ) [2025-03-10 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:52:05' and `end` < '2025-03-10 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:52:17] Production.INFO: count ==82 [2025-03-10 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:52:05 - End Time 2025-03-10 06:52:05 [2025-03-10 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647804', 'tblTempUsageDetail_20' ) start [2025-03-10 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647804', 'tblTempUsageDetail_20' ) end [2025-03-10 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647804', 'tblTempVendorCDR_20' ) start [2025-03-10 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647804', 'tblTempVendorCDR_20' ) end [2025-03-10 06:52:17] Production.INFO: ProcessCDR(1,14647804,1,1,2) [2025-03-10 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647804', 'tblTempUsageDetail_20' ) start [2025-03-10 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647804', 'tblTempUsageDetail_20' ) end [2025-03-10 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:52:20] Production.INFO: ==11483== Releasing lock... [2025-03-10 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:52:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:53:05 [end_date_ymd] => 2025-03-10 06:53:05 [RateCDR] => 1 ) [2025-03-10 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:53:05' and `end` < '2025-03-10 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:53:17] Production.INFO: count ==82 [2025-03-10 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:53:05 - End Time 2025-03-10 06:53:05 [2025-03-10 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647809', 'tblTempUsageDetail_20' ) start [2025-03-10 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647809', 'tblTempUsageDetail_20' ) end [2025-03-10 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647809', 'tblTempVendorCDR_20' ) start [2025-03-10 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647809', 'tblTempVendorCDR_20' ) end [2025-03-10 06:53:17] Production.INFO: ProcessCDR(1,14647809,1,1,2) [2025-03-10 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647809', 'tblTempUsageDetail_20' ) start [2025-03-10 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647809', 'tblTempUsageDetail_20' ) end [2025-03-10 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:53:20] Production.INFO: ==11575== Releasing lock... [2025-03-10 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:54:05 [end_date_ymd] => 2025-03-10 06:54:05 [RateCDR] => 1 ) [2025-03-10 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:54:05' and `end` < '2025-03-10 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:54:17] Production.INFO: count ==83 [2025-03-10 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:54:05 - End Time 2025-03-10 06:54:05 [2025-03-10 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647814', 'tblTempUsageDetail_20' ) start [2025-03-10 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647814', 'tblTempUsageDetail_20' ) end [2025-03-10 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647814', 'tblTempVendorCDR_20' ) start [2025-03-10 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647814', 'tblTempVendorCDR_20' ) end [2025-03-10 06:54:17] Production.INFO: ProcessCDR(1,14647814,1,1,2) [2025-03-10 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647814', 'tblTempUsageDetail_20' ) start [2025-03-10 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647814', 'tblTempUsageDetail_20' ) end [2025-03-10 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:54:21] Production.INFO: ==11689== Releasing lock... [2025-03-10 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:55:06 [end_date_ymd] => 2025-03-10 06:55:06 [RateCDR] => 1 ) [2025-03-10 06:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:55:06' and `end` < '2025-03-10 06:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:55:18] Production.INFO: count ==83 [2025-03-10 06:55:18] Production.ERROR: pbx CDR StartTime 2025-03-10 03:55:06 - End Time 2025-03-10 06:55:06 [2025-03-10 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647819', 'tblTempUsageDetail_20' ) start [2025-03-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647819', 'tblTempUsageDetail_20' ) end [2025-03-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647819', 'tblTempVendorCDR_20' ) start [2025-03-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647819', 'tblTempVendorCDR_20' ) end [2025-03-10 06:55:18] Production.INFO: ProcessCDR(1,14647819,1,1,2) [2025-03-10 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647819', 'tblTempUsageDetail_20' ) start [2025-03-10 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647819', 'tblTempUsageDetail_20' ) end [2025-03-10 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:55:21] Production.INFO: ==11780== Releasing lock... [2025-03-10 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:56:04 [end_date_ymd] => 2025-03-10 06:56:04 [RateCDR] => 1 ) [2025-03-10 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-03-10 03:56:04' and `end` < '2025-03-10 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-03-10 06:56:17] Production.INFO: count ==83 [2025-03-10 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:56:04 - End Time 2025-03-10 06:56:04 [2025-03-10 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647824', 'tblTempUsageDetail_20' ) start [2025-03-10 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647824', 'tblTempUsageDetail_20' ) end [2025-03-10 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647824', 'tblTempVendorCDR_20' ) start [2025-03-10 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647824', 'tblTempVendorCDR_20' ) end [2025-03-10 06:56:17] Production.INFO: ProcessCDR(1,14647824,1,1,2) [2025-03-10 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647824', 'tblTempUsageDetail_20' ) start [2025-03-10 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647824', 'tblTempUsageDetail_20' ) end [2025-03-10 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:56:20] Production.INFO: ==11851== Releasing lock... [2025-03-10 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:56:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:57:05 [end_date_ymd] => 2025-03-10 06:57:05 [RateCDR] => 1 ) [2025-03-10 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:57:05' and `end` < '2025-03-10 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:57:17] Production.INFO: count ==83 [2025-03-10 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:57:05 - End Time 2025-03-10 06:57:05 [2025-03-10 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647829', 'tblTempUsageDetail_20' ) start [2025-03-10 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647829', 'tblTempUsageDetail_20' ) end [2025-03-10 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647829', 'tblTempVendorCDR_20' ) start [2025-03-10 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647829', 'tblTempVendorCDR_20' ) end [2025-03-10 06:57:17] Production.INFO: ProcessCDR(1,14647829,1,1,2) [2025-03-10 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647829', 'tblTempUsageDetail_20' ) start [2025-03-10 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647829', 'tblTempUsageDetail_20' ) end [2025-03-10 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:57:20] Production.INFO: ==11923== Releasing lock... [2025-03-10 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:57:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:58:04 [end_date_ymd] => 2025-03-10 06:58:04 [RateCDR] => 1 ) [2025-03-10 06:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:58:04' and `end` < '2025-03-10 06:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:58:16] Production.INFO: count ==83 [2025-03-10 06:58:16] Production.ERROR: pbx CDR StartTime 2025-03-10 03:58:04 - End Time 2025-03-10 06:58:04 [2025-03-10 06:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647834', 'tblTempUsageDetail_20' ) start [2025-03-10 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647834', 'tblTempUsageDetail_20' ) end [2025-03-10 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647834', 'tblTempVendorCDR_20' ) start [2025-03-10 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647834', 'tblTempVendorCDR_20' ) end [2025-03-10 06:58:16] Production.INFO: ProcessCDR(1,14647834,1,1,2) [2025-03-10 06:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647834', 'tblTempUsageDetail_20' ) start [2025-03-10 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647834', 'tblTempUsageDetail_20' ) end [2025-03-10 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:58:20] Production.INFO: ==11994== Releasing lock... [2025-03-10 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:58:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 03:59:05 [end_date_ymd] => 2025-03-10 06:59:05 [RateCDR] => 1 ) [2025-03-10 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 03:59:05' and `end` < '2025-03-10 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 06:59:17] Production.INFO: count ==79 [2025-03-10 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-10 03:59:05 - End Time 2025-03-10 06:59:05 [2025-03-10 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647839', 'tblTempUsageDetail_20' ) start [2025-03-10 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647839', 'tblTempUsageDetail_20' ) end [2025-03-10 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647839', 'tblTempVendorCDR_20' ) start [2025-03-10 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647839', 'tblTempVendorCDR_20' ) end [2025-03-10 06:59:17] Production.INFO: ProcessCDR(1,14647839,1,1,2) [2025-03-10 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647839', 'tblTempUsageDetail_20' ) start [2025-03-10 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647839', 'tblTempUsageDetail_20' ) end [2025-03-10 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 06:59:20] Production.INFO: ==12066== Releasing lock... [2025-03-10 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 06:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:00:06 [end_date_ymd] => 2025-03-10 07:00:06 [RateCDR] => 1 ) [2025-03-10 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:00:06' and `end` < '2025-03-10 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:00:18] Production.INFO: count ==87 [2025-03-10 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:00:06 - End Time 2025-03-10 07:00:06 [2025-03-10 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647845', 'tblTempUsageDetail_20' ) start [2025-03-10 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647845', 'tblTempUsageDetail_20' ) end [2025-03-10 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647845', 'tblTempVendorCDR_20' ) start [2025-03-10 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647845', 'tblTempVendorCDR_20' ) end [2025-03-10 07:00:18] Production.INFO: ProcessCDR(1,14647845,1,1,2) [2025-03-10 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647845', 'tblTempUsageDetail_20' ) start [2025-03-10 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647845', 'tblTempUsageDetail_20' ) end [2025-03-10 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:00:22] Production.INFO: ==12146== Releasing lock... [2025-03-10 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:01:05 [end_date_ymd] => 2025-03-10 07:01:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:01:05' and `end` < '2025-03-10 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-03-10 07:01:17] Production.INFO: count ==82 [2025-03-10 07:01:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:01:05 - End Time 2025-03-10 07:01:05 [2025-03-10 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647850', 'tblTempUsageDetail_20' ) start [2025-03-10 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647850', 'tblTempUsageDetail_20' ) end [2025-03-10 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647850', 'tblTempVendorCDR_20' ) start [2025-03-10 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647850', 'tblTempVendorCDR_20' ) end [2025-03-10 07:01:17] Production.INFO: ProcessCDR(1,14647850,1,1,2) [2025-03-10 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647850', 'tblTempUsageDetail_20' ) start [2025-03-10 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647850', 'tblTempUsageDetail_20' ) end [2025-03-10 07:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:01:20] Production.INFO: ==12313== Releasing lock... [2025-03-10 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:02:06 [end_date_ymd] => 2025-03-10 07:02:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:02:06' and `end` < '2025-03-10 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-03-10 07:02:18] Production.INFO: count ==82 [2025-03-10 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:02:06 - End Time 2025-03-10 07:02:06 [2025-03-10 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647855', 'tblTempUsageDetail_20' ) start [2025-03-10 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647855', 'tblTempUsageDetail_20' ) end [2025-03-10 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647855', 'tblTempVendorCDR_20' ) start [2025-03-10 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647855', 'tblTempVendorCDR_20' ) end [2025-03-10 07:02:18] Production.INFO: ProcessCDR(1,14647855,1,1,2) [2025-03-10 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647855', 'tblTempUsageDetail_20' ) start [2025-03-10 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647855', 'tblTempUsageDetail_20' ) end [2025-03-10 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:02:22] Production.INFO: ==12383== Releasing lock... [2025-03-10 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:03:05 [end_date_ymd] => 2025-03-10 07:03:05 [RateCDR] => 1 ) [2025-03-10 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:03:05' and `end` < '2025-03-10 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:03:19] Production.INFO: count ==82 [2025-03-10 07:03:19] Production.ERROR: pbx CDR StartTime 2025-03-10 04:03:05 - End Time 2025-03-10 07:03:05 [2025-03-10 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647860', 'tblTempUsageDetail_20' ) start [2025-03-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647860', 'tblTempUsageDetail_20' ) end [2025-03-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647860', 'tblTempVendorCDR_20' ) start [2025-03-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647860', 'tblTempVendorCDR_20' ) end [2025-03-10 07:03:19] Production.INFO: ProcessCDR(1,14647860,1,1,2) [2025-03-10 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647860', 'tblTempUsageDetail_20' ) start [2025-03-10 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647860', 'tblTempUsageDetail_20' ) end [2025-03-10 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:03:23] Production.INFO: ==12460== Releasing lock... [2025-03-10 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:03:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:04:06 [end_date_ymd] => 2025-03-10 07:04:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:04:06' and `end` < '2025-03-10 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-03-10 07:04:19] Production.INFO: count ==82 [2025-03-10 07:04:19] Production.ERROR: pbx CDR StartTime 2025-03-10 04:04:06 - End Time 2025-03-10 07:04:06 [2025-03-10 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647865', 'tblTempUsageDetail_20' ) start [2025-03-10 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647865', 'tblTempUsageDetail_20' ) end [2025-03-10 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647865', 'tblTempVendorCDR_20' ) start [2025-03-10 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647865', 'tblTempVendorCDR_20' ) end [2025-03-10 07:04:19] Production.INFO: ProcessCDR(1,14647865,1,1,2) [2025-03-10 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647865', 'tblTempUsageDetail_20' ) start [2025-03-10 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647865', 'tblTempUsageDetail_20' ) end [2025-03-10 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:04:22] Production.INFO: ==12532== Releasing lock... [2025-03-10 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:05:05 [end_date_ymd] => 2025-03-10 07:05:05 [RateCDR] => 1 ) [2025-03-10 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:05:05' and `end` < '2025-03-10 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:05:18] Production.INFO: count ==82 [2025-03-10 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:05:05 - End Time 2025-03-10 07:05:05 [2025-03-10 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647870', 'tblTempUsageDetail_20' ) start [2025-03-10 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647870', 'tblTempUsageDetail_20' ) end [2025-03-10 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647870', 'tblTempVendorCDR_20' ) start [2025-03-10 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647870', 'tblTempVendorCDR_20' ) end [2025-03-10 07:05:18] Production.INFO: ProcessCDR(1,14647870,1,1,2) [2025-03-10 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647870', 'tblTempUsageDetail_20' ) start [2025-03-10 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647870', 'tblTempUsageDetail_20' ) end [2025-03-10 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:05:21] Production.INFO: ==12683== Releasing lock... [2025-03-10 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:06:06 [end_date_ymd] => 2025-03-10 07:06:06 [RateCDR] => 1 ) [2025-03-10 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:06:06' and `end` < '2025-03-10 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:06:18] Production.INFO: count ==82 [2025-03-10 07:06:19] Production.ERROR: pbx CDR StartTime 2025-03-10 04:06:06 - End Time 2025-03-10 07:06:06 [2025-03-10 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647875', 'tblTempUsageDetail_20' ) start [2025-03-10 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647875', 'tblTempUsageDetail_20' ) end [2025-03-10 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647875', 'tblTempVendorCDR_20' ) start [2025-03-10 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647875', 'tblTempVendorCDR_20' ) end [2025-03-10 07:06:19] Production.INFO: ProcessCDR(1,14647875,1,1,2) [2025-03-10 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647875', 'tblTempUsageDetail_20' ) start [2025-03-10 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647875', 'tblTempUsageDetail_20' ) end [2025-03-10 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:06:22] Production.INFO: ==12793== Releasing lock... [2025-03-10 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:07:06 [end_date_ymd] => 2025-03-10 07:07:06 [RateCDR] => 1 ) [2025-03-10 07:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:07:06' and `end` < '2025-03-10 07:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:07:18] Production.INFO: count ==82 [2025-03-10 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:07:06 - End Time 2025-03-10 07:07:06 [2025-03-10 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647880', 'tblTempUsageDetail_20' ) start [2025-03-10 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647880', 'tblTempUsageDetail_20' ) end [2025-03-10 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647880', 'tblTempVendorCDR_20' ) start [2025-03-10 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647880', 'tblTempVendorCDR_20' ) end [2025-03-10 07:07:18] Production.INFO: ProcessCDR(1,14647880,1,1,2) [2025-03-10 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647880', 'tblTempUsageDetail_20' ) start [2025-03-10 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647880', 'tblTempUsageDetail_20' ) end [2025-03-10 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:07:21] Production.INFO: ==12864== Releasing lock... [2025-03-10 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:08:04 [end_date_ymd] => 2025-03-10 07:08:04 [RateCDR] => 1 ) [2025-03-10 07: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-03-10 04:08:04' and `end` < '2025-03-10 07: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-03-10 07:08:16] Production.INFO: count ==82 [2025-03-10 07:08:16] Production.ERROR: pbx CDR StartTime 2025-03-10 04:08:04 - End Time 2025-03-10 07:08:04 [2025-03-10 07:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647885', 'tblTempUsageDetail_20' ) start [2025-03-10 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647885', 'tblTempUsageDetail_20' ) end [2025-03-10 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647885', 'tblTempVendorCDR_20' ) start [2025-03-10 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647885', 'tblTempVendorCDR_20' ) end [2025-03-10 07:08:16] Production.INFO: ProcessCDR(1,14647885,1,1,2) [2025-03-10 07:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647885', 'tblTempUsageDetail_20' ) start [2025-03-10 07:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647885', 'tblTempUsageDetail_20' ) end [2025-03-10 07:08:19] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:08:19] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:08:19] Production.INFO: ==13013== Releasing lock... [2025-03-10 07:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:08:19] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:09:05 [end_date_ymd] => 2025-03-10 07:09:05 [RateCDR] => 1 ) [2025-03-10 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:09:05' and `end` < '2025-03-10 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:09:17] Production.INFO: count ==82 [2025-03-10 07:09:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:09:05 - End Time 2025-03-10 07:09:05 [2025-03-10 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647890', 'tblTempUsageDetail_20' ) start [2025-03-10 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647890', 'tblTempUsageDetail_20' ) end [2025-03-10 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647890', 'tblTempVendorCDR_20' ) start [2025-03-10 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647890', 'tblTempVendorCDR_20' ) end [2025-03-10 07:09:17] Production.INFO: ProcessCDR(1,14647890,1,1,2) [2025-03-10 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647890', 'tblTempUsageDetail_20' ) start [2025-03-10 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647890', 'tblTempUsageDetail_20' ) end [2025-03-10 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:09:21] Production.INFO: ==13085== Releasing lock... [2025-03-10 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:10:06 [end_date_ymd] => 2025-03-10 07:10:06 [RateCDR] => 1 ) [2025-03-10 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:10:06' and `end` < '2025-03-10 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:10:18] Production.INFO: count ==91 [2025-03-10 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:10:06 - End Time 2025-03-10 07:10:06 [2025-03-10 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647895', 'tblTempUsageDetail_20' ) start [2025-03-10 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647895', 'tblTempUsageDetail_20' ) end [2025-03-10 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647895', 'tblTempVendorCDR_20' ) start [2025-03-10 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647895', 'tblTempVendorCDR_20' ) end [2025-03-10 07:10:18] Production.INFO: ProcessCDR(1,14647895,1,1,2) [2025-03-10 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647895', 'tblTempUsageDetail_20' ) start [2025-03-10 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647895', 'tblTempUsageDetail_20' ) end [2025-03-10 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:10:23] Production.INFO: ==13157== Releasing lock... [2025-03-10 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:10:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:11:05 [end_date_ymd] => 2025-03-10 07:11:05 [RateCDR] => 1 ) [2025-03-10 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:11:05' and `end` < '2025-03-10 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:11:18] Production.INFO: count ==91 [2025-03-10 07:11:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:11:05 - End Time 2025-03-10 07:11:05 [2025-03-10 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647901', 'tblTempUsageDetail_20' ) start [2025-03-10 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647901', 'tblTempUsageDetail_20' ) end [2025-03-10 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647901', 'tblTempVendorCDR_20' ) start [2025-03-10 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647901', 'tblTempVendorCDR_20' ) end [2025-03-10 07:11:18] Production.INFO: ProcessCDR(1,14647901,1,1,2) [2025-03-10 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647901', 'tblTempUsageDetail_20' ) start [2025-03-10 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647901', 'tblTempUsageDetail_20' ) end [2025-03-10 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:11:22] Production.INFO: ==13232== Releasing lock... [2025-03-10 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:12:05 [end_date_ymd] => 2025-03-10 07:12:05 [RateCDR] => 1 ) [2025-03-10 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:12:05' and `end` < '2025-03-10 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:12:17] Production.INFO: count ==91 [2025-03-10 07:12:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:12:05 - End Time 2025-03-10 07:12:05 [2025-03-10 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647906', 'tblTempUsageDetail_20' ) start [2025-03-10 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647906', 'tblTempUsageDetail_20' ) end [2025-03-10 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647906', 'tblTempVendorCDR_20' ) start [2025-03-10 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647906', 'tblTempVendorCDR_20' ) end [2025-03-10 07:12:17] Production.INFO: ProcessCDR(1,14647906,1,1,2) [2025-03-10 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647906', 'tblTempUsageDetail_20' ) start [2025-03-10 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647906', 'tblTempUsageDetail_20' ) end [2025-03-10 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:12:21] Production.INFO: ==13382== Releasing lock... [2025-03-10 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:13:05 [end_date_ymd] => 2025-03-10 07:13:05 [RateCDR] => 1 ) [2025-03-10 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:13:05' and `end` < '2025-03-10 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:13:17] Production.INFO: count ==91 [2025-03-10 07:13:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:13:05 - End Time 2025-03-10 07:13:05 [2025-03-10 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647911', 'tblTempUsageDetail_20' ) start [2025-03-10 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647911', 'tblTempUsageDetail_20' ) end [2025-03-10 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647911', 'tblTempVendorCDR_20' ) start [2025-03-10 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647911', 'tblTempVendorCDR_20' ) end [2025-03-10 07:13:17] Production.INFO: ProcessCDR(1,14647911,1,1,2) [2025-03-10 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647911', 'tblTempUsageDetail_20' ) start [2025-03-10 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647911', 'tblTempUsageDetail_20' ) end [2025-03-10 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:13:21] Production.INFO: ==13454== Releasing lock... [2025-03-10 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:14:05 [end_date_ymd] => 2025-03-10 07:14:05 [RateCDR] => 1 ) [2025-03-10 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:14:05' and `end` < '2025-03-10 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:14:18] Production.INFO: count ==91 [2025-03-10 07:14:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:14:05 - End Time 2025-03-10 07:14:05 [2025-03-10 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647916', 'tblTempUsageDetail_20' ) start [2025-03-10 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647916', 'tblTempUsageDetail_20' ) end [2025-03-10 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647916', 'tblTempVendorCDR_20' ) start [2025-03-10 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647916', 'tblTempVendorCDR_20' ) end [2025-03-10 07:14:18] Production.INFO: ProcessCDR(1,14647916,1,1,2) [2025-03-10 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647916', 'tblTempUsageDetail_20' ) start [2025-03-10 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647916', 'tblTempUsageDetail_20' ) end [2025-03-10 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:14:21] Production.INFO: ==13529== Releasing lock... [2025-03-10 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:15:05 [end_date_ymd] => 2025-03-10 07:15:05 [RateCDR] => 1 ) [2025-03-10 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:15:05' and `end` < '2025-03-10 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:15:17] Production.INFO: count ==91 [2025-03-10 07:15:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:15:05 - End Time 2025-03-10 07:15:05 [2025-03-10 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647921', 'tblTempUsageDetail_20' ) start [2025-03-10 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647921', 'tblTempUsageDetail_20' ) end [2025-03-10 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647921', 'tblTempVendorCDR_20' ) start [2025-03-10 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647921', 'tblTempVendorCDR_20' ) end [2025-03-10 07:15:17] Production.INFO: ProcessCDR(1,14647921,1,1,2) [2025-03-10 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647921', 'tblTempUsageDetail_20' ) start [2025-03-10 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647921', 'tblTempUsageDetail_20' ) end [2025-03-10 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:15:21] Production.INFO: ==13678== Releasing lock... [2025-03-10 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:16:06 [end_date_ymd] => 2025-03-10 07:16:06 [RateCDR] => 1 ) [2025-03-10 07:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:16:06' and `end` < '2025-03-10 07:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:16:19] Production.INFO: count ==91 [2025-03-10 07:16:19] Production.ERROR: pbx CDR StartTime 2025-03-10 04:16:06 - End Time 2025-03-10 07:16:06 [2025-03-10 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647926', 'tblTempUsageDetail_20' ) start [2025-03-10 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647926', 'tblTempUsageDetail_20' ) end [2025-03-10 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647926', 'tblTempVendorCDR_20' ) start [2025-03-10 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647926', 'tblTempVendorCDR_20' ) end [2025-03-10 07:16:19] Production.INFO: ProcessCDR(1,14647926,1,1,2) [2025-03-10 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647926', 'tblTempUsageDetail_20' ) start [2025-03-10 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647926', 'tblTempUsageDetail_20' ) end [2025-03-10 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:16:22] Production.INFO: ==13753== Releasing lock... [2025-03-10 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:17:06 [end_date_ymd] => 2025-03-10 07:17:06 [RateCDR] => 1 ) [2025-03-10 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:17:06' and `end` < '2025-03-10 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:17:19] Production.INFO: count ==91 [2025-03-10 07:17:19] Production.ERROR: pbx CDR StartTime 2025-03-10 04:17:06 - End Time 2025-03-10 07:17:06 [2025-03-10 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647931', 'tblTempUsageDetail_20' ) start [2025-03-10 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647931', 'tblTempUsageDetail_20' ) end [2025-03-10 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647931', 'tblTempVendorCDR_20' ) start [2025-03-10 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647931', 'tblTempVendorCDR_20' ) end [2025-03-10 07:17:19] Production.INFO: ProcessCDR(1,14647931,1,1,2) [2025-03-10 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647931', 'tblTempUsageDetail_20' ) start [2025-03-10 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647931', 'tblTempUsageDetail_20' ) end [2025-03-10 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:17:22] Production.INFO: ==13824== Releasing lock... [2025-03-10 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:17:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:18:06 [end_date_ymd] => 2025-03-10 07:18:06 [RateCDR] => 1 ) [2025-03-10 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:18:06' and `end` < '2025-03-10 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:18:18] Production.INFO: count ==91 [2025-03-10 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:18:06 - End Time 2025-03-10 07:18:06 [2025-03-10 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647936', 'tblTempUsageDetail_20' ) start [2025-03-10 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647936', 'tblTempUsageDetail_20' ) end [2025-03-10 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647936', 'tblTempVendorCDR_20' ) start [2025-03-10 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647936', 'tblTempVendorCDR_20' ) end [2025-03-10 07:18:18] Production.INFO: ProcessCDR(1,14647936,1,1,2) [2025-03-10 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647936', 'tblTempUsageDetail_20' ) start [2025-03-10 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647936', 'tblTempUsageDetail_20' ) end [2025-03-10 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:18:22] Production.INFO: ==13894== Releasing lock... [2025-03-10 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:19:06 [end_date_ymd] => 2025-03-10 07:19:06 [RateCDR] => 1 ) [2025-03-10 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:19:06' and `end` < '2025-03-10 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:19:18] Production.INFO: count ==91 [2025-03-10 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:19:06 - End Time 2025-03-10 07:19:06 [2025-03-10 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647941', 'tblTempUsageDetail_20' ) start [2025-03-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647941', 'tblTempUsageDetail_20' ) end [2025-03-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647941', 'tblTempVendorCDR_20' ) start [2025-03-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647941', 'tblTempVendorCDR_20' ) end [2025-03-10 07:19:18] Production.INFO: ProcessCDR(1,14647941,1,1,2) [2025-03-10 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647941', 'tblTempUsageDetail_20' ) start [2025-03-10 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647941', 'tblTempUsageDetail_20' ) end [2025-03-10 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:19:21] Production.INFO: ==13970== Releasing lock... [2025-03-10 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:20:07 [end_date_ymd] => 2025-03-10 07:20:07 [RateCDR] => 1 ) [2025-03-10 07:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:20:07' and `end` < '2025-03-10 07:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:20:19] Production.INFO: count ==91 [2025-03-10 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-10 04:20:07 - End Time 2025-03-10 07:20:07 [2025-03-10 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647947', 'tblTempUsageDetail_20' ) start [2025-03-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647947', 'tblTempUsageDetail_20' ) end [2025-03-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647947', 'tblTempVendorCDR_20' ) start [2025-03-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647947', 'tblTempVendorCDR_20' ) end [2025-03-10 07:20:19] Production.INFO: ProcessCDR(1,14647947,1,1,2) [2025-03-10 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647947', 'tblTempUsageDetail_20' ) start [2025-03-10 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647947', 'tblTempUsageDetail_20' ) end [2025-03-10 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:20:22] Production.INFO: ==14045== Releasing lock... [2025-03-10 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:21:05 [end_date_ymd] => 2025-03-10 07:21:05 [RateCDR] => 1 ) [2025-03-10 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:21:05' and `end` < '2025-03-10 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:21:18] Production.INFO: count ==91 [2025-03-10 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:21:05 - End Time 2025-03-10 07:21:05 [2025-03-10 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647952', 'tblTempUsageDetail_20' ) start [2025-03-10 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647952', 'tblTempUsageDetail_20' ) end [2025-03-10 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647952', 'tblTempVendorCDR_20' ) start [2025-03-10 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647952', 'tblTempVendorCDR_20' ) end [2025-03-10 07:21:18] Production.INFO: ProcessCDR(1,14647952,1,1,2) [2025-03-10 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647952', 'tblTempUsageDetail_20' ) start [2025-03-10 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647952', 'tblTempUsageDetail_20' ) end [2025-03-10 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:21:21] Production.INFO: ==14158== Releasing lock... [2025-03-10 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:22:05 [end_date_ymd] => 2025-03-10 07:22:05 [RateCDR] => 1 ) [2025-03-10 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:22:05' and `end` < '2025-03-10 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:22:17] Production.INFO: count ==94 [2025-03-10 07:22:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:22:05 - End Time 2025-03-10 07:22:05 [2025-03-10 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647957', 'tblTempUsageDetail_20' ) start [2025-03-10 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647957', 'tblTempUsageDetail_20' ) end [2025-03-10 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647957', 'tblTempVendorCDR_20' ) start [2025-03-10 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647957', 'tblTempVendorCDR_20' ) end [2025-03-10 07:22:17] Production.INFO: ProcessCDR(1,14647957,1,1,2) [2025-03-10 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647957', 'tblTempUsageDetail_20' ) start [2025-03-10 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647957', 'tblTempUsageDetail_20' ) end [2025-03-10 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:22:21] Production.INFO: ==14231== Releasing lock... [2025-03-10 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:23:05 [end_date_ymd] => 2025-03-10 07:23:05 [RateCDR] => 1 ) [2025-03-10 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:23:05' and `end` < '2025-03-10 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:23:17] Production.INFO: count ==94 [2025-03-10 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:23:05 - End Time 2025-03-10 07:23:05 [2025-03-10 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647962', 'tblTempUsageDetail_20' ) start [2025-03-10 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647962', 'tblTempUsageDetail_20' ) end [2025-03-10 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647962', 'tblTempVendorCDR_20' ) start [2025-03-10 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647962', 'tblTempVendorCDR_20' ) end [2025-03-10 07:23:17] Production.INFO: ProcessCDR(1,14647962,1,1,2) [2025-03-10 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647962', 'tblTempUsageDetail_20' ) start [2025-03-10 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647962', 'tblTempUsageDetail_20' ) end [2025-03-10 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:23:21] Production.INFO: ==14309== Releasing lock... [2025-03-10 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-10 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:24:06 [end_date_ymd] => 2025-03-10 07:24:06 [RateCDR] => 1 ) [2025-03-10 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:24:06' and `end` < '2025-03-10 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:24:18] Production.INFO: count ==97 [2025-03-10 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:24:06 - End Time 2025-03-10 07:24:06 [2025-03-10 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647967', 'tblTempUsageDetail_20' ) start [2025-03-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647967', 'tblTempUsageDetail_20' ) end [2025-03-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647967', 'tblTempVendorCDR_20' ) start [2025-03-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647967', 'tblTempVendorCDR_20' ) end [2025-03-10 07:24:18] Production.INFO: ProcessCDR(1,14647967,1,1,2) [2025-03-10 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647967', 'tblTempUsageDetail_20' ) start [2025-03-10 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647967', 'tblTempUsageDetail_20' ) end [2025-03-10 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:24:22] Production.INFO: ==14379== Releasing lock... [2025-03-10 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:25:06 [end_date_ymd] => 2025-03-10 07:25:06 [RateCDR] => 1 ) [2025-03-10 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:25:06' and `end` < '2025-03-10 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:25:18] Production.INFO: count ==97 [2025-03-10 07:25:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:25:06 - End Time 2025-03-10 07:25:06 [2025-03-10 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647972', 'tblTempUsageDetail_20' ) start [2025-03-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647972', 'tblTempUsageDetail_20' ) end [2025-03-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647972', 'tblTempVendorCDR_20' ) start [2025-03-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647972', 'tblTempVendorCDR_20' ) end [2025-03-10 07:25:18] Production.INFO: ProcessCDR(1,14647972,1,1,2) [2025-03-10 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647972', 'tblTempUsageDetail_20' ) start [2025-03-10 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647972', 'tblTempUsageDetail_20' ) end [2025-03-10 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:25:21] Production.INFO: ==14450== Releasing lock... [2025-03-10 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:26:05 [end_date_ymd] => 2025-03-10 07:26:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:26:05' and `end` < '2025-03-10 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-03-10 07:26:17] Production.INFO: count ==97 [2025-03-10 07:26:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:26:05 - End Time 2025-03-10 07:26:05 [2025-03-10 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647977', 'tblTempUsageDetail_20' ) start [2025-03-10 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647977', 'tblTempUsageDetail_20' ) end [2025-03-10 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647977', 'tblTempVendorCDR_20' ) start [2025-03-10 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647977', 'tblTempVendorCDR_20' ) end [2025-03-10 07:26:17] Production.INFO: ProcessCDR(1,14647977,1,1,2) [2025-03-10 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647977', 'tblTempUsageDetail_20' ) start [2025-03-10 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647977', 'tblTempUsageDetail_20' ) end [2025-03-10 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:26:21] Production.INFO: ==14525== Releasing lock... [2025-03-10 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-10 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:27:06 [end_date_ymd] => 2025-03-10 07:27:06 [RateCDR] => 1 ) [2025-03-10 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:27:06' and `end` < '2025-03-10 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:27:18] Production.INFO: count ==102 [2025-03-10 07:27:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:27:06 - End Time 2025-03-10 07:27:06 [2025-03-10 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647982', 'tblTempUsageDetail_20' ) start [2025-03-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647982', 'tblTempUsageDetail_20' ) end [2025-03-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647982', 'tblTempVendorCDR_20' ) start [2025-03-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647982', 'tblTempVendorCDR_20' ) end [2025-03-10 07:27:18] Production.INFO: ProcessCDR(1,14647982,1,1,2) [2025-03-10 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647982', 'tblTempUsageDetail_20' ) start [2025-03-10 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647982', 'tblTempUsageDetail_20' ) end [2025-03-10 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:27:22] Production.INFO: ==14595== Releasing lock... [2025-03-10 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:27:22] Production.INFO: 29 MB #Memory Used# [2025-03-10 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:28:05 [end_date_ymd] => 2025-03-10 07:28:05 [RateCDR] => 1 ) [2025-03-10 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:28:05' and `end` < '2025-03-10 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:28:17] Production.INFO: count ==103 [2025-03-10 07:28:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:28:05 - End Time 2025-03-10 07:28:05 [2025-03-10 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647987', 'tblTempUsageDetail_20' ) start [2025-03-10 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647987', 'tblTempUsageDetail_20' ) end [2025-03-10 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647987', 'tblTempVendorCDR_20' ) start [2025-03-10 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647987', 'tblTempVendorCDR_20' ) end [2025-03-10 07:28:17] Production.INFO: ProcessCDR(1,14647987,1,1,2) [2025-03-10 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647987', 'tblTempUsageDetail_20' ) start [2025-03-10 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647987', 'tblTempUsageDetail_20' ) end [2025-03-10 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:28:23] Production.INFO: ==14674== Releasing lock... [2025-03-10 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:28:23] Production.INFO: 29 MB #Memory Used# [2025-03-10 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:29:06 [end_date_ymd] => 2025-03-10 07:29:06 [RateCDR] => 1 ) [2025-03-10 07:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:29:06' and `end` < '2025-03-10 07:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:29:18] Production.INFO: count ==108 [2025-03-10 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:29:06 - End Time 2025-03-10 07:29:06 [2025-03-10 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647992', 'tblTempUsageDetail_20' ) start [2025-03-10 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647992', 'tblTempUsageDetail_20' ) end [2025-03-10 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647992', 'tblTempVendorCDR_20' ) start [2025-03-10 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647992', 'tblTempVendorCDR_20' ) end [2025-03-10 07:29:18] Production.INFO: ProcessCDR(1,14647992,1,1,2) [2025-03-10 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647992', 'tblTempUsageDetail_20' ) start [2025-03-10 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647992', 'tblTempUsageDetail_20' ) end [2025-03-10 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:29:21] Production.INFO: ==14745== Releasing lock... [2025-03-10 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:30:06 [end_date_ymd] => 2025-03-10 07:30:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:30:06' and `end` < '2025-03-10 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-03-10 07:30:18] Production.INFO: count ==119 [2025-03-10 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:30:06 - End Time 2025-03-10 07:30:06 [2025-03-10 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647998', 'tblTempUsageDetail_20' ) start [2025-03-10 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14647998', 'tblTempUsageDetail_20' ) end [2025-03-10 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647998', 'tblTempVendorCDR_20' ) start [2025-03-10 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14647998', 'tblTempVendorCDR_20' ) end [2025-03-10 07:30:18] Production.INFO: ProcessCDR(1,14647998,1,1,2) [2025-03-10 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14647998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14647998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14647998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14647998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647998', 'tblTempUsageDetail_20' ) start [2025-03-10 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14647998', 'tblTempUsageDetail_20' ) end [2025-03-10 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:30:22] Production.INFO: ==14821== Releasing lock... [2025-03-10 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:31:06 [end_date_ymd] => 2025-03-10 07:31:06 [RateCDR] => 1 ) [2025-03-10 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:31:06' and `end` < '2025-03-10 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:31:18] Production.INFO: count ==119 [2025-03-10 07:31:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:31:06 - End Time 2025-03-10 07:31:06 [2025-03-10 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648003', 'tblTempUsageDetail_20' ) start [2025-03-10 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648003', 'tblTempUsageDetail_20' ) end [2025-03-10 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648003', 'tblTempVendorCDR_20' ) start [2025-03-10 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648003', 'tblTempVendorCDR_20' ) end [2025-03-10 07:31:18] Production.INFO: ProcessCDR(1,14648003,1,1,2) [2025-03-10 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648003', 'tblTempUsageDetail_20' ) start [2025-03-10 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648003', 'tblTempUsageDetail_20' ) end [2025-03-10 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:31:22] Production.INFO: ==14917== Releasing lock... [2025-03-10 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:31:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:32:05 [end_date_ymd] => 2025-03-10 07:32:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:32:05' and `end` < '2025-03-10 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-03-10 07:32:17] Production.INFO: count ==120 [2025-03-10 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:32:05 - End Time 2025-03-10 07:32:05 [2025-03-10 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648008', 'tblTempUsageDetail_20' ) start [2025-03-10 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648008', 'tblTempUsageDetail_20' ) end [2025-03-10 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648008', 'tblTempVendorCDR_20' ) start [2025-03-10 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648008', 'tblTempVendorCDR_20' ) end [2025-03-10 07:32:17] Production.INFO: ProcessCDR(1,14648008,1,1,2) [2025-03-10 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648008', 'tblTempUsageDetail_20' ) start [2025-03-10 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648008', 'tblTempUsageDetail_20' ) end [2025-03-10 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:32:22] Production.INFO: ==14992== Releasing lock... [2025-03-10 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:33:06 [end_date_ymd] => 2025-03-10 07:33:06 [RateCDR] => 1 ) [2025-03-10 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:33:06' and `end` < '2025-03-10 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:33:18] Production.INFO: count ==125 [2025-03-10 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:33:06 - End Time 2025-03-10 07:33:06 [2025-03-10 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648013', 'tblTempUsageDetail_20' ) start [2025-03-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648013', 'tblTempUsageDetail_20' ) end [2025-03-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648013', 'tblTempVendorCDR_20' ) start [2025-03-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648013', 'tblTempVendorCDR_20' ) end [2025-03-10 07:33:18] Production.INFO: ProcessCDR(1,14648013,1,1,2) [2025-03-10 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648013', 'tblTempUsageDetail_20' ) start [2025-03-10 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648013', 'tblTempUsageDetail_20' ) end [2025-03-10 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:33:22] Production.INFO: ==15062== Releasing lock... [2025-03-10 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:33:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:34:05 [end_date_ymd] => 2025-03-10 07:34:05 [RateCDR] => 1 ) [2025-03-10 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:34:05' and `end` < '2025-03-10 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:34:17] Production.INFO: count ==125 [2025-03-10 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:34:05 - End Time 2025-03-10 07:34:05 [2025-03-10 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648018', 'tblTempUsageDetail_20' ) start [2025-03-10 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648018', 'tblTempUsageDetail_20' ) end [2025-03-10 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648018', 'tblTempVendorCDR_20' ) start [2025-03-10 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648018', 'tblTempVendorCDR_20' ) end [2025-03-10 07:34:17] Production.INFO: ProcessCDR(1,14648018,1,1,2) [2025-03-10 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648018', 'tblTempUsageDetail_20' ) start [2025-03-10 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648018', 'tblTempUsageDetail_20' ) end [2025-03-10 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:34:21] Production.INFO: ==15134== Releasing lock... [2025-03-10 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:35:06 [end_date_ymd] => 2025-03-10 07:35:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:35:06' and `end` < '2025-03-10 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-03-10 07:35:18] Production.INFO: count ==125 [2025-03-10 07:35:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:35:06 - End Time 2025-03-10 07:35:06 [2025-03-10 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648023', 'tblTempUsageDetail_20' ) start [2025-03-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648023', 'tblTempUsageDetail_20' ) end [2025-03-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648023', 'tblTempVendorCDR_20' ) start [2025-03-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648023', 'tblTempVendorCDR_20' ) end [2025-03-10 07:35:18] Production.INFO: ProcessCDR(1,14648023,1,1,2) [2025-03-10 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648023', 'tblTempUsageDetail_20' ) start [2025-03-10 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648023', 'tblTempUsageDetail_20' ) end [2025-03-10 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:35:22] Production.INFO: ==15207== Releasing lock... [2025-03-10 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:36:05 [end_date_ymd] => 2025-03-10 07:36:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:36:05' and `end` < '2025-03-10 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-03-10 07:36:17] Production.INFO: count ==126 [2025-03-10 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:36:05 - End Time 2025-03-10 07:36:05 [2025-03-10 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648028', 'tblTempUsageDetail_20' ) start [2025-03-10 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648028', 'tblTempUsageDetail_20' ) end [2025-03-10 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648028', 'tblTempVendorCDR_20' ) start [2025-03-10 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648028', 'tblTempVendorCDR_20' ) end [2025-03-10 07:36:17] Production.INFO: ProcessCDR(1,14648028,1,1,2) [2025-03-10 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648028', 'tblTempUsageDetail_20' ) start [2025-03-10 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648028', 'tblTempUsageDetail_20' ) end [2025-03-10 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:36:20] Production.INFO: ==15277== Releasing lock... [2025-03-10 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:36:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:37:05 [end_date_ymd] => 2025-03-10 07:37:05 [RateCDR] => 1 ) [2025-03-10 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:37:05' and `end` < '2025-03-10 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:37:17] Production.INFO: count ==129 [2025-03-10 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:37:05 - End Time 2025-03-10 07:37:05 [2025-03-10 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648033', 'tblTempUsageDetail_20' ) start [2025-03-10 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648033', 'tblTempUsageDetail_20' ) end [2025-03-10 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648033', 'tblTempVendorCDR_20' ) start [2025-03-10 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648033', 'tblTempVendorCDR_20' ) end [2025-03-10 07:37:17] Production.INFO: ProcessCDR(1,14648033,1,1,2) [2025-03-10 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648033', 'tblTempUsageDetail_20' ) start [2025-03-10 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648033', 'tblTempUsageDetail_20' ) end [2025-03-10 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:37:21] Production.INFO: ==15388== Releasing lock... [2025-03-10 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:38:05 [end_date_ymd] => 2025-03-10 07:38:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:38:05' and `end` < '2025-03-10 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-03-10 07:38:17] Production.INFO: count ==129 [2025-03-10 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:38:05 - End Time 2025-03-10 07:38:05 [2025-03-10 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648038', 'tblTempUsageDetail_20' ) start [2025-03-10 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648038', 'tblTempUsageDetail_20' ) end [2025-03-10 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648038', 'tblTempVendorCDR_20' ) start [2025-03-10 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648038', 'tblTempVendorCDR_20' ) end [2025-03-10 07:38:17] Production.INFO: ProcessCDR(1,14648038,1,1,2) [2025-03-10 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648038', 'tblTempUsageDetail_20' ) start [2025-03-10 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648038', 'tblTempUsageDetail_20' ) end [2025-03-10 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:38:20] Production.INFO: ==15461== Releasing lock... [2025-03-10 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:38:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:39:05 [end_date_ymd] => 2025-03-10 07:39:05 [RateCDR] => 1 ) [2025-03-10 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:39:05' and `end` < '2025-03-10 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:39:17] Production.INFO: count ==129 [2025-03-10 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:39:05 - End Time 2025-03-10 07:39:05 [2025-03-10 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648043', 'tblTempUsageDetail_20' ) start [2025-03-10 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648043', 'tblTempUsageDetail_20' ) end [2025-03-10 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648043', 'tblTempVendorCDR_20' ) start [2025-03-10 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648043', 'tblTempVendorCDR_20' ) end [2025-03-10 07:39:17] Production.INFO: ProcessCDR(1,14648043,1,1,2) [2025-03-10 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648043', 'tblTempUsageDetail_20' ) start [2025-03-10 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648043', 'tblTempUsageDetail_20' ) end [2025-03-10 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:39:21] Production.INFO: ==15534== Releasing lock... [2025-03-10 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:40:05 [end_date_ymd] => 2025-03-10 07:40:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:40:05' and `end` < '2025-03-10 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-03-10 07:40:17] Production.INFO: count ==136 [2025-03-10 07:40:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:40:05 - End Time 2025-03-10 07:40:05 [2025-03-10 07:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648049', 'tblTempUsageDetail_20' ) start [2025-03-10 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648049', 'tblTempUsageDetail_20' ) end [2025-03-10 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648049', 'tblTempVendorCDR_20' ) start [2025-03-10 07:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648049', 'tblTempVendorCDR_20' ) end [2025-03-10 07:40:17] Production.INFO: ProcessCDR(1,14648049,1,1,2) [2025-03-10 07:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648049', 'tblTempUsageDetail_20' ) start [2025-03-10 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648049', 'tblTempUsageDetail_20' ) end [2025-03-10 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:40:22] Production.INFO: ==15607== Releasing lock... [2025-03-10 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:41:05 [end_date_ymd] => 2025-03-10 07:41:05 [RateCDR] => 1 ) [2025-03-10 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:41:05' and `end` < '2025-03-10 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:41:17] Production.INFO: count ==138 [2025-03-10 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:41:05 - End Time 2025-03-10 07:41:05 [2025-03-10 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648054', 'tblTempUsageDetail_20' ) start [2025-03-10 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648054', 'tblTempUsageDetail_20' ) end [2025-03-10 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648054', 'tblTempVendorCDR_20' ) start [2025-03-10 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648054', 'tblTempVendorCDR_20' ) end [2025-03-10 07:41:17] Production.INFO: ProcessCDR(1,14648054,1,1,2) [2025-03-10 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648054', 'tblTempUsageDetail_20' ) start [2025-03-10 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648054', 'tblTempUsageDetail_20' ) end [2025-03-10 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:41:20] Production.INFO: ==15683== Releasing lock... [2025-03-10 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:42:05 [end_date_ymd] => 2025-03-10 07:42:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:42:05' and `end` < '2025-03-10 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-03-10 07:42:17] Production.INFO: count ==139 [2025-03-10 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:42:05 - End Time 2025-03-10 07:42:05 [2025-03-10 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648059', 'tblTempUsageDetail_20' ) start [2025-03-10 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648059', 'tblTempUsageDetail_20' ) end [2025-03-10 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648059', 'tblTempVendorCDR_20' ) start [2025-03-10 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648059', 'tblTempVendorCDR_20' ) end [2025-03-10 07:42:17] Production.INFO: ProcessCDR(1,14648059,1,1,2) [2025-03-10 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648059', 'tblTempUsageDetail_20' ) start [2025-03-10 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648059', 'tblTempUsageDetail_20' ) end [2025-03-10 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:42:21] Production.INFO: ==15758== Releasing lock... [2025-03-10 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:43:05 [end_date_ymd] => 2025-03-10 07:43:05 [RateCDR] => 1 ) [2025-03-10 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:43:05' and `end` < '2025-03-10 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:43:17] Production.INFO: count ==139 [2025-03-10 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:43:05 - End Time 2025-03-10 07:43:05 [2025-03-10 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648064', 'tblTempUsageDetail_20' ) start [2025-03-10 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648064', 'tblTempUsageDetail_20' ) end [2025-03-10 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648064', 'tblTempVendorCDR_20' ) start [2025-03-10 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648064', 'tblTempVendorCDR_20' ) end [2025-03-10 07:43:17] Production.INFO: ProcessCDR(1,14648064,1,1,2) [2025-03-10 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648064', 'tblTempUsageDetail_20' ) start [2025-03-10 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648064', 'tblTempUsageDetail_20' ) end [2025-03-10 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:43:21] Production.INFO: ==15838== Releasing lock... [2025-03-10 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:44:04 [end_date_ymd] => 2025-03-10 07:44:04 [RateCDR] => 1 ) [2025-03-10 07:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:44:04' and `end` < '2025-03-10 07: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-03-10 07:44:16] Production.INFO: count ==140 [2025-03-10 07:44:16] Production.ERROR: pbx CDR StartTime 2025-03-10 04:44:04 - End Time 2025-03-10 07:44:04 [2025-03-10 07:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648069', 'tblTempUsageDetail_20' ) start [2025-03-10 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648069', 'tblTempUsageDetail_20' ) end [2025-03-10 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648069', 'tblTempVendorCDR_20' ) start [2025-03-10 07:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648069', 'tblTempVendorCDR_20' ) end [2025-03-10 07:44:16] Production.INFO: ProcessCDR(1,14648069,1,1,2) [2025-03-10 07:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648069', 'tblTempUsageDetail_20' ) start [2025-03-10 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648069', 'tblTempUsageDetail_20' ) end [2025-03-10 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:44:21] Production.INFO: ==15907== Releasing lock... [2025-03-10 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:45:05 [end_date_ymd] => 2025-03-10 07:45:05 [RateCDR] => 1 ) [2025-03-10 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:45:05' and `end` < '2025-03-10 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:45:17] Production.INFO: count ==140 [2025-03-10 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:45:05 - End Time 2025-03-10 07:45:05 [2025-03-10 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648074', 'tblTempUsageDetail_20' ) start [2025-03-10 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648074', 'tblTempUsageDetail_20' ) end [2025-03-10 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648074', 'tblTempVendorCDR_20' ) start [2025-03-10 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648074', 'tblTempVendorCDR_20' ) end [2025-03-10 07:45:17] Production.INFO: ProcessCDR(1,14648074,1,1,2) [2025-03-10 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648074', 'tblTempUsageDetail_20' ) start [2025-03-10 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648074', 'tblTempUsageDetail_20' ) end [2025-03-10 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:45:21] Production.INFO: ==15984== Releasing lock... [2025-03-10 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:46:05 [end_date_ymd] => 2025-03-10 07:46:05 [RateCDR] => 1 ) [2025-03-10 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:46:05' and `end` < '2025-03-10 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:46:17] Production.INFO: count ==140 [2025-03-10 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:46:05 - End Time 2025-03-10 07:46:05 [2025-03-10 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648079', 'tblTempUsageDetail_20' ) start [2025-03-10 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648079', 'tblTempUsageDetail_20' ) end [2025-03-10 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648079', 'tblTempVendorCDR_20' ) start [2025-03-10 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648079', 'tblTempVendorCDR_20' ) end [2025-03-10 07:46:17] Production.INFO: ProcessCDR(1,14648079,1,1,2) [2025-03-10 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648079', 'tblTempUsageDetail_20' ) start [2025-03-10 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648079', 'tblTempUsageDetail_20' ) end [2025-03-10 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:46:20] Production.INFO: ==16056== Releasing lock... [2025-03-10 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:46:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:47:06 [end_date_ymd] => 2025-03-10 07:47:06 [RateCDR] => 1 ) [2025-03-10 07:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:47:06' and `end` < '2025-03-10 07:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:47:18] Production.INFO: count ==146 [2025-03-10 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:47:06 - End Time 2025-03-10 07:47:06 [2025-03-10 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648084', 'tblTempUsageDetail_20' ) start [2025-03-10 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648084', 'tblTempUsageDetail_20' ) end [2025-03-10 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648084', 'tblTempVendorCDR_20' ) start [2025-03-10 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648084', 'tblTempVendorCDR_20' ) end [2025-03-10 07:47:18] Production.INFO: ProcessCDR(1,14648084,1,1,2) [2025-03-10 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648084', 'tblTempUsageDetail_20' ) start [2025-03-10 07:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648084', 'tblTempUsageDetail_20' ) end [2025-03-10 07:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:47:23] Production.INFO: ==16128== Releasing lock... [2025-03-10 07:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:47:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-10 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:48:05 [end_date_ymd] => 2025-03-10 07:48:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 04:48:05' and `end` < '2025-03-10 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-03-10 07:48:17] Production.INFO: count ==147 [2025-03-10 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:48:05 - End Time 2025-03-10 07:48:05 [2025-03-10 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648089', 'tblTempUsageDetail_20' ) start [2025-03-10 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648089', 'tblTempUsageDetail_20' ) end [2025-03-10 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648089', 'tblTempVendorCDR_20' ) start [2025-03-10 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648089', 'tblTempVendorCDR_20' ) end [2025-03-10 07:48:17] Production.INFO: ProcessCDR(1,14648089,1,1,2) [2025-03-10 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648089', 'tblTempUsageDetail_20' ) start [2025-03-10 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648089', 'tblTempUsageDetail_20' ) end [2025-03-10 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:48:22] Production.INFO: ==16211== Releasing lock... [2025-03-10 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:49:05 [end_date_ymd] => 2025-03-10 07:49:05 [RateCDR] => 1 ) [2025-03-10 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:49:05' and `end` < '2025-03-10 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:49:17] Production.INFO: count ==147 [2025-03-10 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:49:05 - End Time 2025-03-10 07:49:05 [2025-03-10 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648094', 'tblTempUsageDetail_20' ) start [2025-03-10 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648094', 'tblTempUsageDetail_20' ) end [2025-03-10 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648094', 'tblTempVendorCDR_20' ) start [2025-03-10 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648094', 'tblTempVendorCDR_20' ) end [2025-03-10 07:49:17] Production.INFO: ProcessCDR(1,14648094,1,1,2) [2025-03-10 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648094', 'tblTempUsageDetail_20' ) start [2025-03-10 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648094', 'tblTempUsageDetail_20' ) end [2025-03-10 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:49:21] Production.INFO: ==16295== Releasing lock... [2025-03-10 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:50:06 [end_date_ymd] => 2025-03-10 07:50:06 [RateCDR] => 1 ) [2025-03-10 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:50:06' and `end` < '2025-03-10 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:50:18] Production.INFO: count ==160 [2025-03-10 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:50:06 - End Time 2025-03-10 07:50:06 [2025-03-10 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648100', 'tblTempUsageDetail_20' ) start [2025-03-10 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648100', 'tblTempUsageDetail_20' ) end [2025-03-10 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648100', 'tblTempVendorCDR_20' ) start [2025-03-10 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648100', 'tblTempVendorCDR_20' ) end [2025-03-10 07:50:18] Production.INFO: ProcessCDR(1,14648100,1,1,2) [2025-03-10 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648100', 'tblTempUsageDetail_20' ) start [2025-03-10 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648100', 'tblTempUsageDetail_20' ) end [2025-03-10 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:50:21] Production.INFO: ==16370== Releasing lock... [2025-03-10 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:51:05 [end_date_ymd] => 2025-03-10 07:51:05 [RateCDR] => 1 ) [2025-03-10 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:51:05' and `end` < '2025-03-10 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:51:17] Production.INFO: count ==182 [2025-03-10 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:51:05 - End Time 2025-03-10 07:51:05 [2025-03-10 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648105', 'tblTempUsageDetail_20' ) start [2025-03-10 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648105', 'tblTempUsageDetail_20' ) end [2025-03-10 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648105', 'tblTempVendorCDR_20' ) start [2025-03-10 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648105', 'tblTempVendorCDR_20' ) end [2025-03-10 07:51:17] Production.INFO: ProcessCDR(1,14648105,1,1,2) [2025-03-10 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648105', 'tblTempUsageDetail_20' ) start [2025-03-10 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648105', 'tblTempUsageDetail_20' ) end [2025-03-10 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:51:22] Production.INFO: ==16445== Releasing lock... [2025-03-10 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:52:06 [end_date_ymd] => 2025-03-10 07:52:06 [RateCDR] => 1 ) [2025-03-10 07:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:52:06' and `end` < '2025-03-10 07:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:52:18] Production.INFO: count ==182 [2025-03-10 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-10 04:52:06 - End Time 2025-03-10 07:52:06 [2025-03-10 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648110', 'tblTempUsageDetail_20' ) start [2025-03-10 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648110', 'tblTempUsageDetail_20' ) end [2025-03-10 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648110', 'tblTempVendorCDR_20' ) start [2025-03-10 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648110', 'tblTempVendorCDR_20' ) end [2025-03-10 07:52:18] Production.INFO: ProcessCDR(1,14648110,1,1,2) [2025-03-10 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648110', 'tblTempUsageDetail_20' ) start [2025-03-10 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648110', 'tblTempUsageDetail_20' ) end [2025-03-10 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:52:21] Production.INFO: ==16557== Releasing lock... [2025-03-10 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:53:05 [end_date_ymd] => 2025-03-10 07:53:05 [RateCDR] => 1 ) [2025-03-10 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:53:05' and `end` < '2025-03-10 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:53:17] Production.INFO: count ==183 [2025-03-10 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:53:05 - End Time 2025-03-10 07:53:05 [2025-03-10 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648115', 'tblTempUsageDetail_20' ) start [2025-03-10 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648115', 'tblTempUsageDetail_20' ) end [2025-03-10 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648115', 'tblTempVendorCDR_20' ) start [2025-03-10 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648115', 'tblTempVendorCDR_20' ) end [2025-03-10 07:53:17] Production.INFO: ProcessCDR(1,14648115,1,1,2) [2025-03-10 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648115', 'tblTempUsageDetail_20' ) start [2025-03-10 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648115', 'tblTempUsageDetail_20' ) end [2025-03-10 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:53:22] Production.INFO: ==16628== Releasing lock... [2025-03-10 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:53:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 07:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:54:04 [end_date_ymd] => 2025-03-10 07:54:04 [RateCDR] => 1 ) [2025-03-10 07:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:54:04' and `end` < '2025-03-10 07:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:54:16] Production.INFO: count ==187 [2025-03-10 07:54:16] Production.ERROR: pbx CDR StartTime 2025-03-10 04:54:04 - End Time 2025-03-10 07:54:04 [2025-03-10 07:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648120', 'tblTempUsageDetail_20' ) start [2025-03-10 07:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648120', 'tblTempUsageDetail_20' ) end [2025-03-10 07:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648120', 'tblTempVendorCDR_20' ) start [2025-03-10 07:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648120', 'tblTempVendorCDR_20' ) end [2025-03-10 07:54:16] Production.INFO: ProcessCDR(1,14648120,1,1,2) [2025-03-10 07:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648120', 'tblTempUsageDetail_20' ) start [2025-03-10 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648120', 'tblTempUsageDetail_20' ) end [2025-03-10 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:54:21] Production.INFO: ==16699== Releasing lock... [2025-03-10 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:54:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:55:05 [end_date_ymd] => 2025-03-10 07:55:05 [RateCDR] => 1 ) [2025-03-10 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:55:05' and `end` < '2025-03-10 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:55:17] Production.INFO: count ==189 [2025-03-10 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:55:05 - End Time 2025-03-10 07:55:05 [2025-03-10 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648125', 'tblTempUsageDetail_20' ) start [2025-03-10 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648125', 'tblTempUsageDetail_20' ) end [2025-03-10 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648125', 'tblTempVendorCDR_20' ) start [2025-03-10 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648125', 'tblTempVendorCDR_20' ) end [2025-03-10 07:55:17] Production.INFO: ProcessCDR(1,14648125,1,1,2) [2025-03-10 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648125', 'tblTempUsageDetail_20' ) start [2025-03-10 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648125', 'tblTempUsageDetail_20' ) end [2025-03-10 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:55:22] Production.INFO: ==16773== Releasing lock... [2025-03-10 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:55:22] Production.INFO: 30 MB #Memory Used# [2025-03-10 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:56:05 [end_date_ymd] => 2025-03-10 07:56:05 [RateCDR] => 1 ) [2025-03-10 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:56:05' and `end` < '2025-03-10 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:56:17] Production.INFO: count ==194 [2025-03-10 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:56:05 - End Time 2025-03-10 07:56:05 [2025-03-10 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648130', 'tblTempUsageDetail_20' ) start [2025-03-10 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648130', 'tblTempUsageDetail_20' ) end [2025-03-10 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648130', 'tblTempVendorCDR_20' ) start [2025-03-10 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648130', 'tblTempVendorCDR_20' ) end [2025-03-10 07:56:17] Production.INFO: ProcessCDR(1,14648130,1,1,2) [2025-03-10 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648130', 'tblTempUsageDetail_20' ) start [2025-03-10 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648130', 'tblTempUsageDetail_20' ) end [2025-03-10 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:56:21] Production.INFO: ==16849== Releasing lock... [2025-03-10 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-10 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:57:05 [end_date_ymd] => 2025-03-10 07:57:05 [RateCDR] => 1 ) [2025-03-10 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:57:05' and `end` < '2025-03-10 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:57:17] Production.INFO: count ==202 [2025-03-10 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:57:05 - End Time 2025-03-10 07:57:05 [2025-03-10 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648135', 'tblTempUsageDetail_20' ) start [2025-03-10 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648135', 'tblTempUsageDetail_20' ) end [2025-03-10 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648135', 'tblTempVendorCDR_20' ) start [2025-03-10 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648135', 'tblTempVendorCDR_20' ) end [2025-03-10 07:57:17] Production.INFO: ProcessCDR(1,14648135,1,1,2) [2025-03-10 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648135', 'tblTempUsageDetail_20' ) start [2025-03-10 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648135', 'tblTempUsageDetail_20' ) end [2025-03-10 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:57:22] Production.INFO: ==16923== Releasing lock... [2025-03-10 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:57:22] Production.INFO: 30 MB #Memory Used# [2025-03-10 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:58:05 [end_date_ymd] => 2025-03-10 07:58:05 [RateCDR] => 1 ) [2025-03-10 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:58:05' and `end` < '2025-03-10 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:58:17] Production.INFO: count ==202 [2025-03-10 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:58:05 - End Time 2025-03-10 07:58:05 [2025-03-10 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648140', 'tblTempUsageDetail_20' ) start [2025-03-10 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648140', 'tblTempUsageDetail_20' ) end [2025-03-10 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648140', 'tblTempVendorCDR_20' ) start [2025-03-10 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648140', 'tblTempVendorCDR_20' ) end [2025-03-10 07:58:17] Production.INFO: ProcessCDR(1,14648140,1,1,2) [2025-03-10 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648140', 'tblTempUsageDetail_20' ) start [2025-03-10 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648140', 'tblTempUsageDetail_20' ) end [2025-03-10 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:58:21] Production.INFO: ==16995== Releasing lock... [2025-03-10 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:58:21] Production.INFO: 30 MB #Memory Used# [2025-03-10 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 04:59:05 [end_date_ymd] => 2025-03-10 07:59:05 [RateCDR] => 1 ) [2025-03-10 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 04:59:05' and `end` < '2025-03-10 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 07:59:17] Production.INFO: count ==204 [2025-03-10 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-10 04:59:05 - End Time 2025-03-10 07:59:05 [2025-03-10 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648145', 'tblTempUsageDetail_20' ) start [2025-03-10 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648145', 'tblTempUsageDetail_20' ) end [2025-03-10 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648145', 'tblTempVendorCDR_20' ) start [2025-03-10 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648145', 'tblTempVendorCDR_20' ) end [2025-03-10 07:59:17] Production.INFO: ProcessCDR(1,14648145,1,1,2) [2025-03-10 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648145', 'tblTempUsageDetail_20' ) start [2025-03-10 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648145', 'tblTempUsageDetail_20' ) end [2025-03-10 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 07:59:22] Production.INFO: ==17065== Releasing lock... [2025-03-10 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 07:59:22] Production.INFO: 30 MB #Memory Used# [2025-03-10 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:00:06 [end_date_ymd] => 2025-03-10 08:00:06 [RateCDR] => 1 ) [2025-03-10 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:00:06' and `end` < '2025-03-10 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:00:18] Production.INFO: count ==199 [2025-03-10 08:00:19] Production.ERROR: pbx CDR StartTime 2025-03-10 05:00:06 - End Time 2025-03-10 08:00:06 [2025-03-10 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648151', 'tblTempUsageDetail_20' ) start [2025-03-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648151', 'tblTempUsageDetail_20' ) end [2025-03-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648151', 'tblTempVendorCDR_20' ) start [2025-03-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648151', 'tblTempVendorCDR_20' ) end [2025-03-10 08:00:19] Production.INFO: ProcessCDR(1,14648151,1,1,2) [2025-03-10 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648151', 'tblTempUsageDetail_20' ) start [2025-03-10 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648151', 'tblTempUsageDetail_20' ) end [2025-03-10 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:00:22] Production.INFO: ==17138== Releasing lock... [2025-03-10 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-10 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:01:05 [end_date_ymd] => 2025-03-10 08:01:05 [RateCDR] => 1 ) [2025-03-10 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:01:05' and `end` < '2025-03-10 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:01:17] Production.INFO: count ==199 [2025-03-10 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:01:05 - End Time 2025-03-10 08:01:05 [2025-03-10 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648156', 'tblTempUsageDetail_20' ) start [2025-03-10 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648156', 'tblTempUsageDetail_20' ) end [2025-03-10 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648156', 'tblTempVendorCDR_20' ) start [2025-03-10 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648156', 'tblTempVendorCDR_20' ) end [2025-03-10 08:01:17] Production.INFO: ProcessCDR(1,14648156,1,1,2) [2025-03-10 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648156', 'tblTempUsageDetail_20' ) start [2025-03-10 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648156', 'tblTempUsageDetail_20' ) end [2025-03-10 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:01:20] Production.INFO: ==17229== Releasing lock... [2025-03-10 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:01:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:02:05 [end_date_ymd] => 2025-03-10 08:02:05 [RateCDR] => 1 ) [2025-03-10 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:02:05' and `end` < '2025-03-10 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:02:17] Production.INFO: count ==210 [2025-03-10 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:02:05 - End Time 2025-03-10 08:02:05 [2025-03-10 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648161', 'tblTempUsageDetail_20' ) start [2025-03-10 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648161', 'tblTempUsageDetail_20' ) end [2025-03-10 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648161', 'tblTempVendorCDR_20' ) start [2025-03-10 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648161', 'tblTempVendorCDR_20' ) end [2025-03-10 08:02:17] Production.INFO: ProcessCDR(1,14648161,1,1,2) [2025-03-10 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648161', 'tblTempUsageDetail_20' ) start [2025-03-10 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648161', 'tblTempUsageDetail_20' ) end [2025-03-10 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:02:21] Production.INFO: ==17300== Releasing lock... [2025-03-10 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:02:21] Production.INFO: 30 MB #Memory Used# [2025-03-10 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:03:05 [end_date_ymd] => 2025-03-10 08:03:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 05:03:05' and `end` < '2025-03-10 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-03-10 08:03:17] Production.INFO: count ==211 [2025-03-10 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:03:05 - End Time 2025-03-10 08:03:05 [2025-03-10 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648166', 'tblTempUsageDetail_20' ) start [2025-03-10 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648166', 'tblTempUsageDetail_20' ) end [2025-03-10 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648166', 'tblTempVendorCDR_20' ) start [2025-03-10 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648166', 'tblTempVendorCDR_20' ) end [2025-03-10 08:03:17] Production.INFO: ProcessCDR(1,14648166,1,1,2) [2025-03-10 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648166', 'tblTempUsageDetail_20' ) start [2025-03-10 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648166', 'tblTempUsageDetail_20' ) end [2025-03-10 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:03:21] Production.INFO: ==17375== Releasing lock... [2025-03-10 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-10 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:04:06 [end_date_ymd] => 2025-03-10 08:04:06 [RateCDR] => 1 ) [2025-03-10 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:04:06' and `end` < '2025-03-10 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:04:18] Production.INFO: count ==219 [2025-03-10 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:04:06 - End Time 2025-03-10 08:04:06 [2025-03-10 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648171', 'tblTempUsageDetail_20' ) start [2025-03-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648171', 'tblTempUsageDetail_20' ) end [2025-03-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648171', 'tblTempVendorCDR_20' ) start [2025-03-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648171', 'tblTempVendorCDR_20' ) end [2025-03-10 08:04:18] Production.INFO: ProcessCDR(1,14648171,1,1,2) [2025-03-10 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648171', 'tblTempUsageDetail_20' ) start [2025-03-10 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648171', 'tblTempUsageDetail_20' ) end [2025-03-10 08:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:04:24] Production.INFO: ==17448== Releasing lock... [2025-03-10 08:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:04:24] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:05:05 [end_date_ymd] => 2025-03-10 08:05:05 [RateCDR] => 1 ) [2025-03-10 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:05:05' and `end` < '2025-03-10 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:05:17] Production.INFO: count ==222 [2025-03-10 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:05:05 - End Time 2025-03-10 08:05:05 [2025-03-10 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648176', 'tblTempUsageDetail_20' ) start [2025-03-10 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648176', 'tblTempUsageDetail_20' ) end [2025-03-10 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648176', 'tblTempVendorCDR_20' ) start [2025-03-10 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648176', 'tblTempVendorCDR_20' ) end [2025-03-10 08:05:17] Production.INFO: ProcessCDR(1,14648176,1,1,2) [2025-03-10 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648176', 'tblTempUsageDetail_20' ) start [2025-03-10 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648176', 'tblTempUsageDetail_20' ) end [2025-03-10 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:05:21] Production.INFO: ==17518== Releasing lock... [2025-03-10 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-10 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:06:06 [end_date_ymd] => 2025-03-10 08:06:06 [RateCDR] => 1 ) [2025-03-10 08:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:06:06' and `end` < '2025-03-10 08:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:06:18] Production.INFO: count ==242 [2025-03-10 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:06:06 - End Time 2025-03-10 08:06:06 [2025-03-10 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648181', 'tblTempUsageDetail_20' ) start [2025-03-10 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648181', 'tblTempUsageDetail_20' ) end [2025-03-10 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648181', 'tblTempVendorCDR_20' ) start [2025-03-10 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648181', 'tblTempVendorCDR_20' ) end [2025-03-10 08:06:18] Production.INFO: ProcessCDR(1,14648181,1,1,2) [2025-03-10 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648181', 'tblTempUsageDetail_20' ) start [2025-03-10 08:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648181', 'tblTempUsageDetail_20' ) end [2025-03-10 08:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:06:24] Production.INFO: ==17590== Releasing lock... [2025-03-10 08:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:06:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:07:05 [end_date_ymd] => 2025-03-10 08:07:05 [RateCDR] => 1 ) [2025-03-10 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:07:05' and `end` < '2025-03-10 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:07:17] Production.INFO: count ==259 [2025-03-10 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:07:05 - End Time 2025-03-10 08:07:05 [2025-03-10 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648186', 'tblTempUsageDetail_20' ) start [2025-03-10 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648186', 'tblTempUsageDetail_20' ) end [2025-03-10 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648186', 'tblTempVendorCDR_20' ) start [2025-03-10 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648186', 'tblTempVendorCDR_20' ) end [2025-03-10 08:07:17] Production.INFO: ProcessCDR(1,14648186,1,1,2) [2025-03-10 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648186', 'tblTempUsageDetail_20' ) start [2025-03-10 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648186', 'tblTempUsageDetail_20' ) end [2025-03-10 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:07:21] Production.INFO: ==17662== Releasing lock... [2025-03-10 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:08:06 [end_date_ymd] => 2025-03-10 08:08:06 [RateCDR] => 1 ) [2025-03-10 08:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:08:06' and `end` < '2025-03-10 08:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:08:18] Production.INFO: count ==267 [2025-03-10 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:08:06 - End Time 2025-03-10 08:08:06 [2025-03-10 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648191', 'tblTempUsageDetail_20' ) start [2025-03-10 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648191', 'tblTempUsageDetail_20' ) end [2025-03-10 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648191', 'tblTempVendorCDR_20' ) start [2025-03-10 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648191', 'tblTempVendorCDR_20' ) end [2025-03-10 08:08:18] Production.INFO: ProcessCDR(1,14648191,1,1,2) [2025-03-10 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648191', 'tblTempUsageDetail_20' ) start [2025-03-10 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648191', 'tblTempUsageDetail_20' ) end [2025-03-10 08:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:08:24] Production.INFO: ==17774== Releasing lock... [2025-03-10 08:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:08:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:09:05 [end_date_ymd] => 2025-03-10 08:09:05 [RateCDR] => 1 ) [2025-03-10 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:09:05' and `end` < '2025-03-10 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:09:17] Production.INFO: count ==287 [2025-03-10 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:09:05 - End Time 2025-03-10 08:09:05 [2025-03-10 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648196', 'tblTempUsageDetail_20' ) start [2025-03-10 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648196', 'tblTempUsageDetail_20' ) end [2025-03-10 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648196', 'tblTempVendorCDR_20' ) start [2025-03-10 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648196', 'tblTempVendorCDR_20' ) end [2025-03-10 08:09:17] Production.INFO: ProcessCDR(1,14648196,1,1,2) [2025-03-10 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648196', 'tblTempUsageDetail_20' ) start [2025-03-10 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648196', 'tblTempUsageDetail_20' ) end [2025-03-10 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:09:21] Production.INFO: ==17848== Releasing lock... [2025-03-10 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-10 08:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:10:07 [end_date_ymd] => 2025-03-10 08:10:07 [RateCDR] => 1 ) [2025-03-10 08:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:10:07' and `end` < '2025-03-10 08:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:10:19] Production.INFO: count ==312 [2025-03-10 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-10 05:10:07 - End Time 2025-03-10 08:10:07 [2025-03-10 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648202', 'tblTempUsageDetail_20' ) start [2025-03-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648202', 'tblTempUsageDetail_20' ) end [2025-03-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648202', 'tblTempVendorCDR_20' ) start [2025-03-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648202', 'tblTempVendorCDR_20' ) end [2025-03-10 08:10:19] Production.INFO: ProcessCDR(1,14648202,1,1,2) [2025-03-10 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648202', 'tblTempUsageDetail_20' ) start [2025-03-10 08:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648202', 'tblTempUsageDetail_20' ) end [2025-03-10 08:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:10:25] Production.INFO: ==17920== Releasing lock... [2025-03-10 08:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:10:25] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:11:05 [end_date_ymd] => 2025-03-10 08:11:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 05:11:05' and `end` < '2025-03-10 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-03-10 08:11:17] Production.INFO: count ==340 [2025-03-10 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:11:05 - End Time 2025-03-10 08:11:05 [2025-03-10 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648207', 'tblTempUsageDetail_20' ) start [2025-03-10 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648207', 'tblTempUsageDetail_20' ) end [2025-03-10 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648207', 'tblTempVendorCDR_20' ) start [2025-03-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648207', 'tblTempVendorCDR_20' ) end [2025-03-10 08:11:18] Production.INFO: ProcessCDR(1,14648207,1,1,2) [2025-03-10 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648207', 'tblTempUsageDetail_20' ) start [2025-03-10 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648207', 'tblTempUsageDetail_20' ) end [2025-03-10 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:11:21] Production.INFO: ==17998== Releasing lock... [2025-03-10 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:12:06 [end_date_ymd] => 2025-03-10 08:12:06 [RateCDR] => 1 ) [2025-03-10 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:12:06' and `end` < '2025-03-10 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:12:18] Production.INFO: count ==341 [2025-03-10 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:12:06 - End Time 2025-03-10 08:12:06 [2025-03-10 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648212', 'tblTempUsageDetail_20' ) start [2025-03-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648212', 'tblTempUsageDetail_20' ) end [2025-03-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648212', 'tblTempVendorCDR_20' ) start [2025-03-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648212', 'tblTempVendorCDR_20' ) end [2025-03-10 08:12:18] Production.INFO: ProcessCDR(1,14648212,1,1,2) [2025-03-10 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648212', 'tblTempUsageDetail_20' ) start [2025-03-10 08:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648212', 'tblTempUsageDetail_20' ) end [2025-03-10 08:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:12:24] Production.INFO: ==18076== Releasing lock... [2025-03-10 08:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:12:24] Production.INFO: 31 MB #Memory Used# [2025-03-10 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:13:05 [end_date_ymd] => 2025-03-10 08:13:05 [RateCDR] => 1 ) [2025-03-10 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:13:05' and `end` < '2025-03-10 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:13:18] Production.INFO: count ==342 [2025-03-10 08:13:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:13:05 - End Time 2025-03-10 08:13:05 [2025-03-10 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648217', 'tblTempUsageDetail_20' ) start [2025-03-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648217', 'tblTempUsageDetail_20' ) end [2025-03-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648217', 'tblTempVendorCDR_20' ) start [2025-03-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648217', 'tblTempVendorCDR_20' ) end [2025-03-10 08:13:18] Production.INFO: ProcessCDR(1,14648217,1,1,2) [2025-03-10 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648217', 'tblTempUsageDetail_20' ) start [2025-03-10 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648217', 'tblTempUsageDetail_20' ) end [2025-03-10 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:13:23] Production.INFO: ==18151== Releasing lock... [2025-03-10 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:13:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-10 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:14:06 [end_date_ymd] => 2025-03-10 08:14:06 [RateCDR] => 1 ) [2025-03-10 08:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:14:06' and `end` < '2025-03-10 08:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:14:18] Production.INFO: count ==345 [2025-03-10 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:14:06 - End Time 2025-03-10 08:14:06 [2025-03-10 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648222', 'tblTempUsageDetail_20' ) start [2025-03-10 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648222', 'tblTempUsageDetail_20' ) end [2025-03-10 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648222', 'tblTempVendorCDR_20' ) start [2025-03-10 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648222', 'tblTempVendorCDR_20' ) end [2025-03-10 08:14:18] Production.INFO: ProcessCDR(1,14648222,1,1,2) [2025-03-10 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648222', 'tblTempUsageDetail_20' ) start [2025-03-10 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648222', 'tblTempUsageDetail_20' ) end [2025-03-10 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:14:23] Production.INFO: ==18225== Releasing lock... [2025-03-10 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:14:23] Production.INFO: 31 MB #Memory Used# [2025-03-10 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:15:05 [end_date_ymd] => 2025-03-10 08:15:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 05:15:05' and `end` < '2025-03-10 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-03-10 08:15:17] Production.INFO: count ==345 [2025-03-10 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:15:05 - End Time 2025-03-10 08:15:05 [2025-03-10 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648227', 'tblTempUsageDetail_20' ) start [2025-03-10 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648227', 'tblTempUsageDetail_20' ) end [2025-03-10 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648227', 'tblTempVendorCDR_20' ) start [2025-03-10 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648227', 'tblTempVendorCDR_20' ) end [2025-03-10 08:15:17] Production.INFO: ProcessCDR(1,14648227,1,1,2) [2025-03-10 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648227', 'tblTempUsageDetail_20' ) start [2025-03-10 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648227', 'tblTempUsageDetail_20' ) end [2025-03-10 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:15:21] Production.INFO: ==18298== Releasing lock... [2025-03-10 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:15:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:16:06 [end_date_ymd] => 2025-03-10 08:16:06 [RateCDR] => 1 ) [2025-03-10 08:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:16:06' and `end` < '2025-03-10 08:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:16:18] Production.INFO: count ==347 [2025-03-10 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:16:06 - End Time 2025-03-10 08:16:06 [2025-03-10 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648232', 'tblTempUsageDetail_20' ) start [2025-03-10 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648232', 'tblTempUsageDetail_20' ) end [2025-03-10 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648232', 'tblTempVendorCDR_20' ) start [2025-03-10 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648232', 'tblTempVendorCDR_20' ) end [2025-03-10 08:16:18] Production.INFO: ProcessCDR(1,14648232,1,1,2) [2025-03-10 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648232', 'tblTempUsageDetail_20' ) start [2025-03-10 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648232', 'tblTempUsageDetail_20' ) end [2025-03-10 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:16:23] Production.INFO: ==18373== Releasing lock... [2025-03-10 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:16:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-10 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:17:05 [end_date_ymd] => 2025-03-10 08:17:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 05:17:05' and `end` < '2025-03-10 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-03-10 08:17:17] Production.INFO: count ==358 [2025-03-10 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:17:05 - End Time 2025-03-10 08:17:05 [2025-03-10 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648237', 'tblTempUsageDetail_20' ) start [2025-03-10 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648237', 'tblTempUsageDetail_20' ) end [2025-03-10 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648237', 'tblTempVendorCDR_20' ) start [2025-03-10 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648237', 'tblTempVendorCDR_20' ) end [2025-03-10 08:17:17] Production.INFO: ProcessCDR(1,14648237,1,1,2) [2025-03-10 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648237', 'tblTempUsageDetail_20' ) start [2025-03-10 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648237', 'tblTempUsageDetail_20' ) end [2025-03-10 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:17:21] Production.INFO: ==18444== Releasing lock... [2025-03-10 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:17:21] Production.INFO: 31 MB #Memory Used# [2025-03-10 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:18:05 [end_date_ymd] => 2025-03-10 08:18:05 [RateCDR] => 1 ) [2025-03-10 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:18:05' and `end` < '2025-03-10 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:18:17] Production.INFO: count ==366 [2025-03-10 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:18:05 - End Time 2025-03-10 08:18:05 [2025-03-10 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648242', 'tblTempUsageDetail_20' ) start [2025-03-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648242', 'tblTempUsageDetail_20' ) end [2025-03-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648242', 'tblTempVendorCDR_20' ) start [2025-03-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648242', 'tblTempVendorCDR_20' ) end [2025-03-10 08:18:18] Production.INFO: ProcessCDR(1,14648242,1,1,2) [2025-03-10 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648242', 'tblTempUsageDetail_20' ) start [2025-03-10 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648242', 'tblTempUsageDetail_20' ) end [2025-03-10 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:18:23] Production.INFO: ==18518== Releasing lock... [2025-03-10 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:18:23] Production.INFO: 31 MB #Memory Used# [2025-03-10 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:19:05 [end_date_ymd] => 2025-03-10 08:19:05 [RateCDR] => 1 ) [2025-03-10 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:19:05' and `end` < '2025-03-10 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:19:17] Production.INFO: count ==368 [2025-03-10 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:19:05 - End Time 2025-03-10 08:19:05 [2025-03-10 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648247', 'tblTempUsageDetail_20' ) start [2025-03-10 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648247', 'tblTempUsageDetail_20' ) end [2025-03-10 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648247', 'tblTempVendorCDR_20' ) start [2025-03-10 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648247', 'tblTempVendorCDR_20' ) end [2025-03-10 08:19:17] Production.INFO: ProcessCDR(1,14648247,1,1,2) [2025-03-10 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648247', 'tblTempUsageDetail_20' ) start [2025-03-10 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648247', 'tblTempUsageDetail_20' ) end [2025-03-10 08:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:19:20] Production.INFO: ==18591== Releasing lock... [2025-03-10 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:19:20] Production.INFO: 31 MB #Memory Used# [2025-03-10 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:20:06 [end_date_ymd] => 2025-03-10 08:20:06 [RateCDR] => 1 ) [2025-03-10 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:20:06' and `end` < '2025-03-10 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:20:18] Production.INFO: count ==402 [2025-03-10 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:20:06 - End Time 2025-03-10 08:20:06 [2025-03-10 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648252', 'tblTempUsageDetail_20' ) start [2025-03-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648252', 'tblTempUsageDetail_20' ) end [2025-03-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648252', 'tblTempVendorCDR_20' ) start [2025-03-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648252', 'tblTempVendorCDR_20' ) end [2025-03-10 08:20:18] Production.INFO: ProcessCDR(1,14648252,1,1,2) [2025-03-10 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648252', 'tblTempUsageDetail_20' ) start [2025-03-10 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648252', 'tblTempUsageDetail_20' ) end [2025-03-10 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:20:23] Production.INFO: ==18667== Releasing lock... [2025-03-10 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:20:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-10 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:21:05 [end_date_ymd] => 2025-03-10 08:21:05 [RateCDR] => 1 ) [2025-03-10 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:21:05' and `end` < '2025-03-10 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:21:17] Production.INFO: count ==454 [2025-03-10 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:21:05 - End Time 2025-03-10 08:21:05 [2025-03-10 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648258', 'tblTempUsageDetail_20' ) start [2025-03-10 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648258', 'tblTempUsageDetail_20' ) end [2025-03-10 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648258', 'tblTempVendorCDR_20' ) start [2025-03-10 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648258', 'tblTempVendorCDR_20' ) end [2025-03-10 08:21:17] Production.INFO: ProcessCDR(1,14648258,1,1,2) [2025-03-10 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648258', 'tblTempUsageDetail_20' ) start [2025-03-10 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648258', 'tblTempUsageDetail_20' ) end [2025-03-10 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:21:22] Production.INFO: ==18743== Releasing lock... [2025-03-10 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:21:22] Production.INFO: 32 MB #Memory Used# [2025-03-10 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:22:05 [end_date_ymd] => 2025-03-10 08:22:05 [RateCDR] => 1 ) [2025-03-10 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:22:05' and `end` < '2025-03-10 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:22:18] Production.INFO: count ==477 [2025-03-10 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:22:05 - End Time 2025-03-10 08:22:05 [2025-03-10 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648263', 'tblTempUsageDetail_20' ) start [2025-03-10 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648263', 'tblTempUsageDetail_20' ) end [2025-03-10 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648263', 'tblTempVendorCDR_20' ) start [2025-03-10 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648263', 'tblTempVendorCDR_20' ) end [2025-03-10 08:22:18] Production.INFO: ProcessCDR(1,14648263,1,1,2) [2025-03-10 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648263', 'tblTempUsageDetail_20' ) start [2025-03-10 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648263', 'tblTempUsageDetail_20' ) end [2025-03-10 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:22:21] Production.INFO: ==18820== Releasing lock... [2025-03-10 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:22:21] Production.INFO: 32 MB #Memory Used# [2025-03-10 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:23:05 [end_date_ymd] => 2025-03-10 08:23:05 [RateCDR] => 1 ) [2025-03-10 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:23:05' and `end` < '2025-03-10 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:23:17] Production.INFO: count ==502 [2025-03-10 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:23:05 - End Time 2025-03-10 08:23:05 [2025-03-10 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648268', 'tblTempUsageDetail_20' ) start [2025-03-10 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648268', 'tblTempUsageDetail_20' ) end [2025-03-10 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648268', 'tblTempVendorCDR_20' ) start [2025-03-10 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648268', 'tblTempVendorCDR_20' ) end [2025-03-10 08:23:17] Production.INFO: ProcessCDR(1,14648268,1,1,2) [2025-03-10 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648268', 'tblTempUsageDetail_20' ) start [2025-03-10 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648268', 'tblTempUsageDetail_20' ) end [2025-03-10 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:23:22] Production.INFO: ==18930== Releasing lock... [2025-03-10 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:23:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-10 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:24:06 [end_date_ymd] => 2025-03-10 08:24:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 05:24:06' and `end` < '2025-03-10 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-03-10 08:24:18] Production.INFO: count ==509 [2025-03-10 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:24:06 - End Time 2025-03-10 08:24:06 [2025-03-10 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648273', 'tblTempUsageDetail_20' ) start [2025-03-10 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648273', 'tblTempUsageDetail_20' ) end [2025-03-10 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648273', 'tblTempVendorCDR_20' ) start [2025-03-10 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648273', 'tblTempVendorCDR_20' ) end [2025-03-10 08:24:18] Production.INFO: ProcessCDR(1,14648273,1,1,2) [2025-03-10 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648273', 'tblTempUsageDetail_20' ) start [2025-03-10 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648273', 'tblTempUsageDetail_20' ) end [2025-03-10 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:24:23] Production.INFO: ==19001== Releasing lock... [2025-03-10 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:24:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-10 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:25:05 [end_date_ymd] => 2025-03-10 08:25:05 [RateCDR] => 1 ) [2025-03-10 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:25:05' and `end` < '2025-03-10 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:25:17] Production.INFO: count ==519 [2025-03-10 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:25:05 - End Time 2025-03-10 08:25:05 [2025-03-10 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648278', 'tblTempUsageDetail_20' ) start [2025-03-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648278', 'tblTempUsageDetail_20' ) end [2025-03-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648278', 'tblTempVendorCDR_20' ) start [2025-03-10 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648278', 'tblTempVendorCDR_20' ) end [2025-03-10 08:25:17] Production.INFO: ProcessCDR(1,14648278,1,1,2) [2025-03-10 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648278', 'tblTempUsageDetail_20' ) start [2025-03-10 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648278', 'tblTempUsageDetail_20' ) end [2025-03-10 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:25:21] Production.INFO: ==19074== Releasing lock... [2025-03-10 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:25:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-10 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:26:05 [end_date_ymd] => 2025-03-10 08:26:05 [RateCDR] => 1 ) [2025-03-10 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:26:05' and `end` < '2025-03-10 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:26:17] Production.INFO: count ==529 [2025-03-10 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:26:05 - End Time 2025-03-10 08:26:05 [2025-03-10 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648283', 'tblTempUsageDetail_20' ) start [2025-03-10 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648283', 'tblTempUsageDetail_20' ) end [2025-03-10 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648283', 'tblTempVendorCDR_20' ) start [2025-03-10 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648283', 'tblTempVendorCDR_20' ) end [2025-03-10 08:26:17] Production.INFO: ProcessCDR(1,14648283,1,1,2) [2025-03-10 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648283', 'tblTempUsageDetail_20' ) start [2025-03-10 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648283', 'tblTempUsageDetail_20' ) end [2025-03-10 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:26:20] Production.INFO: ==19154== Releasing lock... [2025-03-10 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:26:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-10 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:27:05 [end_date_ymd] => 2025-03-10 08:27:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 05:27:05' and `end` < '2025-03-10 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-03-10 08:27:17] Production.INFO: count ==530 [2025-03-10 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:27:05 - End Time 2025-03-10 08:27:05 [2025-03-10 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648288', 'tblTempUsageDetail_20' ) start [2025-03-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648288', 'tblTempUsageDetail_20' ) end [2025-03-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648288', 'tblTempVendorCDR_20' ) start [2025-03-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648288', 'tblTempVendorCDR_20' ) end [2025-03-10 08:27:17] Production.INFO: ProcessCDR(1,14648288,1,1,2) [2025-03-10 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648288', 'tblTempUsageDetail_20' ) start [2025-03-10 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648288', 'tblTempUsageDetail_20' ) end [2025-03-10 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:27:22] Production.INFO: ==19226== Releasing lock... [2025-03-10 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:27:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-10 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:28:05 [end_date_ymd] => 2025-03-10 08:28:05 [RateCDR] => 1 ) [2025-03-10 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:28:05' and `end` < '2025-03-10 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:28:17] Production.INFO: count ==534 [2025-03-10 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:28:05 - End Time 2025-03-10 08:28:05 [2025-03-10 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648293', 'tblTempUsageDetail_20' ) start [2025-03-10 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648293', 'tblTempUsageDetail_20' ) end [2025-03-10 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648293', 'tblTempVendorCDR_20' ) start [2025-03-10 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648293', 'tblTempVendorCDR_20' ) end [2025-03-10 08:28:17] Production.INFO: ProcessCDR(1,14648293,1,1,2) [2025-03-10 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648293', 'tblTempUsageDetail_20' ) start [2025-03-10 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648293', 'tblTempUsageDetail_20' ) end [2025-03-10 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:28:22] Production.INFO: ==19302== Releasing lock... [2025-03-10 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:28:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-10 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:29:06 [end_date_ymd] => 2025-03-10 08:29:06 [RateCDR] => 1 ) [2025-03-10 08:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:29:06' and `end` < '2025-03-10 08:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:29:18] Production.INFO: count ==535 [2025-03-10 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:29:06 - End Time 2025-03-10 08:29:06 [2025-03-10 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648298', 'tblTempUsageDetail_20' ) start [2025-03-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648298', 'tblTempUsageDetail_20' ) end [2025-03-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648298', 'tblTempVendorCDR_20' ) start [2025-03-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648298', 'tblTempVendorCDR_20' ) end [2025-03-10 08:29:18] Production.INFO: ProcessCDR(1,14648298,1,1,2) [2025-03-10 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648298', 'tblTempUsageDetail_20' ) start [2025-03-10 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648298', 'tblTempUsageDetail_20' ) end [2025-03-10 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:29:21] Production.INFO: ==19374== Releasing lock... [2025-03-10 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-10 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:30:05 [end_date_ymd] => 2025-03-10 08:30:05 [RateCDR] => 1 ) [2025-03-10 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:30:05' and `end` < '2025-03-10 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:30:18] Production.INFO: count ==554 [2025-03-10 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:30:05 - End Time 2025-03-10 08:30:05 [2025-03-10 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648303', 'tblTempUsageDetail_20' ) start [2025-03-10 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648303', 'tblTempUsageDetail_20' ) end [2025-03-10 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648303', 'tblTempVendorCDR_20' ) start [2025-03-10 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648303', 'tblTempVendorCDR_20' ) end [2025-03-10 08:30:18] Production.INFO: ProcessCDR(1,14648303,1,1,2) [2025-03-10 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648303', 'tblTempUsageDetail_20' ) start [2025-03-10 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648303', 'tblTempUsageDetail_20' ) end [2025-03-10 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:30:23] Production.INFO: ==19449== Releasing lock... [2025-03-10 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:30:23] Production.INFO: 33 MB #Memory Used# [2025-03-10 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:31:06 [end_date_ymd] => 2025-03-10 08:31:06 [RateCDR] => 1 ) [2025-03-10 08:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:31:06' and `end` < '2025-03-10 08:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:31:18] Production.INFO: count ==596 [2025-03-10 08:31:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:31:06 - End Time 2025-03-10 08:31:06 [2025-03-10 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648309', 'tblTempUsageDetail_20' ) start [2025-03-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648309', 'tblTempUsageDetail_20' ) end [2025-03-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648309', 'tblTempVendorCDR_20' ) start [2025-03-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648309', 'tblTempVendorCDR_20' ) end [2025-03-10 08:31:18] Production.INFO: ProcessCDR(1,14648309,1,1,2) [2025-03-10 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648309', 'tblTempUsageDetail_20' ) start [2025-03-10 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648309', 'tblTempUsageDetail_20' ) end [2025-03-10 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:31:23] Production.INFO: ==19524== Releasing lock... [2025-03-10 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:31:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:32:05 [end_date_ymd] => 2025-03-10 08:32:05 [RateCDR] => 1 ) [2025-03-10 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:32:05' and `end` < '2025-03-10 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:32:17] Production.INFO: count ==609 [2025-03-10 08:32:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:32:05 - End Time 2025-03-10 08:32:05 [2025-03-10 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648314', 'tblTempUsageDetail_20' ) start [2025-03-10 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648314', 'tblTempUsageDetail_20' ) end [2025-03-10 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648314', 'tblTempVendorCDR_20' ) start [2025-03-10 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648314', 'tblTempVendorCDR_20' ) end [2025-03-10 08:32:18] Production.INFO: ProcessCDR(1,14648314,1,1,2) [2025-03-10 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648314', 'tblTempUsageDetail_20' ) start [2025-03-10 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648314', 'tblTempUsageDetail_20' ) end [2025-03-10 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:32:21] Production.INFO: ==19593== Releasing lock... [2025-03-10 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:32:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:33:05 [end_date_ymd] => 2025-03-10 08:33:05 [RateCDR] => 1 ) [2025-03-10 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:33:05' and `end` < '2025-03-10 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:33:17] Production.INFO: count ==627 [2025-03-10 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:33:05 - End Time 2025-03-10 08:33:05 [2025-03-10 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648319', 'tblTempUsageDetail_20' ) start [2025-03-10 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648319', 'tblTempUsageDetail_20' ) end [2025-03-10 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648319', 'tblTempVendorCDR_20' ) start [2025-03-10 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648319', 'tblTempVendorCDR_20' ) end [2025-03-10 08:33:17] Production.INFO: ProcessCDR(1,14648319,1,1,2) [2025-03-10 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648319', 'tblTempUsageDetail_20' ) start [2025-03-10 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648319', 'tblTempUsageDetail_20' ) end [2025-03-10 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:33:22] Production.INFO: ==19664== Releasing lock... [2025-03-10 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:34:05 [end_date_ymd] => 2025-03-10 08:34:05 [RateCDR] => 1 ) [2025-03-10 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:34:05' and `end` < '2025-03-10 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:34:17] Production.INFO: count ==639 [2025-03-10 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:34:05 - End Time 2025-03-10 08:34:05 [2025-03-10 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648324', 'tblTempUsageDetail_20' ) start [2025-03-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648324', 'tblTempUsageDetail_20' ) end [2025-03-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648324', 'tblTempVendorCDR_20' ) start [2025-03-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648324', 'tblTempVendorCDR_20' ) end [2025-03-10 08:34:18] Production.INFO: ProcessCDR(1,14648324,1,1,2) [2025-03-10 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648324', 'tblTempUsageDetail_20' ) start [2025-03-10 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648324', 'tblTempUsageDetail_20' ) end [2025-03-10 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:34:23] Production.INFO: ==19739== Releasing lock... [2025-03-10 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:34:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-10 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:35:06 [end_date_ymd] => 2025-03-10 08:35:06 [RateCDR] => 1 ) [2025-03-10 08:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:35:06' and `end` < '2025-03-10 08:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:35:18] Production.INFO: count ==647 [2025-03-10 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:35:06 - End Time 2025-03-10 08:35:06 [2025-03-10 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648329', 'tblTempUsageDetail_20' ) start [2025-03-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648329', 'tblTempUsageDetail_20' ) end [2025-03-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648329', 'tblTempVendorCDR_20' ) start [2025-03-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648329', 'tblTempVendorCDR_20' ) end [2025-03-10 08:35:18] Production.INFO: ProcessCDR(1,14648329,1,1,2) [2025-03-10 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648329', 'tblTempUsageDetail_20' ) start [2025-03-10 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648329', 'tblTempUsageDetail_20' ) end [2025-03-10 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:35:22] Production.INFO: ==19808== Releasing lock... [2025-03-10 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:35:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:36:05 [end_date_ymd] => 2025-03-10 08:36:05 [RateCDR] => 1 ) [2025-03-10 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:36:05' and `end` < '2025-03-10 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:36:18] Production.INFO: count ==656 [2025-03-10 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:36:05 - End Time 2025-03-10 08:36:05 [2025-03-10 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648334', 'tblTempUsageDetail_20' ) start [2025-03-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648334', 'tblTempUsageDetail_20' ) end [2025-03-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648334', 'tblTempVendorCDR_20' ) start [2025-03-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648334', 'tblTempVendorCDR_20' ) end [2025-03-10 08:36:18] Production.INFO: ProcessCDR(1,14648334,1,1,2) [2025-03-10 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648334', 'tblTempUsageDetail_20' ) start [2025-03-10 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648334', 'tblTempUsageDetail_20' ) end [2025-03-10 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:36:21] Production.INFO: ==19883== Releasing lock... [2025-03-10 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:36:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:37:05 [end_date_ymd] => 2025-03-10 08:37:05 [RateCDR] => 1 ) [2025-03-10 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:37:05' and `end` < '2025-03-10 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:37:18] Production.INFO: count ==665 [2025-03-10 08:37:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:37:05 - End Time 2025-03-10 08:37:05 [2025-03-10 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648339', 'tblTempUsageDetail_20' ) start [2025-03-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648339', 'tblTempUsageDetail_20' ) end [2025-03-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648339', 'tblTempVendorCDR_20' ) start [2025-03-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648339', 'tblTempVendorCDR_20' ) end [2025-03-10 08:37:18] Production.INFO: ProcessCDR(1,14648339,1,1,2) [2025-03-10 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648339', 'tblTempUsageDetail_20' ) start [2025-03-10 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648339', 'tblTempUsageDetail_20' ) end [2025-03-10 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:37:21] Production.INFO: ==19953== Releasing lock... [2025-03-10 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:37:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:38:05 [end_date_ymd] => 2025-03-10 08:38:05 [RateCDR] => 1 ) [2025-03-10 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:38:05' and `end` < '2025-03-10 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:38:17] Production.INFO: count ==670 [2025-03-10 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:38:05 - End Time 2025-03-10 08:38:05 [2025-03-10 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648344', 'tblTempUsageDetail_20' ) start [2025-03-10 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648344', 'tblTempUsageDetail_20' ) end [2025-03-10 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648344', 'tblTempVendorCDR_20' ) start [2025-03-10 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648344', 'tblTempVendorCDR_20' ) end [2025-03-10 08:38:17] Production.INFO: ProcessCDR(1,14648344,1,1,2) [2025-03-10 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648344', 'tblTempUsageDetail_20' ) start [2025-03-10 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648344', 'tblTempUsageDetail_20' ) end [2025-03-10 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:38:21] Production.INFO: ==20027== Releasing lock... [2025-03-10 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:38:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:39:05 [end_date_ymd] => 2025-03-10 08:39:05 [RateCDR] => 1 ) [2025-03-10 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:39:05' and `end` < '2025-03-10 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:39:18] Production.INFO: count ==683 [2025-03-10 08:39:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:39:05 - End Time 2025-03-10 08:39:05 [2025-03-10 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648349', 'tblTempUsageDetail_20' ) start [2025-03-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648349', 'tblTempUsageDetail_20' ) end [2025-03-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648349', 'tblTempVendorCDR_20' ) start [2025-03-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648349', 'tblTempVendorCDR_20' ) end [2025-03-10 08:39:18] Production.INFO: ProcessCDR(1,14648349,1,1,2) [2025-03-10 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648349', 'tblTempUsageDetail_20' ) start [2025-03-10 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648349', 'tblTempUsageDetail_20' ) end [2025-03-10 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:39:21] Production.INFO: ==20138== Releasing lock... [2025-03-10 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:39:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:40:06 [end_date_ymd] => 2025-03-10 08:40:06 [RateCDR] => 1 ) [2025-03-10 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:40:06' and `end` < '2025-03-10 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:40:18] Production.INFO: count ==688 [2025-03-10 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:40:06 - End Time 2025-03-10 08:40:06 [2025-03-10 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648355', 'tblTempUsageDetail_20' ) start [2025-03-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648355', 'tblTempUsageDetail_20' ) end [2025-03-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648355', 'tblTempVendorCDR_20' ) start [2025-03-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648355', 'tblTempVendorCDR_20' ) end [2025-03-10 08:40:18] Production.INFO: ProcessCDR(1,14648355,1,1,2) [2025-03-10 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648355', 'tblTempUsageDetail_20' ) start [2025-03-10 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648355', 'tblTempUsageDetail_20' ) end [2025-03-10 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:40:21] Production.INFO: ==20225== Releasing lock... [2025-03-10 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:40:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:41:06 [end_date_ymd] => 2025-03-10 08:41:06 [RateCDR] => 1 ) [2025-03-10 08:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:41:06' and `end` < '2025-03-10 08:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:41:18] Production.INFO: count ==731 [2025-03-10 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:41:06 - End Time 2025-03-10 08:41:06 [2025-03-10 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648360', 'tblTempUsageDetail_20' ) start [2025-03-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648360', 'tblTempUsageDetail_20' ) end [2025-03-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648360', 'tblTempVendorCDR_20' ) start [2025-03-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648360', 'tblTempVendorCDR_20' ) end [2025-03-10 08:41:18] Production.INFO: ProcessCDR(1,14648360,1,1,2) [2025-03-10 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648360', 'tblTempUsageDetail_20' ) start [2025-03-10 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648360', 'tblTempUsageDetail_20' ) end [2025-03-10 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:41:24] Production.INFO: ==20298== Releasing lock... [2025-03-10 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:41:24] Production.INFO: 34 MB #Memory Used# [2025-03-10 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:42:05 [end_date_ymd] => 2025-03-10 08:42:05 [RateCDR] => 1 ) [2025-03-10 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:42:05' and `end` < '2025-03-10 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:42:17] Production.INFO: count ==738 [2025-03-10 08:42:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:42:05 - End Time 2025-03-10 08:42:05 [2025-03-10 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648365', 'tblTempUsageDetail_20' ) start [2025-03-10 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648365', 'tblTempUsageDetail_20' ) end [2025-03-10 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648365', 'tblTempVendorCDR_20' ) start [2025-03-10 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648365', 'tblTempVendorCDR_20' ) end [2025-03-10 08:42:17] Production.INFO: ProcessCDR(1,14648365,1,1,2) [2025-03-10 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648365', 'tblTempUsageDetail_20' ) start [2025-03-10 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648365', 'tblTempUsageDetail_20' ) end [2025-03-10 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:42:22] Production.INFO: ==20370== Releasing lock... [2025-03-10 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:42:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-10 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:43:05 [end_date_ymd] => 2025-03-10 08:43:05 [RateCDR] => 1 ) [2025-03-10 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:43:05' and `end` < '2025-03-10 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:43:18] Production.INFO: count ==747 [2025-03-10 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:43:05 - End Time 2025-03-10 08:43:05 [2025-03-10 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648370', 'tblTempUsageDetail_20' ) start [2025-03-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648370', 'tblTempUsageDetail_20' ) end [2025-03-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648370', 'tblTempVendorCDR_20' ) start [2025-03-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648370', 'tblTempVendorCDR_20' ) end [2025-03-10 08:43:18] Production.INFO: ProcessCDR(1,14648370,1,1,2) [2025-03-10 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648370', 'tblTempUsageDetail_20' ) start [2025-03-10 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648370', 'tblTempUsageDetail_20' ) end [2025-03-10 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:43:23] Production.INFO: ==20441== Releasing lock... [2025-03-10 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:43:23] Production.INFO: 34 MB #Memory Used# [2025-03-10 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:44:05 [end_date_ymd] => 2025-03-10 08:44:05 [RateCDR] => 1 ) [2025-03-10 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:44:05' and `end` < '2025-03-10 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:44:17] Production.INFO: count ==747 [2025-03-10 08:44:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:44:05 - End Time 2025-03-10 08:44:05 [2025-03-10 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648375', 'tblTempUsageDetail_20' ) start [2025-03-10 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648375', 'tblTempUsageDetail_20' ) end [2025-03-10 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648375', 'tblTempVendorCDR_20' ) start [2025-03-10 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648375', 'tblTempVendorCDR_20' ) end [2025-03-10 08:44:17] Production.INFO: ProcessCDR(1,14648375,1,1,2) [2025-03-10 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648375', 'tblTempUsageDetail_20' ) start [2025-03-10 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648375', 'tblTempUsageDetail_20' ) end [2025-03-10 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:44:21] Production.INFO: ==20514== Releasing lock... [2025-03-10 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:44:21] Production.INFO: 34 MB #Memory Used# [2025-03-10 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:45:06 [end_date_ymd] => 2025-03-10 08:45:06 [RateCDR] => 1 ) [2025-03-10 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:45:06' and `end` < '2025-03-10 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:45:18] Production.INFO: count ==754 [2025-03-10 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:45:06 - End Time 2025-03-10 08:45:06 [2025-03-10 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648380', 'tblTempUsageDetail_20' ) start [2025-03-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648380', 'tblTempUsageDetail_20' ) end [2025-03-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648380', 'tblTempVendorCDR_20' ) start [2025-03-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648380', 'tblTempVendorCDR_20' ) end [2025-03-10 08:45:18] Production.INFO: ProcessCDR(1,14648380,1,1,2) [2025-03-10 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648380', 'tblTempUsageDetail_20' ) start [2025-03-10 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648380', 'tblTempUsageDetail_20' ) end [2025-03-10 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:45:21] Production.INFO: ==20589== Releasing lock... [2025-03-10 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:45:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-10 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:46:05 [end_date_ymd] => 2025-03-10 08:46:05 [RateCDR] => 1 ) [2025-03-10 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:46:05' and `end` < '2025-03-10 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:46:17] Production.INFO: count ==764 [2025-03-10 08:46:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:46:05 - End Time 2025-03-10 08:46:05 [2025-03-10 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648385', 'tblTempUsageDetail_20' ) start [2025-03-10 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648385', 'tblTempUsageDetail_20' ) end [2025-03-10 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648385', 'tblTempVendorCDR_20' ) start [2025-03-10 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648385', 'tblTempVendorCDR_20' ) end [2025-03-10 08:46:17] Production.INFO: ProcessCDR(1,14648385,1,1,2) [2025-03-10 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648385', 'tblTempUsageDetail_20' ) start [2025-03-10 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648385', 'tblTempUsageDetail_20' ) end [2025-03-10 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:46:22] Production.INFO: ==20658== Releasing lock... [2025-03-10 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:46:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-10 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:47:05 [end_date_ymd] => 2025-03-10 08:47:05 [RateCDR] => 1 ) [2025-03-10 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:47:05' and `end` < '2025-03-10 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:47:17] Production.INFO: count ==773 [2025-03-10 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:47:05 - End Time 2025-03-10 08:47:05 [2025-03-10 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648390', 'tblTempUsageDetail_20' ) start [2025-03-10 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648390', 'tblTempUsageDetail_20' ) end [2025-03-10 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648390', 'tblTempVendorCDR_20' ) start [2025-03-10 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648390', 'tblTempVendorCDR_20' ) end [2025-03-10 08:47:17] Production.INFO: ProcessCDR(1,14648390,1,1,2) [2025-03-10 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648390', 'tblTempUsageDetail_20' ) start [2025-03-10 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648390', 'tblTempUsageDetail_20' ) end [2025-03-10 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:47:22] Production.INFO: ==20730== Releasing lock... [2025-03-10 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:47:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-10 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:48:05 [end_date_ymd] => 2025-03-10 08:48:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 05:48:05' and `end` < '2025-03-10 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-03-10 08:48:17] Production.INFO: count ==793 [2025-03-10 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:48:05 - End Time 2025-03-10 08:48:05 [2025-03-10 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648395', 'tblTempUsageDetail_20' ) start [2025-03-10 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648395', 'tblTempUsageDetail_20' ) end [2025-03-10 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648395', 'tblTempVendorCDR_20' ) start [2025-03-10 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648395', 'tblTempVendorCDR_20' ) end [2025-03-10 08:48:17] Production.INFO: ProcessCDR(1,14648395,1,1,2) [2025-03-10 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648395', 'tblTempUsageDetail_20' ) start [2025-03-10 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648395', 'tblTempUsageDetail_20' ) end [2025-03-10 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:48:21] Production.INFO: ==20800== Releasing lock... [2025-03-10 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:48:21] Production.INFO: 34 MB #Memory Used# [2025-03-10 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:49:05 [end_date_ymd] => 2025-03-10 08:49:05 [RateCDR] => 1 ) [2025-03-10 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:49:05' and `end` < '2025-03-10 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:49:17] Production.INFO: count ==794 [2025-03-10 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:49:05 - End Time 2025-03-10 08:49:05 [2025-03-10 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648400', 'tblTempUsageDetail_20' ) start [2025-03-10 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648400', 'tblTempUsageDetail_20' ) end [2025-03-10 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648400', 'tblTempVendorCDR_20' ) start [2025-03-10 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648400', 'tblTempVendorCDR_20' ) end [2025-03-10 08:49:18] Production.INFO: ProcessCDR(1,14648400,1,1,2) [2025-03-10 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648400', 'tblTempUsageDetail_20' ) start [2025-03-10 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648400', 'tblTempUsageDetail_20' ) end [2025-03-10 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:49:23] Production.INFO: ==20872== Releasing lock... [2025-03-10 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:49:23] Production.INFO: 34 MB #Memory Used# [2025-03-10 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:50:06 [end_date_ymd] => 2025-03-10 08:50:06 [RateCDR] => 1 ) [2025-03-10 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:50:06' and `end` < '2025-03-10 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:50:19] Production.INFO: count ==808 [2025-03-10 08:50:19] Production.ERROR: pbx CDR StartTime 2025-03-10 05:50:06 - End Time 2025-03-10 08:50:06 [2025-03-10 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648405', 'tblTempUsageDetail_20' ) start [2025-03-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648405', 'tblTempUsageDetail_20' ) end [2025-03-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648405', 'tblTempVendorCDR_20' ) start [2025-03-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648405', 'tblTempVendorCDR_20' ) end [2025-03-10 08:50:19] Production.INFO: ProcessCDR(1,14648405,1,1,2) [2025-03-10 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648405', 'tblTempUsageDetail_20' ) start [2025-03-10 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648405', 'tblTempUsageDetail_20' ) end [2025-03-10 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:50:24] Production.INFO: ==20945== Releasing lock... [2025-03-10 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:50:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-10 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:51:05 [end_date_ymd] => 2025-03-10 08:51:05 [RateCDR] => 1 ) [2025-03-10 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:51:05' and `end` < '2025-03-10 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:51:17] Production.INFO: count ==841 [2025-03-10 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:51:05 - End Time 2025-03-10 08:51:05 [2025-03-10 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648411', 'tblTempUsageDetail_20' ) start [2025-03-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648411', 'tblTempUsageDetail_20' ) end [2025-03-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648411', 'tblTempVendorCDR_20' ) start [2025-03-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648411', 'tblTempVendorCDR_20' ) end [2025-03-10 08:51:18] Production.INFO: ProcessCDR(1,14648411,1,1,2) [2025-03-10 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648411', 'tblTempUsageDetail_20' ) start [2025-03-10 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648411', 'tblTempUsageDetail_20' ) end [2025-03-10 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:51:23] Production.INFO: ==21019== Releasing lock... [2025-03-10 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:51:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-10 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:52:05 [end_date_ymd] => 2025-03-10 08:52:05 [RateCDR] => 1 ) [2025-03-10 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:52:05' and `end` < '2025-03-10 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:52:17] Production.INFO: count ==843 [2025-03-10 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:52:05 - End Time 2025-03-10 08:52:05 [2025-03-10 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648416', 'tblTempUsageDetail_20' ) start [2025-03-10 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648416', 'tblTempUsageDetail_20' ) end [2025-03-10 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648416', 'tblTempVendorCDR_20' ) start [2025-03-10 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648416', 'tblTempVendorCDR_20' ) end [2025-03-10 08:52:18] Production.INFO: ProcessCDR(1,14648416,1,1,2) [2025-03-10 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648416', 'tblTempUsageDetail_20' ) start [2025-03-10 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648416', 'tblTempUsageDetail_20' ) end [2025-03-10 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:52:22] Production.INFO: ==21090== Releasing lock... [2025-03-10 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:52:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-10 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:53:05 [end_date_ymd] => 2025-03-10 08:53:05 [RateCDR] => 1 ) [2025-03-10 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:53:05' and `end` < '2025-03-10 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:53:18] Production.INFO: count ==859 [2025-03-10 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:53:05 - End Time 2025-03-10 08:53:05 [2025-03-10 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648421', 'tblTempUsageDetail_20' ) start [2025-03-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648421', 'tblTempUsageDetail_20' ) end [2025-03-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648421', 'tblTempVendorCDR_20' ) start [2025-03-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648421', 'tblTempVendorCDR_20' ) end [2025-03-10 08:53:18] Production.INFO: ProcessCDR(1,14648421,1,1,2) [2025-03-10 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648421', 'tblTempUsageDetail_20' ) start [2025-03-10 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648421', 'tblTempUsageDetail_20' ) end [2025-03-10 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:53:22] Production.INFO: ==21165== Releasing lock... [2025-03-10 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:53:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-10 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:54:05 [end_date_ymd] => 2025-03-10 08:54:05 [RateCDR] => 1 ) [2025-03-10 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:54:05' and `end` < '2025-03-10 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:54:18] Production.INFO: count ==866 [2025-03-10 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:54:05 - End Time 2025-03-10 08:54:05 [2025-03-10 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648426', 'tblTempUsageDetail_20' ) start [2025-03-10 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648426', 'tblTempUsageDetail_20' ) end [2025-03-10 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648426', 'tblTempVendorCDR_20' ) start [2025-03-10 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648426', 'tblTempVendorCDR_20' ) end [2025-03-10 08:54:18] Production.INFO: ProcessCDR(1,14648426,1,1,2) [2025-03-10 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648426', 'tblTempUsageDetail_20' ) start [2025-03-10 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648426', 'tblTempUsageDetail_20' ) end [2025-03-10 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:54:21] Production.INFO: ==21276== Releasing lock... [2025-03-10 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:54:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-10 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:55:06 [end_date_ymd] => 2025-03-10 08:55:06 [RateCDR] => 1 ) [2025-03-10 08:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:55:06' and `end` < '2025-03-10 08:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:55:18] Production.INFO: count ==866 [2025-03-10 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:55:06 - End Time 2025-03-10 08:55:06 [2025-03-10 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648431', 'tblTempUsageDetail_20' ) start [2025-03-10 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648431', 'tblTempUsageDetail_20' ) end [2025-03-10 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648431', 'tblTempVendorCDR_20' ) start [2025-03-10 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648431', 'tblTempVendorCDR_20' ) end [2025-03-10 08:55:18] Production.INFO: ProcessCDR(1,14648431,1,1,2) [2025-03-10 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648431', 'tblTempUsageDetail_20' ) start [2025-03-10 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648431', 'tblTempUsageDetail_20' ) end [2025-03-10 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:55:21] Production.INFO: ==21351== Releasing lock... [2025-03-10 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:55:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-10 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:56:05 [end_date_ymd] => 2025-03-10 08:56:05 [RateCDR] => 1 ) [2025-03-10 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:56:05' and `end` < '2025-03-10 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:56:17] Production.INFO: count ==868 [2025-03-10 08:56:17] Production.ERROR: pbx CDR StartTime 2025-03-10 05:56:05 - End Time 2025-03-10 08:56:05 [2025-03-10 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648436', 'tblTempUsageDetail_20' ) start [2025-03-10 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648436', 'tblTempUsageDetail_20' ) end [2025-03-10 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648436', 'tblTempVendorCDR_20' ) start [2025-03-10 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648436', 'tblTempVendorCDR_20' ) end [2025-03-10 08:56:17] Production.INFO: ProcessCDR(1,14648436,1,1,2) [2025-03-10 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648436', 'tblTempUsageDetail_20' ) start [2025-03-10 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648436', 'tblTempUsageDetail_20' ) end [2025-03-10 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:56:22] Production.INFO: ==21422== Releasing lock... [2025-03-10 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:56:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-10 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:57:06 [end_date_ymd] => 2025-03-10 08:57:06 [RateCDR] => 1 ) [2025-03-10 08:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:57:06' and `end` < '2025-03-10 08:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:57:18] Production.INFO: count ==873 [2025-03-10 08:57:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:57:06 - End Time 2025-03-10 08:57:06 [2025-03-10 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648441', 'tblTempUsageDetail_20' ) start [2025-03-10 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648441', 'tblTempUsageDetail_20' ) end [2025-03-10 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648441', 'tblTempVendorCDR_20' ) start [2025-03-10 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648441', 'tblTempVendorCDR_20' ) end [2025-03-10 08:57:18] Production.INFO: ProcessCDR(1,14648441,1,1,2) [2025-03-10 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648441', 'tblTempUsageDetail_20' ) start [2025-03-10 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648441', 'tblTempUsageDetail_20' ) end [2025-03-10 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:57:22] Production.INFO: ==21496== Releasing lock... [2025-03-10 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:57:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-10 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:58:06 [end_date_ymd] => 2025-03-10 08:58:06 [RateCDR] => 1 ) [2025-03-10 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:58:06' and `end` < '2025-03-10 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:58:18] Production.INFO: count ==871 [2025-03-10 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:58:06 - End Time 2025-03-10 08:58:06 [2025-03-10 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648446', 'tblTempUsageDetail_20' ) start [2025-03-10 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648446', 'tblTempUsageDetail_20' ) end [2025-03-10 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648446', 'tblTempVendorCDR_20' ) start [2025-03-10 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648446', 'tblTempVendorCDR_20' ) end [2025-03-10 08:58:18] Production.INFO: ProcessCDR(1,14648446,1,1,2) [2025-03-10 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648446', 'tblTempUsageDetail_20' ) start [2025-03-10 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648446', 'tblTempUsageDetail_20' ) end [2025-03-10 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:58:23] Production.INFO: ==21591== Releasing lock... [2025-03-10 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:58:23] Production.INFO: 35 MB #Memory Used# [2025-03-10 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 05:59:05 [end_date_ymd] => 2025-03-10 08:59:05 [RateCDR] => 1 ) [2025-03-10 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 05:59:05' and `end` < '2025-03-10 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 08:59:18] Production.INFO: count ==872 [2025-03-10 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-10 05:59:05 - End Time 2025-03-10 08:59:05 [2025-03-10 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648451', 'tblTempUsageDetail_20' ) start [2025-03-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648451', 'tblTempUsageDetail_20' ) end [2025-03-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648451', 'tblTempVendorCDR_20' ) start [2025-03-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648451', 'tblTempVendorCDR_20' ) end [2025-03-10 08:59:18] Production.INFO: ProcessCDR(1,14648451,1,1,2) [2025-03-10 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648451', 'tblTempUsageDetail_20' ) start [2025-03-10 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648451', 'tblTempUsageDetail_20' ) end [2025-03-10 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 08:59:21] Production.INFO: ==21697== Releasing lock... [2025-03-10 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 08:59:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-10 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:00:05 [end_date_ymd] => 2025-03-10 09:00:05 [RateCDR] => 1 ) [2025-03-10 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:00:05' and `end` < '2025-03-10 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:00:17] Production.INFO: count ==892 [2025-03-10 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:00:05 - End Time 2025-03-10 09:00:05 [2025-03-10 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648456', 'tblTempUsageDetail_20' ) start [2025-03-10 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648456', 'tblTempUsageDetail_20' ) end [2025-03-10 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648456', 'tblTempVendorCDR_20' ) start [2025-03-10 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648456', 'tblTempVendorCDR_20' ) end [2025-03-10 09:00:18] Production.INFO: ProcessCDR(1,14648456,1,1,2) [2025-03-10 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648456', 'tblTempUsageDetail_20' ) start [2025-03-10 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648456', 'tblTempUsageDetail_20' ) end [2025-03-10 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:00:23] Production.INFO: ==21797== Releasing lock... [2025-03-10 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:00:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-10 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:01:05 [end_date_ymd] => 2025-03-10 09:01:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:01:05' and `end` < '2025-03-10 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-03-10 09:01:18] Production.INFO: count ==954 [2025-03-10 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:01:05 - End Time 2025-03-10 09:01:05 [2025-03-10 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648462', 'tblTempUsageDetail_20' ) start [2025-03-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648462', 'tblTempUsageDetail_20' ) end [2025-03-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648462', 'tblTempVendorCDR_20' ) start [2025-03-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648462', 'tblTempVendorCDR_20' ) end [2025-03-10 09:01:18] Production.INFO: ProcessCDR(1,14648462,1,1,2) [2025-03-10 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648462', 'tblTempUsageDetail_20' ) start [2025-03-10 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648462', 'tblTempUsageDetail_20' ) end [2025-03-10 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:01:23] Production.INFO: ==21910== Releasing lock... [2025-03-10 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:01:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-10 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:02:05 [end_date_ymd] => 2025-03-10 09:02:05 [RateCDR] => 1 ) [2025-03-10 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:02:05' and `end` < '2025-03-10 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:02:17] Production.INFO: count ==967 [2025-03-10 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:02:05 - End Time 2025-03-10 09:02:05 [2025-03-10 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648467', 'tblTempUsageDetail_20' ) start [2025-03-10 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648467', 'tblTempUsageDetail_20' ) end [2025-03-10 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648467', 'tblTempVendorCDR_20' ) start [2025-03-10 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648467', 'tblTempVendorCDR_20' ) end [2025-03-10 09:02:18] Production.INFO: ProcessCDR(1,14648467,1,1,2) [2025-03-10 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648467', 'tblTempUsageDetail_20' ) start [2025-03-10 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648467', 'tblTempUsageDetail_20' ) end [2025-03-10 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:02:23] Production.INFO: ==22006== Releasing lock... [2025-03-10 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:02:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-10 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:03:06 [end_date_ymd] => 2025-03-10 09:03:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:03:06' and `end` < '2025-03-10 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-03-10 09:03:18] Production.INFO: count ==973 [2025-03-10 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:03:06 - End Time 2025-03-10 09:03:06 [2025-03-10 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648472', 'tblTempUsageDetail_20' ) start [2025-03-10 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648472', 'tblTempUsageDetail_20' ) end [2025-03-10 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648472', 'tblTempVendorCDR_20' ) start [2025-03-10 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648472', 'tblTempVendorCDR_20' ) end [2025-03-10 09:03:18] Production.INFO: ProcessCDR(1,14648472,1,1,2) [2025-03-10 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648472', 'tblTempUsageDetail_20' ) start [2025-03-10 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648472', 'tblTempUsageDetail_20' ) end [2025-03-10 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:03:24] Production.INFO: ==22105== Releasing lock... [2025-03-10 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:03:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-10 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:04:06 [end_date_ymd] => 2025-03-10 09:04:06 [RateCDR] => 1 ) [2025-03-10 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:04:06' and `end` < '2025-03-10 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:04:18] Production.INFO: count ==990 [2025-03-10 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:04:06 - End Time 2025-03-10 09:04:06 [2025-03-10 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648477', 'tblTempUsageDetail_20' ) start [2025-03-10 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648477', 'tblTempUsageDetail_20' ) end [2025-03-10 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648477', 'tblTempVendorCDR_20' ) start [2025-03-10 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648477', 'tblTempVendorCDR_20' ) end [2025-03-10 09:04:18] Production.INFO: ProcessCDR(1,14648477,1,1,2) [2025-03-10 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648477', 'tblTempUsageDetail_20' ) start [2025-03-10 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648477', 'tblTempUsageDetail_20' ) end [2025-03-10 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:04:24] Production.INFO: ==22211== Releasing lock... [2025-03-10 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:04:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-10 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:05:06 [end_date_ymd] => 2025-03-10 09:05:06 [RateCDR] => 1 ) [2025-03-10 09:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:05:06' and `end` < '2025-03-10 09:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:05:18] Production.INFO: count ==1022 [2025-03-10 09:05:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:05:06 - End Time 2025-03-10 09:05:06 [2025-03-10 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648482', 'tblTempUsageDetail_20' ) start [2025-03-10 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648482', 'tblTempUsageDetail_20' ) end [2025-03-10 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648482', 'tblTempVendorCDR_20' ) start [2025-03-10 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648482', 'tblTempVendorCDR_20' ) end [2025-03-10 09:05:19] Production.INFO: ProcessCDR(1,14648482,1,1,2) [2025-03-10 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648482', 'tblTempUsageDetail_20' ) start [2025-03-10 09:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648482', 'tblTempUsageDetail_20' ) end [2025-03-10 09:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:05:25] Production.INFO: ==22322== Releasing lock... [2025-03-10 09:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:05:25] Production.INFO: 36 MB #Memory Used# [2025-03-10 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:06:05 [end_date_ymd] => 2025-03-10 09:06:05 [RateCDR] => 1 ) [2025-03-10 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:06:05' and `end` < '2025-03-10 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:06:18] Production.INFO: count ==1047 [2025-03-10 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:06:05 - End Time 2025-03-10 09:06:05 [2025-03-10 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648487', 'tblTempUsageDetail_20' ) start [2025-03-10 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648487', 'tblTempUsageDetail_20' ) end [2025-03-10 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648487', 'tblTempVendorCDR_20' ) start [2025-03-10 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648487', 'tblTempVendorCDR_20' ) end [2025-03-10 09:06:18] Production.INFO: ProcessCDR(1,14648487,1,1,2) [2025-03-10 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648487', 'tblTempUsageDetail_20' ) start [2025-03-10 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648487', 'tblTempUsageDetail_20' ) end [2025-03-10 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:06:24] Production.INFO: ==22431== Releasing lock... [2025-03-10 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:06:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-10 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:07:06 [end_date_ymd] => 2025-03-10 09:07:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:07:06' and `end` < '2025-03-10 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-03-10 09:07:18] Production.INFO: count ==1069 [2025-03-10 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:07:06 - End Time 2025-03-10 09:07:06 [2025-03-10 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648492', 'tblTempUsageDetail_20' ) start [2025-03-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648492', 'tblTempUsageDetail_20' ) end [2025-03-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648492', 'tblTempVendorCDR_20' ) start [2025-03-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648492', 'tblTempVendorCDR_20' ) end [2025-03-10 09:07:18] Production.INFO: ProcessCDR(1,14648492,1,1,2) [2025-03-10 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648492', 'tblTempUsageDetail_20' ) start [2025-03-10 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648492', 'tblTempUsageDetail_20' ) end [2025-03-10 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:07:24] Production.INFO: ==22538== Releasing lock... [2025-03-10 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:07:24] Production.INFO: 36 MB #Memory Used# [2025-03-10 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:08:05 [end_date_ymd] => 2025-03-10 09:08:05 [RateCDR] => 1 ) [2025-03-10 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:08:05' and `end` < '2025-03-10 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:08:17] Production.INFO: count ==1096 [2025-03-10 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:08:05 - End Time 2025-03-10 09:08:05 [2025-03-10 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648497', 'tblTempUsageDetail_20' ) start [2025-03-10 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648497', 'tblTempUsageDetail_20' ) end [2025-03-10 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648497', 'tblTempVendorCDR_20' ) start [2025-03-10 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648497', 'tblTempVendorCDR_20' ) end [2025-03-10 09:08:18] Production.INFO: ProcessCDR(1,14648497,1,1,2) [2025-03-10 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648497', 'tblTempUsageDetail_20' ) start [2025-03-10 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648497', 'tblTempUsageDetail_20' ) end [2025-03-10 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:08:23] Production.INFO: ==22645== Releasing lock... [2025-03-10 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:08:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-10 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:09:06 [end_date_ymd] => 2025-03-10 09:09:06 [RateCDR] => 1 ) [2025-03-10 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:09:06' and `end` < '2025-03-10 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:09:18] Production.INFO: count ==1104 [2025-03-10 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:09:06 - End Time 2025-03-10 09:09:06 [2025-03-10 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648502', 'tblTempUsageDetail_20' ) start [2025-03-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648502', 'tblTempUsageDetail_20' ) end [2025-03-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648502', 'tblTempVendorCDR_20' ) start [2025-03-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648502', 'tblTempVendorCDR_20' ) end [2025-03-10 09:09:18] Production.INFO: ProcessCDR(1,14648502,1,1,2) [2025-03-10 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648502', 'tblTempUsageDetail_20' ) start [2025-03-10 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648502', 'tblTempUsageDetail_20' ) end [2025-03-10 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:09:24] Production.INFO: ==22795== Releasing lock... [2025-03-10 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:09:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-10 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:10:07 [end_date_ymd] => 2025-03-10 09:10:07 [RateCDR] => 1 ) [2025-03-10 09:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:10:07' and `end` < '2025-03-10 09:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:10:19] Production.INFO: count ==1128 [2025-03-10 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:10:07 - End Time 2025-03-10 09:10:07 [2025-03-10 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648508', 'tblTempUsageDetail_20' ) start [2025-03-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648508', 'tblTempUsageDetail_20' ) end [2025-03-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648508', 'tblTempVendorCDR_20' ) start [2025-03-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648508', 'tblTempVendorCDR_20' ) end [2025-03-10 09:10:19] Production.INFO: ProcessCDR(1,14648508,1,1,2) [2025-03-10 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648508', 'tblTempUsageDetail_20' ) start [2025-03-10 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648508', 'tblTempUsageDetail_20' ) end [2025-03-10 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:10:25] Production.INFO: ==22903== Releasing lock... [2025-03-10 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:10:25] Production.INFO: 36.5 MB #Memory Used# [2025-03-10 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:11:05 [end_date_ymd] => 2025-03-10 09:11:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:11:05' and `end` < '2025-03-10 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-03-10 09:11:18] Production.INFO: count ==1207 [2025-03-10 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:11:05 - End Time 2025-03-10 09:11:05 [2025-03-10 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648513', 'tblTempUsageDetail_20' ) start [2025-03-10 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648513', 'tblTempUsageDetail_20' ) end [2025-03-10 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648513', 'tblTempVendorCDR_20' ) start [2025-03-10 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648513', 'tblTempVendorCDR_20' ) end [2025-03-10 09:11:18] Production.INFO: ProcessCDR(1,14648513,1,1,2) [2025-03-10 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648513', 'tblTempUsageDetail_20' ) start [2025-03-10 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648513', 'tblTempUsageDetail_20' ) end [2025-03-10 09:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:11:24] Production.INFO: ==23008== Releasing lock... [2025-03-10 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:11:24] Production.INFO: 37 MB #Memory Used# [2025-03-10 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:12:05 [end_date_ymd] => 2025-03-10 09:12:05 [RateCDR] => 1 ) [2025-03-10 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:12:05' and `end` < '2025-03-10 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:12:18] Production.INFO: count ==1232 [2025-03-10 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:12:05 - End Time 2025-03-10 09:12:05 [2025-03-10 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648518', 'tblTempUsageDetail_20' ) start [2025-03-10 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648518', 'tblTempUsageDetail_20' ) end [2025-03-10 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648518', 'tblTempVendorCDR_20' ) start [2025-03-10 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648518', 'tblTempVendorCDR_20' ) end [2025-03-10 09:12:18] Production.INFO: ProcessCDR(1,14648518,1,1,2) [2025-03-10 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648518', 'tblTempUsageDetail_20' ) start [2025-03-10 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648518', 'tblTempUsageDetail_20' ) end [2025-03-10 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:12:22] Production.INFO: ==23106== Releasing lock... [2025-03-10 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:12:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-10 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:13:06 [end_date_ymd] => 2025-03-10 09:13:06 [RateCDR] => 1 ) [2025-03-10 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:13:06' and `end` < '2025-03-10 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:13:18] Production.INFO: count ==1265 [2025-03-10 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:13:06 - End Time 2025-03-10 09:13:06 [2025-03-10 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648523', 'tblTempUsageDetail_20' ) start [2025-03-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648523', 'tblTempUsageDetail_20' ) end [2025-03-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648523', 'tblTempVendorCDR_20' ) start [2025-03-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648523', 'tblTempVendorCDR_20' ) end [2025-03-10 09:13:18] Production.INFO: ProcessCDR(1,14648523,1,1,2) [2025-03-10 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648523', 'tblTempUsageDetail_20' ) start [2025-03-10 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648523', 'tblTempUsageDetail_20' ) end [2025-03-10 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:13:24] Production.INFO: ==23205== Releasing lock... [2025-03-10 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:13:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-10 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:14:05 [end_date_ymd] => 2025-03-10 09:14:05 [RateCDR] => 1 ) [2025-03-10 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:14:05' and `end` < '2025-03-10 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:14:18] Production.INFO: count ==1288 [2025-03-10 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:14:05 - End Time 2025-03-10 09:14:05 [2025-03-10 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648528', 'tblTempUsageDetail_20' ) start [2025-03-10 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648528', 'tblTempUsageDetail_20' ) end [2025-03-10 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648528', 'tblTempVendorCDR_20' ) start [2025-03-10 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648528', 'tblTempVendorCDR_20' ) end [2025-03-10 09:14:18] Production.INFO: ProcessCDR(1,14648528,1,1,2) [2025-03-10 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648528', 'tblTempUsageDetail_20' ) start [2025-03-10 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648528', 'tblTempUsageDetail_20' ) end [2025-03-10 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:14:24] Production.INFO: ==23302== Releasing lock... [2025-03-10 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:14:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-10 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:15:06 [end_date_ymd] => 2025-03-10 09:15:06 [RateCDR] => 1 ) [2025-03-10 09:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:15:06' and `end` < '2025-03-10 09:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:15:18] Production.INFO: count ==1297 [2025-03-10 09:15:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:15:06 - End Time 2025-03-10 09:15:06 [2025-03-10 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648533', 'tblTempUsageDetail_20' ) start [2025-03-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648533', 'tblTempUsageDetail_20' ) end [2025-03-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648533', 'tblTempVendorCDR_20' ) start [2025-03-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648533', 'tblTempVendorCDR_20' ) end [2025-03-10 09:15:19] Production.INFO: ProcessCDR(1,14648533,1,1,2) [2025-03-10 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648533', 'tblTempUsageDetail_20' ) start [2025-03-10 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648533', 'tblTempUsageDetail_20' ) end [2025-03-10 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:15:24] Production.INFO: ==23399== Releasing lock... [2025-03-10 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:15:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-10 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:16:05 [end_date_ymd] => 2025-03-10 09:16:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:16:05' and `end` < '2025-03-10 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:16:17] Production.INFO: count ==1322 [2025-03-10 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:16:05 - End Time 2025-03-10 09:16:05 [2025-03-10 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648538', 'tblTempUsageDetail_20' ) start [2025-03-10 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648538', 'tblTempUsageDetail_20' ) end [2025-03-10 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648538', 'tblTempVendorCDR_20' ) start [2025-03-10 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648538', 'tblTempVendorCDR_20' ) end [2025-03-10 09:16:18] Production.INFO: ProcessCDR(1,14648538,1,1,2) [2025-03-10 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648538', 'tblTempUsageDetail_20' ) start [2025-03-10 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648538', 'tblTempUsageDetail_20' ) end [2025-03-10 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:16:22] Production.INFO: ==23472== Releasing lock... [2025-03-10 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-10 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:17:05 [end_date_ymd] => 2025-03-10 09:17:05 [RateCDR] => 1 ) [2025-03-10 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:17:05' and `end` < '2025-03-10 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:17:18] Production.INFO: count ==1339 [2025-03-10 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:17:05 - End Time 2025-03-10 09:17:05 [2025-03-10 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648543', 'tblTempUsageDetail_20' ) start [2025-03-10 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648543', 'tblTempUsageDetail_20' ) end [2025-03-10 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648543', 'tblTempVendorCDR_20' ) start [2025-03-10 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648543', 'tblTempVendorCDR_20' ) end [2025-03-10 09:17:18] Production.INFO: ProcessCDR(1,14648543,1,1,2) [2025-03-10 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648543', 'tblTempUsageDetail_20' ) start [2025-03-10 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648543', 'tblTempUsageDetail_20' ) end [2025-03-10 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:17:24] Production.INFO: ==23543== Releasing lock... [2025-03-10 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:17:24] Production.INFO: 38 MB #Memory Used# [2025-03-10 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:18:05 [end_date_ymd] => 2025-03-10 09:18:05 [RateCDR] => 1 ) [2025-03-10 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:18:05' and `end` < '2025-03-10 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:18:17] Production.INFO: count ==1368 [2025-03-10 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:18:05 - End Time 2025-03-10 09:18:05 [2025-03-10 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648548', 'tblTempUsageDetail_20' ) start [2025-03-10 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648548', 'tblTempUsageDetail_20' ) end [2025-03-10 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648548', 'tblTempVendorCDR_20' ) start [2025-03-10 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648548', 'tblTempVendorCDR_20' ) end [2025-03-10 09:18:18] Production.INFO: ProcessCDR(1,14648548,1,1,2) [2025-03-10 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648548', 'tblTempUsageDetail_20' ) start [2025-03-10 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648548', 'tblTempUsageDetail_20' ) end [2025-03-10 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:18:24] Production.INFO: ==23628== Releasing lock... [2025-03-10 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:18:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-10 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:19:05 [end_date_ymd] => 2025-03-10 09:19:05 [RateCDR] => 1 ) [2025-03-10 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:19:05' and `end` < '2025-03-10 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:19:18] Production.INFO: count ==1397 [2025-03-10 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:19:05 - End Time 2025-03-10 09:19:05 [2025-03-10 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648553', 'tblTempUsageDetail_20' ) start [2025-03-10 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648553', 'tblTempUsageDetail_20' ) end [2025-03-10 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648553', 'tblTempVendorCDR_20' ) start [2025-03-10 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648553', 'tblTempVendorCDR_20' ) end [2025-03-10 09:19:19] Production.INFO: ProcessCDR(1,14648553,1,1,2) [2025-03-10 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648553', 'tblTempUsageDetail_20' ) start [2025-03-10 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648553', 'tblTempUsageDetail_20' ) end [2025-03-10 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:19:24] Production.INFO: ==23706== Releasing lock... [2025-03-10 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:19:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-10 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:20:06 [end_date_ymd] => 2025-03-10 09:20:06 [RateCDR] => 1 ) [2025-03-10 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:20:06' and `end` < '2025-03-10 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:20:18] Production.INFO: count ==1446 [2025-03-10 09:20:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:20:06 - End Time 2025-03-10 09:20:06 [2025-03-10 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648559', 'tblTempUsageDetail_20' ) start [2025-03-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648559', 'tblTempUsageDetail_20' ) end [2025-03-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648559', 'tblTempVendorCDR_20' ) start [2025-03-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648559', 'tblTempVendorCDR_20' ) end [2025-03-10 09:20:19] Production.INFO: ProcessCDR(1,14648559,1,1,2) [2025-03-10 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648559', 'tblTempUsageDetail_20' ) start [2025-03-10 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648559', 'tblTempUsageDetail_20' ) end [2025-03-10 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:20:23] Production.INFO: ==23777== Releasing lock... [2025-03-10 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:20:23] Production.INFO: 39 MB #Memory Used# [2025-03-10 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:21:05 [end_date_ymd] => 2025-03-10 09:21:05 [RateCDR] => 1 ) [2025-03-10 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:21:05' and `end` < '2025-03-10 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:21:18] Production.INFO: count ==1533 [2025-03-10 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:21:05 - End Time 2025-03-10 09:21:05 [2025-03-10 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648564', 'tblTempUsageDetail_20' ) start [2025-03-10 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648564', 'tblTempUsageDetail_20' ) end [2025-03-10 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648564', 'tblTempVendorCDR_20' ) start [2025-03-10 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648564', 'tblTempVendorCDR_20' ) end [2025-03-10 09:21:18] Production.INFO: ProcessCDR(1,14648564,1,1,2) [2025-03-10 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648564', 'tblTempUsageDetail_20' ) start [2025-03-10 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648564', 'tblTempUsageDetail_20' ) end [2025-03-10 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:21:22] Production.INFO: ==23850== Releasing lock... [2025-03-10 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:21:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-10 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:22:05 [end_date_ymd] => 2025-03-10 09:22:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:22:05' and `end` < '2025-03-10 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-03-10 09:22:18] Production.INFO: count ==1538 [2025-03-10 09:22:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:22:05 - End Time 2025-03-10 09:22:05 [2025-03-10 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648569', 'tblTempUsageDetail_20' ) start [2025-03-10 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648569', 'tblTempUsageDetail_20' ) end [2025-03-10 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648569', 'tblTempVendorCDR_20' ) start [2025-03-10 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648569', 'tblTempVendorCDR_20' ) end [2025-03-10 09:22:18] Production.INFO: ProcessCDR(1,14648569,1,1,2) [2025-03-10 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648569', 'tblTempUsageDetail_20' ) start [2025-03-10 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648569', 'tblTempUsageDetail_20' ) end [2025-03-10 09:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:22:22] Production.INFO: ==23920== Releasing lock... [2025-03-10 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:22:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-10 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:23:06 [end_date_ymd] => 2025-03-10 09:23:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:23:06' and `end` < '2025-03-10 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-03-10 09:23:19] Production.INFO: count ==1546 [2025-03-10 09:23:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:23:06 - End Time 2025-03-10 09:23:06 [2025-03-10 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648574', 'tblTempUsageDetail_20' ) start [2025-03-10 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648574', 'tblTempUsageDetail_20' ) end [2025-03-10 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648574', 'tblTempVendorCDR_20' ) start [2025-03-10 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648574', 'tblTempVendorCDR_20' ) end [2025-03-10 09:23:19] Production.INFO: ProcessCDR(1,14648574,1,1,2) [2025-03-10 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648574', 'tblTempUsageDetail_20' ) start [2025-03-10 09:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648574', 'tblTempUsageDetail_20' ) end [2025-03-10 09:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:23:25] Production.INFO: ==23994== Releasing lock... [2025-03-10 09:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:23:25] Production.INFO: 39.75 MB #Memory Used# [2025-03-10 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:24:05 [end_date_ymd] => 2025-03-10 09:24:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:24:05' and `end` < '2025-03-10 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-03-10 09:24:18] Production.INFO: count ==1550 [2025-03-10 09:24:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:24:05 - End Time 2025-03-10 09:24:05 [2025-03-10 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648579', 'tblTempUsageDetail_20' ) start [2025-03-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648579', 'tblTempUsageDetail_20' ) end [2025-03-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648579', 'tblTempVendorCDR_20' ) start [2025-03-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648579', 'tblTempVendorCDR_20' ) end [2025-03-10 09:24:19] Production.INFO: ProcessCDR(1,14648579,1,1,2) [2025-03-10 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648579', 'tblTempUsageDetail_20' ) start [2025-03-10 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648579', 'tblTempUsageDetail_20' ) end [2025-03-10 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:24:24] Production.INFO: ==24071== Releasing lock... [2025-03-10 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:24:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-10 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:25:05 [end_date_ymd] => 2025-03-10 09:25:05 [RateCDR] => 1 ) [2025-03-10 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:25:05' and `end` < '2025-03-10 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:25:18] Production.INFO: count ==1570 [2025-03-10 09:25:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:25:05 - End Time 2025-03-10 09:25:05 [2025-03-10 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648584', 'tblTempUsageDetail_20' ) start [2025-03-10 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648584', 'tblTempUsageDetail_20' ) end [2025-03-10 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648584', 'tblTempVendorCDR_20' ) start [2025-03-10 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648584', 'tblTempVendorCDR_20' ) end [2025-03-10 09:25:19] Production.INFO: ProcessCDR(1,14648584,1,1,2) [2025-03-10 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648584', 'tblTempUsageDetail_20' ) start [2025-03-10 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648584', 'tblTempUsageDetail_20' ) end [2025-03-10 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:25:24] Production.INFO: ==24181== Releasing lock... [2025-03-10 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:25:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-10 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:26:05 [end_date_ymd] => 2025-03-10 09:26:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:26:05' and `end` < '2025-03-10 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-03-10 09:26:18] Production.INFO: count ==1605 [2025-03-10 09:26:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:26:05 - End Time 2025-03-10 09:26:05 [2025-03-10 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648589', 'tblTempUsageDetail_20' ) start [2025-03-10 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648589', 'tblTempUsageDetail_20' ) end [2025-03-10 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648589', 'tblTempVendorCDR_20' ) start [2025-03-10 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648589', 'tblTempVendorCDR_20' ) end [2025-03-10 09:26:19] Production.INFO: ProcessCDR(1,14648589,1,1,2) [2025-03-10 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648589', 'tblTempUsageDetail_20' ) start [2025-03-10 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648589', 'tblTempUsageDetail_20' ) end [2025-03-10 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:26:25] Production.INFO: ==24254== Releasing lock... [2025-03-10 09:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:26:25] Production.INFO: 40 MB #Memory Used# [2025-03-10 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:27:06 [end_date_ymd] => 2025-03-10 09:27:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:27:06' and `end` < '2025-03-10 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-03-10 09:27:18] Production.INFO: count ==1627 [2025-03-10 09:27:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:27:06 - End Time 2025-03-10 09:27:06 [2025-03-10 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648594', 'tblTempUsageDetail_20' ) start [2025-03-10 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648594', 'tblTempUsageDetail_20' ) end [2025-03-10 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648594', 'tblTempVendorCDR_20' ) start [2025-03-10 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648594', 'tblTempVendorCDR_20' ) end [2025-03-10 09:27:19] Production.INFO: ProcessCDR(1,14648594,1,1,2) [2025-03-10 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648594', 'tblTempUsageDetail_20' ) start [2025-03-10 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648594', 'tblTempUsageDetail_20' ) end [2025-03-10 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:27:24] Production.INFO: ==24327== Releasing lock... [2025-03-10 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:27:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-10 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:28:05 [end_date_ymd] => 2025-03-10 09:28:05 [RateCDR] => 1 ) [2025-03-10 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:28:05' and `end` < '2025-03-10 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:28:18] Production.INFO: count ==1640 [2025-03-10 09:28:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:28:05 - End Time 2025-03-10 09:28:05 [2025-03-10 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648599', 'tblTempUsageDetail_20' ) start [2025-03-10 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648599', 'tblTempUsageDetail_20' ) end [2025-03-10 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648599', 'tblTempVendorCDR_20' ) start [2025-03-10 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648599', 'tblTempVendorCDR_20' ) end [2025-03-10 09:28:19] Production.INFO: ProcessCDR(1,14648599,1,1,2) [2025-03-10 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648599', 'tblTempUsageDetail_20' ) start [2025-03-10 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648599', 'tblTempUsageDetail_20' ) end [2025-03-10 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:28:24] Production.INFO: ==24397== Releasing lock... [2025-03-10 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:28:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-10 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:29:06 [end_date_ymd] => 2025-03-10 09:29:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:29:06' and `end` < '2025-03-10 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-03-10 09:29:18] Production.INFO: count ==1648 [2025-03-10 09:29:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:29:06 - End Time 2025-03-10 09:29:06 [2025-03-10 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648604', 'tblTempUsageDetail_20' ) start [2025-03-10 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648604', 'tblTempUsageDetail_20' ) end [2025-03-10 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648604', 'tblTempVendorCDR_20' ) start [2025-03-10 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648604', 'tblTempVendorCDR_20' ) end [2025-03-10 09:29:19] Production.INFO: ProcessCDR(1,14648604,1,1,2) [2025-03-10 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648604', 'tblTempUsageDetail_20' ) start [2025-03-10 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648604', 'tblTempUsageDetail_20' ) end [2025-03-10 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:29:24] Production.INFO: ==24470== Releasing lock... [2025-03-10 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:29:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-10 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:30:06 [end_date_ymd] => 2025-03-10 09:30:06 [RateCDR] => 1 ) [2025-03-10 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:30:06' and `end` < '2025-03-10 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:30:18] Production.INFO: count ==1669 [2025-03-10 09:30:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:30:06 - End Time 2025-03-10 09:30:06 [2025-03-10 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648610', 'tblTempUsageDetail_20' ) start [2025-03-10 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648610', 'tblTempUsageDetail_20' ) end [2025-03-10 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648610', 'tblTempVendorCDR_20' ) start [2025-03-10 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648610', 'tblTempVendorCDR_20' ) end [2025-03-10 09:30:19] Production.INFO: ProcessCDR(1,14648610,1,1,2) [2025-03-10 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648610', 'tblTempUsageDetail_20' ) start [2025-03-10 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648610', 'tblTempUsageDetail_20' ) end [2025-03-10 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:30:23] Production.INFO: ==24548== Releasing lock... [2025-03-10 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:30:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-10 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:31:05 [end_date_ymd] => 2025-03-10 09:31:05 [RateCDR] => 1 ) [2025-03-10 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:31:05' and `end` < '2025-03-10 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:31:18] Production.INFO: count ==1790 [2025-03-10 09:31:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:31:05 - End Time 2025-03-10 09:31:05 [2025-03-10 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648615', 'tblTempUsageDetail_20' ) start [2025-03-10 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648615', 'tblTempUsageDetail_20' ) end [2025-03-10 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648615', 'tblTempVendorCDR_20' ) start [2025-03-10 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648615', 'tblTempVendorCDR_20' ) end [2025-03-10 09:31:19] Production.INFO: ProcessCDR(1,14648615,1,1,2) [2025-03-10 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648615', 'tblTempUsageDetail_20' ) start [2025-03-10 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648615', 'tblTempUsageDetail_20' ) end [2025-03-10 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:31:24] Production.INFO: ==24620== Releasing lock... [2025-03-10 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:31:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-10 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:32:05 [end_date_ymd] => 2025-03-10 09:32:05 [RateCDR] => 1 ) [2025-03-10 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:32:05' and `end` < '2025-03-10 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:32:18] Production.INFO: count ==1809 [2025-03-10 09:32:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:32:05 - End Time 2025-03-10 09:32:05 [2025-03-10 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648620', 'tblTempUsageDetail_20' ) start [2025-03-10 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648620', 'tblTempUsageDetail_20' ) end [2025-03-10 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648620', 'tblTempVendorCDR_20' ) start [2025-03-10 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648620', 'tblTempVendorCDR_20' ) end [2025-03-10 09:32:19] Production.INFO: ProcessCDR(1,14648620,1,1,2) [2025-03-10 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648620', 'tblTempUsageDetail_20' ) start [2025-03-10 09:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648620', 'tblTempUsageDetail_20' ) end [2025-03-10 09:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:32:22] Production.INFO: ==24693== Releasing lock... [2025-03-10 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:32:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-10 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:33:06 [end_date_ymd] => 2025-03-10 09:33:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:33:06' and `end` < '2025-03-10 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-03-10 09:33:18] Production.INFO: count ==1813 [2025-03-10 09:33:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:33:06 - End Time 2025-03-10 09:33:06 [2025-03-10 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648625', 'tblTempUsageDetail_20' ) start [2025-03-10 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648625', 'tblTempUsageDetail_20' ) end [2025-03-10 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648625', 'tblTempVendorCDR_20' ) start [2025-03-10 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648625', 'tblTempVendorCDR_20' ) end [2025-03-10 09:33:19] Production.INFO: ProcessCDR(1,14648625,1,1,2) [2025-03-10 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648625', 'tblTempUsageDetail_20' ) start [2025-03-10 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648625', 'tblTempUsageDetail_20' ) end [2025-03-10 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:33:24] Production.INFO: ==24766== Releasing lock... [2025-03-10 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:33:24] Production.INFO: 42 MB #Memory Used# [2025-03-10 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:34:05 [end_date_ymd] => 2025-03-10 09:34:05 [RateCDR] => 1 ) [2025-03-10 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:34:05' and `end` < '2025-03-10 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:34:18] Production.INFO: count ==1832 [2025-03-10 09:34:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:34:05 - End Time 2025-03-10 09:34:05 [2025-03-10 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648630', 'tblTempUsageDetail_20' ) start [2025-03-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648630', 'tblTempUsageDetail_20' ) end [2025-03-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648630', 'tblTempVendorCDR_20' ) start [2025-03-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648630', 'tblTempVendorCDR_20' ) end [2025-03-10 09:34:19] Production.INFO: ProcessCDR(1,14648630,1,1,2) [2025-03-10 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648630', 'tblTempUsageDetail_20' ) start [2025-03-10 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648630', 'tblTempUsageDetail_20' ) end [2025-03-10 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:34:24] Production.INFO: ==24842== Releasing lock... [2025-03-10 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:34:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-10 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:35:06 [end_date_ymd] => 2025-03-10 09:35:06 [RateCDR] => 1 ) [2025-03-10 09:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:35:06' and `end` < '2025-03-10 09:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:35:18] Production.INFO: count ==1868 [2025-03-10 09:35:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:35:06 - End Time 2025-03-10 09:35:06 [2025-03-10 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648635', 'tblTempUsageDetail_20' ) start [2025-03-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648635', 'tblTempUsageDetail_20' ) end [2025-03-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648635', 'tblTempVendorCDR_20' ) start [2025-03-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648635', 'tblTempVendorCDR_20' ) end [2025-03-10 09:35:19] Production.INFO: ProcessCDR(1,14648635,1,1,2) [2025-03-10 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648635', 'tblTempUsageDetail_20' ) start [2025-03-10 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648635', 'tblTempUsageDetail_20' ) end [2025-03-10 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:35:25] Production.INFO: ==24922== Releasing lock... [2025-03-10 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:35:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-10 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:36:05 [end_date_ymd] => 2025-03-10 09:36:05 [RateCDR] => 1 ) [2025-03-10 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:36:05' and `end` < '2025-03-10 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:36:18] Production.INFO: count ==1887 [2025-03-10 09:36:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:36:05 - End Time 2025-03-10 09:36:05 [2025-03-10 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648640', 'tblTempUsageDetail_20' ) start [2025-03-10 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648640', 'tblTempUsageDetail_20' ) end [2025-03-10 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648640', 'tblTempVendorCDR_20' ) start [2025-03-10 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648640', 'tblTempVendorCDR_20' ) end [2025-03-10 09:36:19] Production.INFO: ProcessCDR(1,14648640,1,1,2) [2025-03-10 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648640', 'tblTempUsageDetail_20' ) start [2025-03-10 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648640', 'tblTempUsageDetail_20' ) end [2025-03-10 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:36:24] Production.INFO: ==24998== Releasing lock... [2025-03-10 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:36:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-10 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:37:06 [end_date_ymd] => 2025-03-10 09:37:06 [RateCDR] => 1 ) [2025-03-10 09:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:37:06' and `end` < '2025-03-10 09:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:37:18] Production.INFO: count ==1899 [2025-03-10 09:37:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:37:06 - End Time 2025-03-10 09:37:06 [2025-03-10 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648645', 'tblTempUsageDetail_20' ) start [2025-03-10 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648645', 'tblTempUsageDetail_20' ) end [2025-03-10 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648645', 'tblTempVendorCDR_20' ) start [2025-03-10 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648645', 'tblTempVendorCDR_20' ) end [2025-03-10 09:37:19] Production.INFO: ProcessCDR(1,14648645,1,1,2) [2025-03-10 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648645', 'tblTempUsageDetail_20' ) start [2025-03-10 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648645', 'tblTempUsageDetail_20' ) end [2025-03-10 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:37:24] Production.INFO: ==25077== Releasing lock... [2025-03-10 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:37:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-10 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:38:05 [end_date_ymd] => 2025-03-10 09:38:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:38:05' and `end` < '2025-03-10 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-03-10 09:38:18] Production.INFO: count ==1918 [2025-03-10 09:38:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:38:05 - End Time 2025-03-10 09:38:05 [2025-03-10 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648650', 'tblTempUsageDetail_20' ) start [2025-03-10 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648650', 'tblTempUsageDetail_20' ) end [2025-03-10 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648650', 'tblTempVendorCDR_20' ) start [2025-03-10 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648650', 'tblTempVendorCDR_20' ) end [2025-03-10 09:38:18] Production.INFO: ProcessCDR(1,14648650,1,1,2) [2025-03-10 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648650', 'tblTempUsageDetail_20' ) start [2025-03-10 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648650', 'tblTempUsageDetail_20' ) end [2025-03-10 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:38:23] Production.INFO: ==25159== Releasing lock... [2025-03-10 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:38:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-10 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:39:06 [end_date_ymd] => 2025-03-10 09:39:06 [RateCDR] => 1 ) [2025-03-10 09:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:39:06' and `end` < '2025-03-10 09:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:39:18] Production.INFO: count ==1930 [2025-03-10 09:39:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:39:06 - End Time 2025-03-10 09:39:06 [2025-03-10 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648655', 'tblTempUsageDetail_20' ) start [2025-03-10 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648655', 'tblTempUsageDetail_20' ) end [2025-03-10 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648655', 'tblTempVendorCDR_20' ) start [2025-03-10 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648655', 'tblTempVendorCDR_20' ) end [2025-03-10 09:39:19] Production.INFO: ProcessCDR(1,14648655,1,1,2) [2025-03-10 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648655', 'tblTempUsageDetail_20' ) start [2025-03-10 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648655', 'tblTempUsageDetail_20' ) end [2025-03-10 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:39:24] Production.INFO: ==25236== Releasing lock... [2025-03-10 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:39:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-10 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:40:06 [end_date_ymd] => 2025-03-10 09:40:06 [RateCDR] => 1 ) [2025-03-10 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:40:06' and `end` < '2025-03-10 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:40:19] Production.INFO: count ==1955 [2025-03-10 09:40:20] Production.ERROR: pbx CDR StartTime 2025-03-10 06:40:06 - End Time 2025-03-10 09:40:06 [2025-03-10 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648661', 'tblTempUsageDetail_20' ) start [2025-03-10 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648661', 'tblTempUsageDetail_20' ) end [2025-03-10 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648661', 'tblTempVendorCDR_20' ) start [2025-03-10 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648661', 'tblTempVendorCDR_20' ) end [2025-03-10 09:40:20] Production.INFO: ProcessCDR(1,14648661,1,1,2) [2025-03-10 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648661', 'tblTempUsageDetail_20' ) start [2025-03-10 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648661', 'tblTempUsageDetail_20' ) end [2025-03-10 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:40:25] Production.INFO: ==25353== Releasing lock... [2025-03-10 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:40:25] Production.INFO: 42.75 MB #Memory Used# [2025-03-10 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:41:05 [end_date_ymd] => 2025-03-10 09:41:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:41:05' and `end` < '2025-03-10 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-03-10 09:41:18] Production.INFO: count ==2035 [2025-03-10 09:41:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:41:05 - End Time 2025-03-10 09:41:05 [2025-03-10 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648666', 'tblTempUsageDetail_20' ) start [2025-03-10 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648666', 'tblTempUsageDetail_20' ) end [2025-03-10 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648666', 'tblTempVendorCDR_20' ) start [2025-03-10 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648666', 'tblTempVendorCDR_20' ) end [2025-03-10 09:41:19] Production.INFO: ProcessCDR(1,14648666,1,1,2) [2025-03-10 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648666', 'tblTempUsageDetail_20' ) start [2025-03-10 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648666', 'tblTempUsageDetail_20' ) end [2025-03-10 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:41:24] Production.INFO: ==25435== Releasing lock... [2025-03-10 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:41:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-10 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:42:05 [end_date_ymd] => 2025-03-10 09:42:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:42:05' and `end` < '2025-03-10 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-03-10 09:42:17] Production.INFO: count ==2036 [2025-03-10 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:42:05 - End Time 2025-03-10 09:42:05 [2025-03-10 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648671', 'tblTempUsageDetail_20' ) start [2025-03-10 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648671', 'tblTempUsageDetail_20' ) end [2025-03-10 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648671', 'tblTempVendorCDR_20' ) start [2025-03-10 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648671', 'tblTempVendorCDR_20' ) end [2025-03-10 09:42:18] Production.INFO: ProcessCDR(1,14648671,1,1,2) [2025-03-10 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648671', 'tblTempUsageDetail_20' ) start [2025-03-10 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648671', 'tblTempUsageDetail_20' ) end [2025-03-10 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:42:23] Production.INFO: ==25514== Releasing lock... [2025-03-10 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:42:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-10 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:43:05 [end_date_ymd] => 2025-03-10 09:43:05 [RateCDR] => 1 ) [2025-03-10 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:43:05' and `end` < '2025-03-10 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:43:18] Production.INFO: count ==2044 [2025-03-10 09:43:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:43:05 - End Time 2025-03-10 09:43:05 [2025-03-10 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648676', 'tblTempUsageDetail_20' ) start [2025-03-10 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648676', 'tblTempUsageDetail_20' ) end [2025-03-10 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648676', 'tblTempVendorCDR_20' ) start [2025-03-10 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648676', 'tblTempVendorCDR_20' ) end [2025-03-10 09:43:19] Production.INFO: ProcessCDR(1,14648676,1,1,2) [2025-03-10 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648676', 'tblTempUsageDetail_20' ) start [2025-03-10 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648676', 'tblTempUsageDetail_20' ) end [2025-03-10 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:43:24] Production.INFO: ==25587== Releasing lock... [2025-03-10 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:43:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-10 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:44:05 [end_date_ymd] => 2025-03-10 09:44:05 [RateCDR] => 1 ) [2025-03-10 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:44:05' and `end` < '2025-03-10 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:44:18] Production.INFO: count ==2049 [2025-03-10 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:44:05 - End Time 2025-03-10 09:44:05 [2025-03-10 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648681', 'tblTempUsageDetail_20' ) start [2025-03-10 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648681', 'tblTempUsageDetail_20' ) end [2025-03-10 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648681', 'tblTempVendorCDR_20' ) start [2025-03-10 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648681', 'tblTempVendorCDR_20' ) end [2025-03-10 09:44:19] Production.INFO: ProcessCDR(1,14648681,1,1,2) [2025-03-10 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648681', 'tblTempUsageDetail_20' ) start [2025-03-10 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648681', 'tblTempUsageDetail_20' ) end [2025-03-10 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:44:24] Production.INFO: ==25660== Releasing lock... [2025-03-10 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:44:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-10 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:45:06 [end_date_ymd] => 2025-03-10 09:45:06 [RateCDR] => 1 ) [2025-03-10 09:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:45:06' and `end` < '2025-03-10 09:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:45:18] Production.INFO: count ==2052 [2025-03-10 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:45:06 - End Time 2025-03-10 09:45:06 [2025-03-10 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648686', 'tblTempUsageDetail_20' ) start [2025-03-10 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648686', 'tblTempUsageDetail_20' ) end [2025-03-10 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648686', 'tblTempVendorCDR_20' ) start [2025-03-10 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648686', 'tblTempVendorCDR_20' ) end [2025-03-10 09:45:19] Production.INFO: ProcessCDR(1,14648686,1,1,2) [2025-03-10 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648686', 'tblTempUsageDetail_20' ) start [2025-03-10 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648686', 'tblTempUsageDetail_20' ) end [2025-03-10 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:45:24] Production.INFO: ==25737== Releasing lock... [2025-03-10 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:45:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-10 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:46:05 [end_date_ymd] => 2025-03-10 09:46:05 [RateCDR] => 1 ) [2025-03-10 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:46:05' and `end` < '2025-03-10 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:46:18] Production.INFO: count ==2062 [2025-03-10 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:46:05 - End Time 2025-03-10 09:46:05 [2025-03-10 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648691', 'tblTempUsageDetail_20' ) start [2025-03-10 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648691', 'tblTempUsageDetail_20' ) end [2025-03-10 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648691', 'tblTempVendorCDR_20' ) start [2025-03-10 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648691', 'tblTempVendorCDR_20' ) end [2025-03-10 09:46:19] Production.INFO: ProcessCDR(1,14648691,1,1,2) [2025-03-10 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648691', 'tblTempUsageDetail_20' ) start [2025-03-10 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648691', 'tblTempUsageDetail_20' ) end [2025-03-10 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:46:24] Production.INFO: ==25812== Releasing lock... [2025-03-10 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:46:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-10 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:47:05 [end_date_ymd] => 2025-03-10 09:47:05 [RateCDR] => 1 ) [2025-03-10 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:47:05' and `end` < '2025-03-10 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:47:18] Production.INFO: count ==2095 [2025-03-10 09:47:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:47:05 - End Time 2025-03-10 09:47:05 [2025-03-10 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648696', 'tblTempUsageDetail_20' ) start [2025-03-10 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648696', 'tblTempUsageDetail_20' ) end [2025-03-10 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648696', 'tblTempVendorCDR_20' ) start [2025-03-10 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648696', 'tblTempVendorCDR_20' ) end [2025-03-10 09:47:19] Production.INFO: ProcessCDR(1,14648696,1,1,2) [2025-03-10 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648696', 'tblTempUsageDetail_20' ) start [2025-03-10 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648696', 'tblTempUsageDetail_20' ) end [2025-03-10 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:47:24] Production.INFO: ==25887== Releasing lock... [2025-03-10 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:47:24] Production.INFO: 44 MB #Memory Used# [2025-03-10 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:48:05 [end_date_ymd] => 2025-03-10 09:48:05 [RateCDR] => 1 ) [2025-03-10 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:48:05' and `end` < '2025-03-10 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:48:18] Production.INFO: count ==2117 [2025-03-10 09:48:18] Production.ERROR: pbx CDR StartTime 2025-03-10 06:48:05 - End Time 2025-03-10 09:48:05 [2025-03-10 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648701', 'tblTempUsageDetail_20' ) start [2025-03-10 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648701', 'tblTempUsageDetail_20' ) end [2025-03-10 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648701', 'tblTempVendorCDR_20' ) start [2025-03-10 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648701', 'tblTempVendorCDR_20' ) end [2025-03-10 09:48:19] Production.INFO: ProcessCDR(1,14648701,1,1,2) [2025-03-10 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648701', 'tblTempUsageDetail_20' ) start [2025-03-10 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648701', 'tblTempUsageDetail_20' ) end [2025-03-10 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:48:24] Production.INFO: ==25960== Releasing lock... [2025-03-10 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:48:24] Production.INFO: 44 MB #Memory Used# [2025-03-10 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:49:05 [end_date_ymd] => 2025-03-10 09:49:05 [RateCDR] => 1 ) [2025-03-10 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:49:05' and `end` < '2025-03-10 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:49:18] Production.INFO: count ==2132 [2025-03-10 09:49:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:49:05 - End Time 2025-03-10 09:49:05 [2025-03-10 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648706', 'tblTempUsageDetail_20' ) start [2025-03-10 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648706', 'tblTempUsageDetail_20' ) end [2025-03-10 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648706', 'tblTempVendorCDR_20' ) start [2025-03-10 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648706', 'tblTempVendorCDR_20' ) end [2025-03-10 09:49:19] Production.INFO: ProcessCDR(1,14648706,1,1,2) [2025-03-10 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648706', 'tblTempUsageDetail_20' ) start [2025-03-10 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648706', 'tblTempUsageDetail_20' ) end [2025-03-10 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:49:25] Production.INFO: ==26038== Releasing lock... [2025-03-10 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:49:25] Production.INFO: 44 MB #Memory Used# [2025-03-10 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:50:06 [end_date_ymd] => 2025-03-10 09:50:06 [RateCDR] => 1 ) [2025-03-10 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:50:06' and `end` < '2025-03-10 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:50:19] Production.INFO: count ==2152 [2025-03-10 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-10 06:50:06 - End Time 2025-03-10 09:50:06 [2025-03-10 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648712', 'tblTempUsageDetail_20' ) start [2025-03-10 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648712', 'tblTempUsageDetail_20' ) end [2025-03-10 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648712', 'tblTempVendorCDR_20' ) start [2025-03-10 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648712', 'tblTempVendorCDR_20' ) end [2025-03-10 09:50:20] Production.INFO: ProcessCDR(1,14648712,1,1,2) [2025-03-10 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648712', 'tblTempUsageDetail_20' ) start [2025-03-10 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648712', 'tblTempUsageDetail_20' ) end [2025-03-10 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:50:25] Production.INFO: ==26116== Releasing lock... [2025-03-10 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:50:25] Production.INFO: 44.25 MB #Memory Used# [2025-03-10 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:51:06 [end_date_ymd] => 2025-03-10 09:51:06 [RateCDR] => 1 ) [2025-03-10 09:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:51:06' and `end` < '2025-03-10 09:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:51:18] Production.INFO: count ==2262 [2025-03-10 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:51:06 - End Time 2025-03-10 09:51:06 [2025-03-10 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648717', 'tblTempUsageDetail_20' ) start [2025-03-10 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648717', 'tblTempUsageDetail_20' ) end [2025-03-10 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648717', 'tblTempVendorCDR_20' ) start [2025-03-10 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648717', 'tblTempVendorCDR_20' ) end [2025-03-10 09:51:19] Production.INFO: ProcessCDR(1,14648717,1,1,2) [2025-03-10 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648717', 'tblTempUsageDetail_20' ) start [2025-03-10 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648717', 'tblTempUsageDetail_20' ) end [2025-03-10 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:51:25] Production.INFO: ==26198== Releasing lock... [2025-03-10 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:51:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-10 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:52:05 [end_date_ymd] => 2025-03-10 09:52:05 [RateCDR] => 1 ) [2025-03-10 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:52:05' and `end` < '2025-03-10 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:52:18] Production.INFO: count ==2278 [2025-03-10 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:52:05 - End Time 2025-03-10 09:52:05 [2025-03-10 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648722', 'tblTempUsageDetail_20' ) start [2025-03-10 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648722', 'tblTempUsageDetail_20' ) end [2025-03-10 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648722', 'tblTempVendorCDR_20' ) start [2025-03-10 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648722', 'tblTempVendorCDR_20' ) end [2025-03-10 09:52:19] Production.INFO: ProcessCDR(1,14648722,1,1,2) [2025-03-10 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648722', 'tblTempUsageDetail_20' ) start [2025-03-10 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648722', 'tblTempUsageDetail_20' ) end [2025-03-10 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:52:24] Production.INFO: ==26271== Releasing lock... [2025-03-10 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:52:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-10 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:53:05 [end_date_ymd] => 2025-03-10 09:53:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:53:05' and `end` < '2025-03-10 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-03-10 09:53:18] Production.INFO: count ==2315 [2025-03-10 09:53:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:53:05 - End Time 2025-03-10 09:53:05 [2025-03-10 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648727', 'tblTempUsageDetail_20' ) start [2025-03-10 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648727', 'tblTempUsageDetail_20' ) end [2025-03-10 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648727', 'tblTempVendorCDR_20' ) start [2025-03-10 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648727', 'tblTempVendorCDR_20' ) end [2025-03-10 09:53:19] Production.INFO: ProcessCDR(1,14648727,1,1,2) [2025-03-10 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648727', 'tblTempUsageDetail_20' ) start [2025-03-10 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648727', 'tblTempUsageDetail_20' ) end [2025-03-10 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:53:25] Production.INFO: ==26351== Releasing lock... [2025-03-10 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:53:25] Production.INFO: 45.5 MB #Memory Used# [2025-03-10 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:54:05 [end_date_ymd] => 2025-03-10 09:54:05 [RateCDR] => 1 ) [2025-03-10 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:54:05' and `end` < '2025-03-10 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:54:18] Production.INFO: count ==2378 [2025-03-10 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:54:05 - End Time 2025-03-10 09:54:05 [2025-03-10 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648732', 'tblTempUsageDetail_20' ) start [2025-03-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648732', 'tblTempUsageDetail_20' ) end [2025-03-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648732', 'tblTempVendorCDR_20' ) start [2025-03-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648732', 'tblTempVendorCDR_20' ) end [2025-03-10 09:54:19] Production.INFO: ProcessCDR(1,14648732,1,1,2) [2025-03-10 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648732', 'tblTempUsageDetail_20' ) start [2025-03-10 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648732', 'tblTempUsageDetail_20' ) end [2025-03-10 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:54:25] Production.INFO: ==26427== Releasing lock... [2025-03-10 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:54:25] Production.INFO: 46 MB #Memory Used# [2025-03-10 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:55:06 [end_date_ymd] => 2025-03-10 09:55:06 [RateCDR] => 1 ) [2025-03-10 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:55:06' and `end` < '2025-03-10 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:55:18] Production.INFO: count ==2426 [2025-03-10 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:55:06 - End Time 2025-03-10 09:55:06 [2025-03-10 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648737', 'tblTempUsageDetail_20' ) start [2025-03-10 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648737', 'tblTempUsageDetail_20' ) end [2025-03-10 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648737', 'tblTempVendorCDR_20' ) start [2025-03-10 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648737', 'tblTempVendorCDR_20' ) end [2025-03-10 09:55:19] Production.INFO: ProcessCDR(1,14648737,1,1,2) [2025-03-10 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648737', 'tblTempUsageDetail_20' ) start [2025-03-10 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648737', 'tblTempUsageDetail_20' ) end [2025-03-10 09:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:55:23] Production.INFO: ==26505== Releasing lock... [2025-03-10 09:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:55:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-10 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:56:05 [end_date_ymd] => 2025-03-10 09:56:05 [RateCDR] => 1 ) [2025-03-10 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:56:05' and `end` < '2025-03-10 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:56:18] Production.INFO: count ==2444 [2025-03-10 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:56:05 - End Time 2025-03-10 09:56:05 [2025-03-10 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648742', 'tblTempUsageDetail_20' ) start [2025-03-10 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648742', 'tblTempUsageDetail_20' ) end [2025-03-10 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648742', 'tblTempVendorCDR_20' ) start [2025-03-10 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648742', 'tblTempVendorCDR_20' ) end [2025-03-10 09:56:19] Production.INFO: ProcessCDR(1,14648742,1,1,2) [2025-03-10 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648742', 'tblTempUsageDetail_20' ) start [2025-03-10 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648742', 'tblTempUsageDetail_20' ) end [2025-03-10 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:56:25] Production.INFO: ==26617== Releasing lock... [2025-03-10 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:56:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-10 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:57:06 [end_date_ymd] => 2025-03-10 09:57:06 [RateCDR] => 1 ) [2025-03-10 09:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:57:06' and `end` < '2025-03-10 09:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:57:18] Production.INFO: count ==2450 [2025-03-10 09:57:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:57:06 - End Time 2025-03-10 09:57:06 [2025-03-10 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648747', 'tblTempUsageDetail_20' ) start [2025-03-10 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648747', 'tblTempUsageDetail_20' ) end [2025-03-10 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648747', 'tblTempVendorCDR_20' ) start [2025-03-10 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648747', 'tblTempVendorCDR_20' ) end [2025-03-10 09:57:20] Production.INFO: ProcessCDR(1,14648747,1,1,2) [2025-03-10 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648747', 'tblTempUsageDetail_20' ) start [2025-03-10 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648747', 'tblTempUsageDetail_20' ) end [2025-03-10 09:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:57:23] Production.INFO: ==26694== Releasing lock... [2025-03-10 09:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:57:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-10 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:58:05 [end_date_ymd] => 2025-03-10 09:58:05 [RateCDR] => 1 ) [2025-03-10 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 06:58:05' and `end` < '2025-03-10 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 09:58:18] Production.INFO: count ==2484 [2025-03-10 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-10 06:58:05 - End Time 2025-03-10 09:58:05 [2025-03-10 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648752', 'tblTempUsageDetail_20' ) start [2025-03-10 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648752', 'tblTempUsageDetail_20' ) end [2025-03-10 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648752', 'tblTempVendorCDR_20' ) start [2025-03-10 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648752', 'tblTempVendorCDR_20' ) end [2025-03-10 09:58:19] Production.INFO: ProcessCDR(1,14648752,1,1,2) [2025-03-10 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648752', 'tblTempUsageDetail_20' ) start [2025-03-10 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648752', 'tblTempUsageDetail_20' ) end [2025-03-10 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:58:25] Production.INFO: ==26773== Releasing lock... [2025-03-10 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:58:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-10 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 06:59:06 [end_date_ymd] => 2025-03-10 09:59:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 06:59:06' and `end` < '2025-03-10 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-03-10 09:59:19] Production.INFO: count ==2491 [2025-03-10 09:59:20] Production.ERROR: pbx CDR StartTime 2025-03-10 06:59:06 - End Time 2025-03-10 09:59:06 [2025-03-10 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648757', 'tblTempUsageDetail_20' ) start [2025-03-10 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648757', 'tblTempUsageDetail_20' ) end [2025-03-10 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648757', 'tblTempVendorCDR_20' ) start [2025-03-10 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648757', 'tblTempVendorCDR_20' ) end [2025-03-10 09:59:20] Production.INFO: ProcessCDR(1,14648757,1,1,2) [2025-03-10 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 09:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648757', 'tblTempUsageDetail_20' ) start [2025-03-10 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648757', 'tblTempUsageDetail_20' ) end [2025-03-10 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 09:59:25] Production.INFO: ==26850== Releasing lock... [2025-03-10 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 09:59:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-10 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:00:06 [end_date_ymd] => 2025-03-10 10:00:06 [RateCDR] => 1 ) [2025-03-10 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:00:06' and `end` < '2025-03-10 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:00:19] Production.INFO: count ==2517 [2025-03-10 10:00:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:00:06 - End Time 2025-03-10 10:00:06 [2025-03-10 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648763', 'tblTempUsageDetail_20' ) start [2025-03-10 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648763', 'tblTempUsageDetail_20' ) end [2025-03-10 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648763', 'tblTempVendorCDR_20' ) start [2025-03-10 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648763', 'tblTempVendorCDR_20' ) end [2025-03-10 10:00:20] Production.INFO: ProcessCDR(1,14648763,1,1,2) [2025-03-10 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648763', 'tblTempUsageDetail_20' ) start [2025-03-10 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648763', 'tblTempUsageDetail_20' ) end [2025-03-10 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:00:25] Production.INFO: ==26929== Releasing lock... [2025-03-10 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:00:25] Production.INFO: 47 MB #Memory Used# [2025-03-10 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:01:06 [end_date_ymd] => 2025-03-10 10:01:06 [RateCDR] => 1 ) [2025-03-10 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:01:06' and `end` < '2025-03-10 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:01:18] Production.INFO: count ==2632 [2025-03-10 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:01:06 - End Time 2025-03-10 10:01:06 [2025-03-10 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648768', 'tblTempUsageDetail_20' ) start [2025-03-10 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648768', 'tblTempUsageDetail_20' ) end [2025-03-10 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648768', 'tblTempVendorCDR_20' ) start [2025-03-10 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648768', 'tblTempVendorCDR_20' ) end [2025-03-10 10:01:19] Production.INFO: ProcessCDR(1,14648768,1,1,2) [2025-03-10 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648768', 'tblTempUsageDetail_20' ) start [2025-03-10 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648768', 'tblTempUsageDetail_20' ) end [2025-03-10 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:01:25] Production.INFO: ==27018== Releasing lock... [2025-03-10 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:01:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-10 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:02:05 [end_date_ymd] => 2025-03-10 10:02:05 [RateCDR] => 1 ) [2025-03-10 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:02:05' and `end` < '2025-03-10 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:02:17] Production.INFO: count ==2646 [2025-03-10 10:02:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:02:05 - End Time 2025-03-10 10:02:05 [2025-03-10 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648773', 'tblTempUsageDetail_20' ) start [2025-03-10 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648773', 'tblTempUsageDetail_20' ) end [2025-03-10 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648773', 'tblTempVendorCDR_20' ) start [2025-03-10 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648773', 'tblTempVendorCDR_20' ) end [2025-03-10 10:02:19] Production.INFO: ProcessCDR(1,14648773,1,1,2) [2025-03-10 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648773', 'tblTempUsageDetail_20' ) start [2025-03-10 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648773', 'tblTempUsageDetail_20' ) end [2025-03-10 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:02:24] Production.INFO: ==27092== Releasing lock... [2025-03-10 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:02:24] Production.INFO: 48 MB #Memory Used# [2025-03-10 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:03:06 [end_date_ymd] => 2025-03-10 10:03:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:03:06' and `end` < '2025-03-10 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-03-10 10:03:18] Production.INFO: count ==2669 [2025-03-10 10:03:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:03:06 - End Time 2025-03-10 10:03:06 [2025-03-10 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648778', 'tblTempUsageDetail_20' ) start [2025-03-10 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648778', 'tblTempUsageDetail_20' ) end [2025-03-10 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648778', 'tblTempVendorCDR_20' ) start [2025-03-10 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648778', 'tblTempVendorCDR_20' ) end [2025-03-10 10:03:20] Production.INFO: ProcessCDR(1,14648778,1,1,2) [2025-03-10 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648778', 'tblTempUsageDetail_20' ) start [2025-03-10 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648778', 'tblTempUsageDetail_20' ) end [2025-03-10 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:03:25] Production.INFO: ==27167== Releasing lock... [2025-03-10 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:03:25] Production.INFO: 48 MB #Memory Used# [2025-03-10 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:04:05 [end_date_ymd] => 2025-03-10 10:04:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:04:05' and `end` < '2025-03-10 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-03-10 10:04:18] Production.INFO: count ==2691 [2025-03-10 10:04:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:04:05 - End Time 2025-03-10 10:04:05 [2025-03-10 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648783', 'tblTempUsageDetail_20' ) start [2025-03-10 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648783', 'tblTempUsageDetail_20' ) end [2025-03-10 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648783', 'tblTempVendorCDR_20' ) start [2025-03-10 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648783', 'tblTempVendorCDR_20' ) end [2025-03-10 10:04:19] Production.INFO: ProcessCDR(1,14648783,1,1,2) [2025-03-10 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648783', 'tblTempUsageDetail_20' ) start [2025-03-10 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648783', 'tblTempUsageDetail_20' ) end [2025-03-10 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:04:25] Production.INFO: ==27244== Releasing lock... [2025-03-10 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:04:25] Production.INFO: 48.25 MB #Memory Used# [2025-03-10 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:05:05 [end_date_ymd] => 2025-03-10 10:05:05 [RateCDR] => 1 ) [2025-03-10 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:05:05' and `end` < '2025-03-10 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:05:18] Production.INFO: count ==2712 [2025-03-10 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:05:05 - End Time 2025-03-10 10:05:05 [2025-03-10 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648788', 'tblTempUsageDetail_20' ) start [2025-03-10 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648788', 'tblTempUsageDetail_20' ) end [2025-03-10 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648788', 'tblTempVendorCDR_20' ) start [2025-03-10 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648788', 'tblTempVendorCDR_20' ) end [2025-03-10 10:05:20] Production.INFO: ProcessCDR(1,14648788,1,1,2) [2025-03-10 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648788', 'tblTempUsageDetail_20' ) start [2025-03-10 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648788', 'tblTempUsageDetail_20' ) end [2025-03-10 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:05:25] Production.INFO: ==27322== Releasing lock... [2025-03-10 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:05:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-10 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:06:05 [end_date_ymd] => 2025-03-10 10:06:05 [RateCDR] => 1 ) [2025-03-10 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:06:05' and `end` < '2025-03-10 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:06:18] Production.INFO: count ==2738 [2025-03-10 10:06:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:06:05 - End Time 2025-03-10 10:06:05 [2025-03-10 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648793', 'tblTempUsageDetail_20' ) start [2025-03-10 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648793', 'tblTempUsageDetail_20' ) end [2025-03-10 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648793', 'tblTempVendorCDR_20' ) start [2025-03-10 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648793', 'tblTempVendorCDR_20' ) end [2025-03-10 10:06:19] Production.INFO: ProcessCDR(1,14648793,1,1,2) [2025-03-10 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648793', 'tblTempUsageDetail_20' ) start [2025-03-10 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648793', 'tblTempUsageDetail_20' ) end [2025-03-10 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:06:25] Production.INFO: ==27404== Releasing lock... [2025-03-10 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:06:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-10 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:07:06 [end_date_ymd] => 2025-03-10 10:07:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:07:06' and `end` < '2025-03-10 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-03-10 10:07:18] Production.INFO: count ==2764 [2025-03-10 10:07:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:07:06 - End Time 2025-03-10 10:07:06 [2025-03-10 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648798', 'tblTempUsageDetail_20' ) start [2025-03-10 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648798', 'tblTempUsageDetail_20' ) end [2025-03-10 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648798', 'tblTempVendorCDR_20' ) start [2025-03-10 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648798', 'tblTempVendorCDR_20' ) end [2025-03-10 10:07:20] Production.INFO: ProcessCDR(1,14648798,1,1,2) [2025-03-10 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648798', 'tblTempUsageDetail_20' ) start [2025-03-10 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648798', 'tblTempUsageDetail_20' ) end [2025-03-10 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:07:26] Production.INFO: ==27485== Releasing lock... [2025-03-10 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:07:26] Production.INFO: 48.75 MB #Memory Used# [2025-03-10 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:08:05 [end_date_ymd] => 2025-03-10 10:08:05 [RateCDR] => 1 ) [2025-03-10 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:08:05' and `end` < '2025-03-10 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:08:18] Production.INFO: count ==2769 [2025-03-10 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:08:05 - End Time 2025-03-10 10:08:05 [2025-03-10 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648803', 'tblTempUsageDetail_20' ) start [2025-03-10 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648803', 'tblTempUsageDetail_20' ) end [2025-03-10 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648803', 'tblTempVendorCDR_20' ) start [2025-03-10 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648803', 'tblTempVendorCDR_20' ) end [2025-03-10 10:08:20] Production.INFO: ProcessCDR(1,14648803,1,1,2) [2025-03-10 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648803', 'tblTempUsageDetail_20' ) start [2025-03-10 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648803', 'tblTempUsageDetail_20' ) end [2025-03-10 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:08:25] Production.INFO: ==27560== Releasing lock... [2025-03-10 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:08:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-10 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:09:06 [end_date_ymd] => 2025-03-10 10:09:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:09:06' and `end` < '2025-03-10 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-03-10 10:09:18] Production.INFO: count ==2784 [2025-03-10 10:09:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:09:06 - End Time 2025-03-10 10:09:06 [2025-03-10 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648808', 'tblTempUsageDetail_20' ) start [2025-03-10 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648808', 'tblTempUsageDetail_20' ) end [2025-03-10 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648808', 'tblTempVendorCDR_20' ) start [2025-03-10 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648808', 'tblTempVendorCDR_20' ) end [2025-03-10 10:09:20] Production.INFO: ProcessCDR(1,14648808,1,1,2) [2025-03-10 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648808', 'tblTempUsageDetail_20' ) start [2025-03-10 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648808', 'tblTempUsageDetail_20' ) end [2025-03-10 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:09:25] Production.INFO: ==27635== Releasing lock... [2025-03-10 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:09:25] Production.INFO: 49 MB #Memory Used# [2025-03-10 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:10:06 [end_date_ymd] => 2025-03-10 10:10:06 [RateCDR] => 1 ) [2025-03-10 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:10:06' and `end` < '2025-03-10 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:10:19] Production.INFO: count ==2790 [2025-03-10 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:10:06 - End Time 2025-03-10 10:10:06 [2025-03-10 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648814', 'tblTempUsageDetail_20' ) start [2025-03-10 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648814', 'tblTempUsageDetail_20' ) end [2025-03-10 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648814', 'tblTempVendorCDR_20' ) start [2025-03-10 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648814', 'tblTempVendorCDR_20' ) end [2025-03-10 10:10:20] Production.INFO: ProcessCDR(1,14648814,1,1,2) [2025-03-10 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648814', 'tblTempUsageDetail_20' ) start [2025-03-10 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648814', 'tblTempUsageDetail_20' ) end [2025-03-10 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:10:25] Production.INFO: ==27715== Releasing lock... [2025-03-10 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:10:25] Production.INFO: 49 MB #Memory Used# [2025-03-10 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:11:06 [end_date_ymd] => 2025-03-10 10:11:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:11:06' and `end` < '2025-03-10 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-03-10 10:11:19] Production.INFO: count ==2858 [2025-03-10 10:11:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:11:06 - End Time 2025-03-10 10:11:06 [2025-03-10 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648819', 'tblTempUsageDetail_20' ) start [2025-03-10 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648819', 'tblTempUsageDetail_20' ) end [2025-03-10 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648819', 'tblTempVendorCDR_20' ) start [2025-03-10 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648819', 'tblTempVendorCDR_20' ) end [2025-03-10 10:11:20] Production.INFO: ProcessCDR(1,14648819,1,1,2) [2025-03-10 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648819', 'tblTempUsageDetail_20' ) start [2025-03-10 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648819', 'tblTempUsageDetail_20' ) end [2025-03-10 10:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:11:26] Production.INFO: ==27832== Releasing lock... [2025-03-10 10:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:11:26] Production.INFO: 49.75 MB #Memory Used# [2025-03-10 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:12:06 [end_date_ymd] => 2025-03-10 10:12:06 [RateCDR] => 1 ) [2025-03-10 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:12:06' and `end` < '2025-03-10 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:12:18] Production.INFO: count ==2893 [2025-03-10 10:12:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:12:06 - End Time 2025-03-10 10:12:06 [2025-03-10 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648824', 'tblTempUsageDetail_20' ) start [2025-03-10 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648824', 'tblTempUsageDetail_20' ) end [2025-03-10 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648824', 'tblTempVendorCDR_20' ) start [2025-03-10 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648824', 'tblTempVendorCDR_20' ) end [2025-03-10 10:12:20] Production.INFO: ProcessCDR(1,14648824,1,1,2) [2025-03-10 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648824', 'tblTempUsageDetail_20' ) start [2025-03-10 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648824', 'tblTempUsageDetail_20' ) end [2025-03-10 10:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:12:26] Production.INFO: ==27907== Releasing lock... [2025-03-10 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:12:26] Production.INFO: 49.75 MB #Memory Used# [2025-03-10 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:13:06 [end_date_ymd] => 2025-03-10 10:13:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:13:06' and `end` < '2025-03-10 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-03-10 10:13:19] Production.INFO: count ==2905 [2025-03-10 10:13:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:13:06 - End Time 2025-03-10 10:13:06 [2025-03-10 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648829', 'tblTempUsageDetail_20' ) start [2025-03-10 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648829', 'tblTempUsageDetail_20' ) end [2025-03-10 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648829', 'tblTempVendorCDR_20' ) start [2025-03-10 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648829', 'tblTempVendorCDR_20' ) end [2025-03-10 10:13:20] Production.INFO: ProcessCDR(1,14648829,1,1,2) [2025-03-10 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648829', 'tblTempUsageDetail_20' ) start [2025-03-10 10:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648829', 'tblTempUsageDetail_20' ) end [2025-03-10 10:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:13:26] Production.INFO: ==27978== Releasing lock... [2025-03-10 10:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:13:26] Production.INFO: 49.5 MB #Memory Used# [2025-03-10 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:14:05 [end_date_ymd] => 2025-03-10 10:14:05 [RateCDR] => 1 ) [2025-03-10 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:14:05' and `end` < '2025-03-10 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:14:18] Production.INFO: count ==2936 [2025-03-10 10:14:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:14:05 - End Time 2025-03-10 10:14:05 [2025-03-10 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648834', 'tblTempUsageDetail_20' ) start [2025-03-10 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648834', 'tblTempUsageDetail_20' ) end [2025-03-10 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648834', 'tblTempVendorCDR_20' ) start [2025-03-10 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648834', 'tblTempVendorCDR_20' ) end [2025-03-10 10:14:19] Production.INFO: ProcessCDR(1,14648834,1,1,2) [2025-03-10 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648834', 'tblTempUsageDetail_20' ) start [2025-03-10 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648834', 'tblTempUsageDetail_20' ) end [2025-03-10 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:14:25] Production.INFO: ==28053== Releasing lock... [2025-03-10 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:14:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-10 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:15:06 [end_date_ymd] => 2025-03-10 10:15:06 [RateCDR] => 1 ) [2025-03-10 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:15:06' and `end` < '2025-03-10 10:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:15:18] Production.INFO: count ==2945 [2025-03-10 10:15:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:15:06 - End Time 2025-03-10 10:15:06 [2025-03-10 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648839', 'tblTempUsageDetail_20' ) start [2025-03-10 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648839', 'tblTempUsageDetail_20' ) end [2025-03-10 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648839', 'tblTempVendorCDR_20' ) start [2025-03-10 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648839', 'tblTempVendorCDR_20' ) end [2025-03-10 10:15:20] Production.INFO: ProcessCDR(1,14648839,1,1,2) [2025-03-10 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648839', 'tblTempUsageDetail_20' ) start [2025-03-10 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648839', 'tblTempUsageDetail_20' ) end [2025-03-10 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:15:25] Production.INFO: ==28131== Releasing lock... [2025-03-10 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:15:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-10 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:16:06 [end_date_ymd] => 2025-03-10 10:16:06 [RateCDR] => 1 ) [2025-03-10 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:16:06' and `end` < '2025-03-10 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:16:19] Production.INFO: count ==2958 [2025-03-10 10:16:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:16:06 - End Time 2025-03-10 10:16:06 [2025-03-10 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648844', 'tblTempUsageDetail_20' ) start [2025-03-10 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648844', 'tblTempUsageDetail_20' ) end [2025-03-10 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648844', 'tblTempVendorCDR_20' ) start [2025-03-10 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648844', 'tblTempVendorCDR_20' ) end [2025-03-10 10:16:20] Production.INFO: ProcessCDR(1,14648844,1,1,2) [2025-03-10 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648844', 'tblTempUsageDetail_20' ) start [2025-03-10 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648844', 'tblTempUsageDetail_20' ) end [2025-03-10 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:16:25] Production.INFO: ==28211== Releasing lock... [2025-03-10 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:16:25] Production.INFO: 49.75 MB #Memory Used# [2025-03-10 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:17:06 [end_date_ymd] => 2025-03-10 10:17:06 [RateCDR] => 1 ) [2025-03-10 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:17:06' and `end` < '2025-03-10 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:17:19] Production.INFO: count ==2965 [2025-03-10 10:17:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:17:06 - End Time 2025-03-10 10:17:06 [2025-03-10 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648849', 'tblTempUsageDetail_20' ) start [2025-03-10 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648849', 'tblTempUsageDetail_20' ) end [2025-03-10 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648849', 'tblTempVendorCDR_20' ) start [2025-03-10 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648849', 'tblTempVendorCDR_20' ) end [2025-03-10 10:17:20] Production.INFO: ProcessCDR(1,14648849,1,1,2) [2025-03-10 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648849', 'tblTempUsageDetail_20' ) start [2025-03-10 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648849', 'tblTempUsageDetail_20' ) end [2025-03-10 10:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:17:26] Production.INFO: ==28290== Releasing lock... [2025-03-10 10:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:17:26] Production.INFO: 50 MB #Memory Used# [2025-03-10 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:18:05 [end_date_ymd] => 2025-03-10 10:18:05 [RateCDR] => 1 ) [2025-03-10 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:18:05' and `end` < '2025-03-10 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:18:18] Production.INFO: count ==2980 [2025-03-10 10:18:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:18:05 - End Time 2025-03-10 10:18:05 [2025-03-10 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648854', 'tblTempUsageDetail_20' ) start [2025-03-10 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648854', 'tblTempUsageDetail_20' ) end [2025-03-10 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648854', 'tblTempVendorCDR_20' ) start [2025-03-10 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648854', 'tblTempVendorCDR_20' ) end [2025-03-10 10:18:20] Production.INFO: ProcessCDR(1,14648854,1,1,2) [2025-03-10 10:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648854', 'tblTempUsageDetail_20' ) start [2025-03-10 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648854', 'tblTempUsageDetail_20' ) end [2025-03-10 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:18:26] Production.INFO: ==28363== Releasing lock... [2025-03-10 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:18:26] Production.INFO: 50.75 MB #Memory Used# [2025-03-10 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:19:06 [end_date_ymd] => 2025-03-10 10:19:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:19:06' and `end` < '2025-03-10 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-03-10 10:19:18] Production.INFO: count ==3014 [2025-03-10 10:19:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:19:06 - End Time 2025-03-10 10:19:06 [2025-03-10 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648859', 'tblTempUsageDetail_20' ) start [2025-03-10 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648859', 'tblTempUsageDetail_20' ) end [2025-03-10 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648859', 'tblTempVendorCDR_20' ) start [2025-03-10 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648859', 'tblTempVendorCDR_20' ) end [2025-03-10 10:19:20] Production.INFO: ProcessCDR(1,14648859,1,1,2) [2025-03-10 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648859', 'tblTempUsageDetail_20' ) start [2025-03-10 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648859', 'tblTempUsageDetail_20' ) end [2025-03-10 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:19:25] Production.INFO: ==28439== Releasing lock... [2025-03-10 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:19:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-10 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:20:07 [end_date_ymd] => 2025-03-10 10:20:07 [RateCDR] => 1 ) [2025-03-10 10:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:20:07' and `end` < '2025-03-10 10:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:20:19] Production.INFO: count ==3033 [2025-03-10 10:20:21] Production.ERROR: pbx CDR StartTime 2025-03-10 07:20:07 - End Time 2025-03-10 10:20:07 [2025-03-10 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648865', 'tblTempUsageDetail_20' ) start [2025-03-10 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648865', 'tblTempUsageDetail_20' ) end [2025-03-10 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648865', 'tblTempVendorCDR_20' ) start [2025-03-10 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648865', 'tblTempVendorCDR_20' ) end [2025-03-10 10:20:21] Production.INFO: ProcessCDR(1,14648865,1,1,2) [2025-03-10 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648865', 'tblTempUsageDetail_20' ) start [2025-03-10 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648865', 'tblTempUsageDetail_20' ) end [2025-03-10 10:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:20:26] Production.INFO: ==28525== Releasing lock... [2025-03-10 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:20:26] Production.INFO: 50.75 MB #Memory Used# [2025-03-10 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:21:05 [end_date_ymd] => 2025-03-10 10:21:05 [RateCDR] => 1 ) [2025-03-10 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:21:05' and `end` < '2025-03-10 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:21:18] Production.INFO: count ==3125 [2025-03-10 10:21:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:21:05 - End Time 2025-03-10 10:21:05 [2025-03-10 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648870', 'tblTempUsageDetail_20' ) start [2025-03-10 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648870', 'tblTempUsageDetail_20' ) end [2025-03-10 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648870', 'tblTempVendorCDR_20' ) start [2025-03-10 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648870', 'tblTempVendorCDR_20' ) end [2025-03-10 10:21:20] Production.INFO: ProcessCDR(1,14648870,1,1,2) [2025-03-10 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648870', 'tblTempUsageDetail_20' ) start [2025-03-10 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648870', 'tblTempUsageDetail_20' ) end [2025-03-10 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:21:25] Production.INFO: ==28597== Releasing lock... [2025-03-10 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:21:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-10 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:22:05 [end_date_ymd] => 2025-03-10 10:22:05 [RateCDR] => 1 ) [2025-03-10 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:22:05' and `end` < '2025-03-10 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:22:18] Production.INFO: count ==3140 [2025-03-10 10:22:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:22:05 - End Time 2025-03-10 10:22:05 [2025-03-10 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648875', 'tblTempUsageDetail_20' ) start [2025-03-10 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648875', 'tblTempUsageDetail_20' ) end [2025-03-10 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648875', 'tblTempVendorCDR_20' ) start [2025-03-10 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648875', 'tblTempVendorCDR_20' ) end [2025-03-10 10:22:20] Production.INFO: ProcessCDR(1,14648875,1,1,2) [2025-03-10 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648875', 'tblTempUsageDetail_20' ) start [2025-03-10 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648875', 'tblTempUsageDetail_20' ) end [2025-03-10 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:22:25] Production.INFO: ==28670== Releasing lock... [2025-03-10 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:22:25] Production.INFO: 52 MB #Memory Used# [2025-03-10 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:23:06 [end_date_ymd] => 2025-03-10 10:23:06 [RateCDR] => 1 ) [2025-03-10 10:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:23:06' and `end` < '2025-03-10 10:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:23:18] Production.INFO: count ==3155 [2025-03-10 10:23:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:23:06 - End Time 2025-03-10 10:23:06 [2025-03-10 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648880', 'tblTempUsageDetail_20' ) start [2025-03-10 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648880', 'tblTempUsageDetail_20' ) end [2025-03-10 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648880', 'tblTempVendorCDR_20' ) start [2025-03-10 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648880', 'tblTempVendorCDR_20' ) end [2025-03-10 10:23:20] Production.INFO: ProcessCDR(1,14648880,1,1,2) [2025-03-10 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648880', 'tblTempUsageDetail_20' ) start [2025-03-10 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648880', 'tblTempUsageDetail_20' ) end [2025-03-10 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:23:26] Production.INFO: ==28741== Releasing lock... [2025-03-10 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:23:26] Production.INFO: 52 MB #Memory Used# [2025-03-10 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:24:06 [end_date_ymd] => 2025-03-10 10:24:06 [RateCDR] => 1 ) [2025-03-10 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:24:06' and `end` < '2025-03-10 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:24:19] Production.INFO: count ==3160 [2025-03-10 10:24:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:24:06 - End Time 2025-03-10 10:24:06 [2025-03-10 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648885', 'tblTempUsageDetail_20' ) start [2025-03-10 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648885', 'tblTempUsageDetail_20' ) end [2025-03-10 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648885', 'tblTempVendorCDR_20' ) start [2025-03-10 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648885', 'tblTempVendorCDR_20' ) end [2025-03-10 10:24:20] Production.INFO: ProcessCDR(1,14648885,1,1,2) [2025-03-10 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648885', 'tblTempUsageDetail_20' ) start [2025-03-10 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648885', 'tblTempUsageDetail_20' ) end [2025-03-10 10:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:24:26] Production.INFO: ==28812== Releasing lock... [2025-03-10 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:24:26] Production.INFO: 51.5 MB #Memory Used# [2025-03-10 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:25:05 [end_date_ymd] => 2025-03-10 10:25:05 [RateCDR] => 1 ) [2025-03-10 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:25:05' and `end` < '2025-03-10 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:25:18] Production.INFO: count ==3166 [2025-03-10 10:25:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:25:05 - End Time 2025-03-10 10:25:05 [2025-03-10 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648890', 'tblTempUsageDetail_20' ) start [2025-03-10 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648890', 'tblTempUsageDetail_20' ) end [2025-03-10 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648890', 'tblTempVendorCDR_20' ) start [2025-03-10 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648890', 'tblTempVendorCDR_20' ) end [2025-03-10 10:25:19] Production.INFO: ProcessCDR(1,14648890,1,1,2) [2025-03-10 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648890', 'tblTempUsageDetail_20' ) start [2025-03-10 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648890', 'tblTempUsageDetail_20' ) end [2025-03-10 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:25:25] Production.INFO: ==28882== Releasing lock... [2025-03-10 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:25:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-10 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:26:05 [end_date_ymd] => 2025-03-10 10:26:05 [RateCDR] => 1 ) [2025-03-10 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:26:05' and `end` < '2025-03-10 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:26:18] Production.INFO: count ==3179 [2025-03-10 10:26:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:26:05 - End Time 2025-03-10 10:26:05 [2025-03-10 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648895', 'tblTempUsageDetail_20' ) start [2025-03-10 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648895', 'tblTempUsageDetail_20' ) end [2025-03-10 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648895', 'tblTempVendorCDR_20' ) start [2025-03-10 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648895', 'tblTempVendorCDR_20' ) end [2025-03-10 10:26:20] Production.INFO: ProcessCDR(1,14648895,1,1,2) [2025-03-10 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648895', 'tblTempUsageDetail_20' ) start [2025-03-10 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648895', 'tblTempUsageDetail_20' ) end [2025-03-10 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:26:25] Production.INFO: ==28954== Releasing lock... [2025-03-10 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:26:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-10 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:27:05 [end_date_ymd] => 2025-03-10 10:27:05 [RateCDR] => 1 ) [2025-03-10 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:27:05' and `end` < '2025-03-10 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:27:17] Production.INFO: count ==3200 [2025-03-10 10:27:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:27:05 - End Time 2025-03-10 10:27:05 [2025-03-10 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648900', 'tblTempUsageDetail_20' ) start [2025-03-10 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648900', 'tblTempUsageDetail_20' ) end [2025-03-10 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648900', 'tblTempVendorCDR_20' ) start [2025-03-10 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648900', 'tblTempVendorCDR_20' ) end [2025-03-10 10:27:19] Production.INFO: ProcessCDR(1,14648900,1,1,2) [2025-03-10 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648900', 'tblTempUsageDetail_20' ) start [2025-03-10 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648900', 'tblTempUsageDetail_20' ) end [2025-03-10 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:27:24] Production.INFO: ==29064== Releasing lock... [2025-03-10 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:27:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-10 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:28:05 [end_date_ymd] => 2025-03-10 10:28:05 [RateCDR] => 1 ) [2025-03-10 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:28:05' and `end` < '2025-03-10 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:28:18] Production.INFO: count ==3224 [2025-03-10 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:28:05 - End Time 2025-03-10 10:28:05 [2025-03-10 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648905', 'tblTempUsageDetail_20' ) start [2025-03-10 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648905', 'tblTempUsageDetail_20' ) end [2025-03-10 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648905', 'tblTempVendorCDR_20' ) start [2025-03-10 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648905', 'tblTempVendorCDR_20' ) end [2025-03-10 10:28:20] Production.INFO: ProcessCDR(1,14648905,1,1,2) [2025-03-10 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648905', 'tblTempUsageDetail_20' ) start [2025-03-10 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648905', 'tblTempUsageDetail_20' ) end [2025-03-10 10:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:28:23] Production.INFO: ==29136== Releasing lock... [2025-03-10 10:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:28:23] Production.INFO: 52 MB #Memory Used# [2025-03-10 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:29:05 [end_date_ymd] => 2025-03-10 10:29:05 [RateCDR] => 1 ) [2025-03-10 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:29:05' and `end` < '2025-03-10 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:29:18] Production.INFO: count ==3245 [2025-03-10 10:29:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:29:05 - End Time 2025-03-10 10:29:05 [2025-03-10 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648910', 'tblTempUsageDetail_20' ) start [2025-03-10 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648910', 'tblTempUsageDetail_20' ) end [2025-03-10 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648910', 'tblTempVendorCDR_20' ) start [2025-03-10 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648910', 'tblTempVendorCDR_20' ) end [2025-03-10 10:29:20] Production.INFO: ProcessCDR(1,14648910,1,1,2) [2025-03-10 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648910', 'tblTempUsageDetail_20' ) start [2025-03-10 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648910', 'tblTempUsageDetail_20' ) end [2025-03-10 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:29:25] Production.INFO: ==29206== Releasing lock... [2025-03-10 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:29:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-10 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:30:06 [end_date_ymd] => 2025-03-10 10:30:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:30:06' and `end` < '2025-03-10 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-03-10 10:30:19] Production.INFO: count ==3256 [2025-03-10 10:30:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:30:06 - End Time 2025-03-10 10:30:06 [2025-03-10 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648916', 'tblTempUsageDetail_20' ) start [2025-03-10 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648916', 'tblTempUsageDetail_20' ) end [2025-03-10 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648916', 'tblTempVendorCDR_20' ) start [2025-03-10 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648916', 'tblTempVendorCDR_20' ) end [2025-03-10 10:30:20] Production.INFO: ProcessCDR(1,14648916,1,1,2) [2025-03-10 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648916', 'tblTempUsageDetail_20' ) start [2025-03-10 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648916', 'tblTempUsageDetail_20' ) end [2025-03-10 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:30:26] Production.INFO: ==29280== Releasing lock... [2025-03-10 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:30:26] Production.INFO: 52.25 MB #Memory Used# [2025-03-10 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:31:05 [end_date_ymd] => 2025-03-10 10:31:05 [RateCDR] => 1 ) [2025-03-10 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:31:05' and `end` < '2025-03-10 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:31:18] Production.INFO: count ==3376 [2025-03-10 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:31:05 - End Time 2025-03-10 10:31:05 [2025-03-10 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648921', 'tblTempUsageDetail_20' ) start [2025-03-10 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648921', 'tblTempUsageDetail_20' ) end [2025-03-10 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648921', 'tblTempVendorCDR_20' ) start [2025-03-10 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648921', 'tblTempVendorCDR_20' ) end [2025-03-10 10:31:19] Production.INFO: ProcessCDR(1,14648921,1,1,2) [2025-03-10 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648921', 'tblTempUsageDetail_20' ) start [2025-03-10 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648921', 'tblTempUsageDetail_20' ) end [2025-03-10 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:31:25] Production.INFO: ==29355== Releasing lock... [2025-03-10 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:31:25] Production.INFO: 53.25 MB #Memory Used# [2025-03-10 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:32:06 [end_date_ymd] => 2025-03-10 10:32:06 [RateCDR] => 1 ) [2025-03-10 10:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:32:06' and `end` < '2025-03-10 10:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:32:18] Production.INFO: count ==3384 [2025-03-10 10:32:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:32:06 - End Time 2025-03-10 10:32:06 [2025-03-10 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648926', 'tblTempUsageDetail_20' ) start [2025-03-10 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648926', 'tblTempUsageDetail_20' ) end [2025-03-10 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648926', 'tblTempVendorCDR_20' ) start [2025-03-10 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648926', 'tblTempVendorCDR_20' ) end [2025-03-10 10:32:20] Production.INFO: ProcessCDR(1,14648926,1,1,2) [2025-03-10 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648926', 'tblTempUsageDetail_20' ) start [2025-03-10 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648926', 'tblTempUsageDetail_20' ) end [2025-03-10 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:32:25] Production.INFO: ==29430== Releasing lock... [2025-03-10 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:32:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-10 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:33:05 [end_date_ymd] => 2025-03-10 10:33:05 [RateCDR] => 1 ) [2025-03-10 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:33:05' and `end` < '2025-03-10 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:33:18] Production.INFO: count ==3396 [2025-03-10 10:33:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:33:05 - End Time 2025-03-10 10:33:05 [2025-03-10 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648931', 'tblTempUsageDetail_20' ) start [2025-03-10 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648931', 'tblTempUsageDetail_20' ) end [2025-03-10 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648931', 'tblTempVendorCDR_20' ) start [2025-03-10 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648931', 'tblTempVendorCDR_20' ) end [2025-03-10 10:33:20] Production.INFO: ProcessCDR(1,14648931,1,1,2) [2025-03-10 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648931', 'tblTempUsageDetail_20' ) start [2025-03-10 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648931', 'tblTempUsageDetail_20' ) end [2025-03-10 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:33:26] Production.INFO: ==29506== Releasing lock... [2025-03-10 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:33:26] Production.INFO: 53.25 MB #Memory Used# [2025-03-10 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:34:06 [end_date_ymd] => 2025-03-10 10:34:06 [RateCDR] => 1 ) [2025-03-10 10:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:34:06' and `end` < '2025-03-10 10:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:34:18] Production.INFO: count ==3417 [2025-03-10 10:34:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:34:06 - End Time 2025-03-10 10:34:06 [2025-03-10 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648936', 'tblTempUsageDetail_20' ) start [2025-03-10 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648936', 'tblTempUsageDetail_20' ) end [2025-03-10 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648936', 'tblTempVendorCDR_20' ) start [2025-03-10 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648936', 'tblTempVendorCDR_20' ) end [2025-03-10 10:34:20] Production.INFO: ProcessCDR(1,14648936,1,1,2) [2025-03-10 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648936', 'tblTempUsageDetail_20' ) start [2025-03-10 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648936', 'tblTempUsageDetail_20' ) end [2025-03-10 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:34:26] Production.INFO: ==29606== Releasing lock... [2025-03-10 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:34:26] Production.INFO: 53.5 MB #Memory Used# [2025-03-10 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:35:05 [end_date_ymd] => 2025-03-10 10:35:05 [RateCDR] => 1 ) [2025-03-10 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:35:05' and `end` < '2025-03-10 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:35:18] Production.INFO: count ==3434 [2025-03-10 10:35:19] Production.ERROR: pbx CDR StartTime 2025-03-10 07:35:05 - End Time 2025-03-10 10:35:05 [2025-03-10 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648941', 'tblTempUsageDetail_20' ) start [2025-03-10 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648941', 'tblTempUsageDetail_20' ) end [2025-03-10 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648941', 'tblTempVendorCDR_20' ) start [2025-03-10 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648941', 'tblTempVendorCDR_20' ) end [2025-03-10 10:35:19] Production.INFO: ProcessCDR(1,14648941,1,1,2) [2025-03-10 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648941', 'tblTempUsageDetail_20' ) start [2025-03-10 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648941', 'tblTempUsageDetail_20' ) end [2025-03-10 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:35:25] Production.INFO: ==29702== Releasing lock... [2025-03-10 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:35:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-10 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:36:05 [end_date_ymd] => 2025-03-10 10:36:05 [RateCDR] => 1 ) [2025-03-10 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:36:05' and `end` < '2025-03-10 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:36:18] Production.INFO: count ==3453 [2025-03-10 10:36:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:36:05 - End Time 2025-03-10 10:36:05 [2025-03-10 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648946', 'tblTempUsageDetail_20' ) start [2025-03-10 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648946', 'tblTempUsageDetail_20' ) end [2025-03-10 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648946', 'tblTempVendorCDR_20' ) start [2025-03-10 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648946', 'tblTempVendorCDR_20' ) end [2025-03-10 10:36:20] Production.INFO: ProcessCDR(1,14648946,1,1,2) [2025-03-10 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648946', 'tblTempUsageDetail_20' ) start [2025-03-10 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648946', 'tblTempUsageDetail_20' ) end [2025-03-10 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:36:24] Production.INFO: ==29803== Releasing lock... [2025-03-10 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:36:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-10 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:37:06 [end_date_ymd] => 2025-03-10 10:37:06 [RateCDR] => 1 ) [2025-03-10 10:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:37:06' and `end` < '2025-03-10 10:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:37:19] Production.INFO: count ==3457 [2025-03-10 10:37:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:37:06 - End Time 2025-03-10 10:37:06 [2025-03-10 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648951', 'tblTempUsageDetail_20' ) start [2025-03-10 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648951', 'tblTempUsageDetail_20' ) end [2025-03-10 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648951', 'tblTempVendorCDR_20' ) start [2025-03-10 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648951', 'tblTempVendorCDR_20' ) end [2025-03-10 10:37:21] Production.INFO: ProcessCDR(1,14648951,1,1,2) [2025-03-10 10:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648951', 'tblTempUsageDetail_20' ) start [2025-03-10 10:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648951', 'tblTempUsageDetail_20' ) end [2025-03-10 10:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:37:26] Production.INFO: ==29899== Releasing lock... [2025-03-10 10:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:37:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-10 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:38:06 [end_date_ymd] => 2025-03-10 10:38:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:38:06' and `end` < '2025-03-10 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-03-10 10:38:19] Production.INFO: count ==3465 [2025-03-10 10:38:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:38:06 - End Time 2025-03-10 10:38:06 [2025-03-10 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648956', 'tblTempUsageDetail_20' ) start [2025-03-10 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648956', 'tblTempUsageDetail_20' ) end [2025-03-10 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648956', 'tblTempVendorCDR_20' ) start [2025-03-10 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648956', 'tblTempVendorCDR_20' ) end [2025-03-10 10:38:20] Production.INFO: ProcessCDR(1,14648956,1,1,2) [2025-03-10 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648956', 'tblTempUsageDetail_20' ) start [2025-03-10 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648956', 'tblTempUsageDetail_20' ) end [2025-03-10 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:38:26] Production.INFO: ==29995== Releasing lock... [2025-03-10 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:38:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-10 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:39:06 [end_date_ymd] => 2025-03-10 10:39:06 [RateCDR] => 1 ) [2025-03-10 10:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:39:06' and `end` < '2025-03-10 10:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:39:19] Production.INFO: count ==3497 [2025-03-10 10:39:21] Production.ERROR: pbx CDR StartTime 2025-03-10 07:39:06 - End Time 2025-03-10 10:39:06 [2025-03-10 10:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648961', 'tblTempUsageDetail_20' ) start [2025-03-10 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648961', 'tblTempUsageDetail_20' ) end [2025-03-10 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648961', 'tblTempVendorCDR_20' ) start [2025-03-10 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648961', 'tblTempVendorCDR_20' ) end [2025-03-10 10:39:21] Production.INFO: ProcessCDR(1,14648961,1,1,2) [2025-03-10 10:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648961', 'tblTempUsageDetail_20' ) start [2025-03-10 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648961', 'tblTempUsageDetail_20' ) end [2025-03-10 10:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:39:27] Production.INFO: ==30092== Releasing lock... [2025-03-10 10:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:39:27] Production.INFO: 54 MB #Memory Used# [2025-03-10 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:40:06 [end_date_ymd] => 2025-03-10 10:40:06 [RateCDR] => 1 ) [2025-03-10 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:40:06' and `end` < '2025-03-10 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:40:19] Production.INFO: count ==3519 [2025-03-10 10:40:21] Production.ERROR: pbx CDR StartTime 2025-03-10 07:40:06 - End Time 2025-03-10 10:40:06 [2025-03-10 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648966', 'tblTempUsageDetail_20' ) start [2025-03-10 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648966', 'tblTempUsageDetail_20' ) end [2025-03-10 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648966', 'tblTempVendorCDR_20' ) start [2025-03-10 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648966', 'tblTempVendorCDR_20' ) end [2025-03-10 10:40:21] Production.INFO: ProcessCDR(1,14648966,1,1,2) [2025-03-10 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648966', 'tblTempUsageDetail_20' ) start [2025-03-10 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648966', 'tblTempUsageDetail_20' ) end [2025-03-10 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:40:26] Production.INFO: ==30189== Releasing lock... [2025-03-10 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:40:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-10 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:41:06 [end_date_ymd] => 2025-03-10 10:41:06 [RateCDR] => 1 ) [2025-03-10 10:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:41:06' and `end` < '2025-03-10 10:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:41:19] Production.INFO: count ==3652 [2025-03-10 10:41:21] Production.ERROR: pbx CDR StartTime 2025-03-10 07:41:06 - End Time 2025-03-10 10:41:06 [2025-03-10 10:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648972', 'tblTempUsageDetail_20' ) start [2025-03-10 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648972', 'tblTempUsageDetail_20' ) end [2025-03-10 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648972', 'tblTempVendorCDR_20' ) start [2025-03-10 10:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648972', 'tblTempVendorCDR_20' ) end [2025-03-10 10:41:21] Production.INFO: ProcessCDR(1,14648972,1,1,2) [2025-03-10 10:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648972', 'tblTempUsageDetail_20' ) start [2025-03-10 10:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648972', 'tblTempUsageDetail_20' ) end [2025-03-10 10:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:41:27] Production.INFO: ==30289== Releasing lock... [2025-03-10 10:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:41:27] Production.INFO: 55.25 MB #Memory Used# [2025-03-10 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:42:05 [end_date_ymd] => 2025-03-10 10:42:05 [RateCDR] => 1 ) [2025-03-10 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:42:05' and `end` < '2025-03-10 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:42:18] Production.INFO: count ==3692 [2025-03-10 10:42:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:42:05 - End Time 2025-03-10 10:42:05 [2025-03-10 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648977', 'tblTempUsageDetail_20' ) start [2025-03-10 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648977', 'tblTempUsageDetail_20' ) end [2025-03-10 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648977', 'tblTempVendorCDR_20' ) start [2025-03-10 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648977', 'tblTempVendorCDR_20' ) end [2025-03-10 10:42:20] Production.INFO: ProcessCDR(1,14648977,1,1,2) [2025-03-10 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648977', 'tblTempUsageDetail_20' ) start [2025-03-10 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648977', 'tblTempUsageDetail_20' ) end [2025-03-10 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:42:26] Production.INFO: ==30422== Releasing lock... [2025-03-10 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:42:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-10 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:43:06 [end_date_ymd] => 2025-03-10 10:43:06 [RateCDR] => 1 ) [2025-03-10 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:43:06' and `end` < '2025-03-10 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:43:19] Production.INFO: count ==3715 [2025-03-10 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:43:06 - End Time 2025-03-10 10:43:06 [2025-03-10 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648982', 'tblTempUsageDetail_20' ) start [2025-03-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648982', 'tblTempUsageDetail_20' ) end [2025-03-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648982', 'tblTempVendorCDR_20' ) start [2025-03-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648982', 'tblTempVendorCDR_20' ) end [2025-03-10 10:43:20] Production.INFO: ProcessCDR(1,14648982,1,1,2) [2025-03-10 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648982', 'tblTempUsageDetail_20' ) start [2025-03-10 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648982', 'tblTempUsageDetail_20' ) end [2025-03-10 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:43:26] Production.INFO: ==30515== Releasing lock... [2025-03-10 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:43:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-10 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:44:06 [end_date_ymd] => 2025-03-10 10:44:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:44:06' and `end` < '2025-03-10 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-03-10 10:44:19] Production.INFO: count ==3731 [2025-03-10 10:44:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:44:06 - End Time 2025-03-10 10:44:06 [2025-03-10 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648987', 'tblTempUsageDetail_20' ) start [2025-03-10 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648987', 'tblTempUsageDetail_20' ) end [2025-03-10 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648987', 'tblTempVendorCDR_20' ) start [2025-03-10 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648987', 'tblTempVendorCDR_20' ) end [2025-03-10 10:44:20] Production.INFO: ProcessCDR(1,14648987,1,1,2) [2025-03-10 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648987', 'tblTempUsageDetail_20' ) start [2025-03-10 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648987', 'tblTempUsageDetail_20' ) end [2025-03-10 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:44:26] Production.INFO: ==30637== Releasing lock... [2025-03-10 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:44:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-10 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:45:06 [end_date_ymd] => 2025-03-10 10:45:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:45:06' and `end` < '2025-03-10 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-03-10 10:45:19] Production.INFO: count ==3750 [2025-03-10 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:45:06 - End Time 2025-03-10 10:45:06 [2025-03-10 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648992', 'tblTempUsageDetail_20' ) start [2025-03-10 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648992', 'tblTempUsageDetail_20' ) end [2025-03-10 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648992', 'tblTempVendorCDR_20' ) start [2025-03-10 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648992', 'tblTempVendorCDR_20' ) end [2025-03-10 10:45:20] Production.INFO: ProcessCDR(1,14648992,1,1,2) [2025-03-10 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648992', 'tblTempUsageDetail_20' ) start [2025-03-10 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648992', 'tblTempUsageDetail_20' ) end [2025-03-10 10:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:45:26] Production.INFO: ==30764== Releasing lock... [2025-03-10 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:45:26] Production.INFO: 56.25 MB #Memory Used# [2025-03-10 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:46:05 [end_date_ymd] => 2025-03-10 10:46:05 [RateCDR] => 1 ) [2025-03-10 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:46:05' and `end` < '2025-03-10 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:46:18] Production.INFO: count ==3766 [2025-03-10 10:46:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:46:05 - End Time 2025-03-10 10:46:05 [2025-03-10 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648997', 'tblTempUsageDetail_20' ) start [2025-03-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14648997', 'tblTempUsageDetail_20' ) end [2025-03-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648997', 'tblTempVendorCDR_20' ) start [2025-03-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14648997', 'tblTempVendorCDR_20' ) end [2025-03-10 10:46:20] Production.INFO: ProcessCDR(1,14648997,1,1,2) [2025-03-10 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14648997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14648997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14648997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14648997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648997', 'tblTempUsageDetail_20' ) start [2025-03-10 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14648997', 'tblTempUsageDetail_20' ) end [2025-03-10 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:46:25] Production.INFO: ==30882== Releasing lock... [2025-03-10 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:46:25] Production.INFO: 56 MB #Memory Used# [2025-03-10 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:47:05 [end_date_ymd] => 2025-03-10 10:47:05 [RateCDR] => 1 ) [2025-03-10 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:47:05' and `end` < '2025-03-10 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:47:18] Production.INFO: count ==3778 [2025-03-10 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:47:05 - End Time 2025-03-10 10:47:05 [2025-03-10 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649002', 'tblTempUsageDetail_20' ) start [2025-03-10 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649002', 'tblTempUsageDetail_20' ) end [2025-03-10 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649002', 'tblTempVendorCDR_20' ) start [2025-03-10 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649002', 'tblTempVendorCDR_20' ) end [2025-03-10 10:47:20] Production.INFO: ProcessCDR(1,14649002,1,1,2) [2025-03-10 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649002', 'tblTempUsageDetail_20' ) start [2025-03-10 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649002', 'tblTempUsageDetail_20' ) end [2025-03-10 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:47:26] Production.INFO: ==31001== Releasing lock... [2025-03-10 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:47:26] Production.INFO: 56.25 MB #Memory Used# [2025-03-10 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:48:06 [end_date_ymd] => 2025-03-10 10:48:06 [RateCDR] => 1 ) [2025-03-10 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:48:06' and `end` < '2025-03-10 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:48:19] Production.INFO: count ==3791 [2025-03-10 10:48:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:48:06 - End Time 2025-03-10 10:48:06 [2025-03-10 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649007', 'tblTempUsageDetail_20' ) start [2025-03-10 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649007', 'tblTempUsageDetail_20' ) end [2025-03-10 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649007', 'tblTempVendorCDR_20' ) start [2025-03-10 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649007', 'tblTempVendorCDR_20' ) end [2025-03-10 10:48:21] Production.INFO: ProcessCDR(1,14649007,1,1,2) [2025-03-10 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649007', 'tblTempUsageDetail_20' ) start [2025-03-10 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649007', 'tblTempUsageDetail_20' ) end [2025-03-10 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:48:26] Production.INFO: ==31098== Releasing lock... [2025-03-10 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:48:26] Production.INFO: 56.25 MB #Memory Used# [2025-03-10 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:49:06 [end_date_ymd] => 2025-03-10 10:49:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:49:06' and `end` < '2025-03-10 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-03-10 10:49:19] Production.INFO: count ==3826 [2025-03-10 10:49:21] Production.ERROR: pbx CDR StartTime 2025-03-10 07:49:06 - End Time 2025-03-10 10:49:06 [2025-03-10 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649012', 'tblTempUsageDetail_20' ) start [2025-03-10 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649012', 'tblTempUsageDetail_20' ) end [2025-03-10 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649012', 'tblTempVendorCDR_20' ) start [2025-03-10 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649012', 'tblTempVendorCDR_20' ) end [2025-03-10 10:49:21] Production.INFO: ProcessCDR(1,14649012,1,1,2) [2025-03-10 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649012', 'tblTempUsageDetail_20' ) start [2025-03-10 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649012', 'tblTempUsageDetail_20' ) end [2025-03-10 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:49:26] Production.INFO: ==31201== Releasing lock... [2025-03-10 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:49:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-10 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:50:06 [end_date_ymd] => 2025-03-10 10:50:06 [RateCDR] => 1 ) [2025-03-10 10:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:50:06' and `end` < '2025-03-10 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:50:20] Production.INFO: count ==3835 [2025-03-10 10:50:21] Production.ERROR: pbx CDR StartTime 2025-03-10 07:50:06 - End Time 2025-03-10 10:50:06 [2025-03-10 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649018', 'tblTempUsageDetail_20' ) start [2025-03-10 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649018', 'tblTempUsageDetail_20' ) end [2025-03-10 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649018', 'tblTempVendorCDR_20' ) start [2025-03-10 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649018', 'tblTempVendorCDR_20' ) end [2025-03-10 10:50:21] Production.INFO: ProcessCDR(1,14649018,1,1,2) [2025-03-10 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649018', 'tblTempUsageDetail_20' ) start [2025-03-10 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649018', 'tblTempUsageDetail_20' ) end [2025-03-10 10:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:50:27] Production.INFO: ==31310== Releasing lock... [2025-03-10 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:50:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-10 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:51:06 [end_date_ymd] => 2025-03-10 10:51:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:51:06' and `end` < '2025-03-10 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-03-10 10:51:18] Production.INFO: count ==3974 [2025-03-10 10:51:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:51:06 - End Time 2025-03-10 10:51:06 [2025-03-10 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649023', 'tblTempUsageDetail_20' ) start [2025-03-10 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649023', 'tblTempUsageDetail_20' ) end [2025-03-10 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649023', 'tblTempVendorCDR_20' ) start [2025-03-10 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649023', 'tblTempVendorCDR_20' ) end [2025-03-10 10:51:20] Production.INFO: ProcessCDR(1,14649023,1,1,2) [2025-03-10 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649023', 'tblTempUsageDetail_20' ) start [2025-03-10 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649023', 'tblTempUsageDetail_20' ) end [2025-03-10 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:51:26] Production.INFO: ==31420== Releasing lock... [2025-03-10 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:51:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-10 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:52:05 [end_date_ymd] => 2025-03-10 10:52:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:52:05' and `end` < '2025-03-10 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:52:18] Production.INFO: count ==3994 [2025-03-10 10:52:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:52:05 - End Time 2025-03-10 10:52:05 [2025-03-10 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649028', 'tblTempUsageDetail_20' ) start [2025-03-10 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649028', 'tblTempUsageDetail_20' ) end [2025-03-10 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649028', 'tblTempVendorCDR_20' ) start [2025-03-10 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649028', 'tblTempVendorCDR_20' ) end [2025-03-10 10:52:20] Production.INFO: ProcessCDR(1,14649028,1,1,2) [2025-03-10 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649028', 'tblTempUsageDetail_20' ) start [2025-03-10 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649028', 'tblTempUsageDetail_20' ) end [2025-03-10 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:52:26] Production.INFO: ==31520== Releasing lock... [2025-03-10 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:52:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-10 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:53:06 [end_date_ymd] => 2025-03-10 10:53:06 [RateCDR] => 1 ) [2025-03-10 10:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:53:06' and `end` < '2025-03-10 10:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:53:19] Production.INFO: count ==4022 [2025-03-10 10:53:21] Production.ERROR: pbx CDR StartTime 2025-03-10 07:53:06 - End Time 2025-03-10 10:53:06 [2025-03-10 10:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649033', 'tblTempUsageDetail_20' ) start [2025-03-10 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649033', 'tblTempUsageDetail_20' ) end [2025-03-10 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649033', 'tblTempVendorCDR_20' ) start [2025-03-10 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649033', 'tblTempVendorCDR_20' ) end [2025-03-10 10:53:21] Production.INFO: ProcessCDR(1,14649033,1,1,2) [2025-03-10 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649033', 'tblTempUsageDetail_20' ) start [2025-03-10 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649033', 'tblTempUsageDetail_20' ) end [2025-03-10 10:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:53:26] Production.INFO: ==31627== Releasing lock... [2025-03-10 10:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:53:26] Production.INFO: 58 MB #Memory Used# [2025-03-10 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:54:05 [end_date_ymd] => 2025-03-10 10:54:05 [RateCDR] => 1 ) [2025-03-10 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:54:05' and `end` < '2025-03-10 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:54:18] Production.INFO: count ==4027 [2025-03-10 10:54:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:54:05 - End Time 2025-03-10 10:54:05 [2025-03-10 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649038', 'tblTempUsageDetail_20' ) start [2025-03-10 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649038', 'tblTempUsageDetail_20' ) end [2025-03-10 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649038', 'tblTempVendorCDR_20' ) start [2025-03-10 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649038', 'tblTempVendorCDR_20' ) end [2025-03-10 10:54:20] Production.INFO: ProcessCDR(1,14649038,1,1,2) [2025-03-10 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649038', 'tblTempUsageDetail_20' ) start [2025-03-10 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649038', 'tblTempUsageDetail_20' ) end [2025-03-10 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:54:26] Production.INFO: ==31723== Releasing lock... [2025-03-10 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:54:26] Production.INFO: 58 MB #Memory Used# [2025-03-10 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:55:06 [end_date_ymd] => 2025-03-10 10:55:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:55:06' and `end` < '2025-03-10 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-03-10 10:55:19] Production.INFO: count ==4044 [2025-03-10 10:55:21] Production.ERROR: pbx CDR StartTime 2025-03-10 07:55:06 - End Time 2025-03-10 10:55:06 [2025-03-10 10:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649043', 'tblTempUsageDetail_20' ) start [2025-03-10 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649043', 'tblTempUsageDetail_20' ) end [2025-03-10 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649043', 'tblTempVendorCDR_20' ) start [2025-03-10 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649043', 'tblTempVendorCDR_20' ) end [2025-03-10 10:55:21] Production.INFO: ProcessCDR(1,14649043,1,1,2) [2025-03-10 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649043', 'tblTempUsageDetail_20' ) start [2025-03-10 10:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649043', 'tblTempUsageDetail_20' ) end [2025-03-10 10:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:55:27] Production.INFO: ==31802== Releasing lock... [2025-03-10 10:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:55:27] Production.INFO: 58.25 MB #Memory Used# [2025-03-10 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:56:06 [end_date_ymd] => 2025-03-10 10:56:06 [RateCDR] => 1 ) [2025-03-10 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:56:06' and `end` < '2025-03-10 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:56:19] Production.INFO: count ==4059 [2025-03-10 10:56:21] Production.ERROR: pbx CDR StartTime 2025-03-10 07:56:06 - End Time 2025-03-10 10:56:06 [2025-03-10 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649048', 'tblTempUsageDetail_20' ) start [2025-03-10 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649048', 'tblTempUsageDetail_20' ) end [2025-03-10 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649048', 'tblTempVendorCDR_20' ) start [2025-03-10 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649048', 'tblTempVendorCDR_20' ) end [2025-03-10 10:56:21] Production.INFO: ProcessCDR(1,14649048,1,1,2) [2025-03-10 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649048', 'tblTempUsageDetail_20' ) start [2025-03-10 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649048', 'tblTempUsageDetail_20' ) end [2025-03-10 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:56:26] Production.INFO: ==31887== Releasing lock... [2025-03-10 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:56:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-10 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:57:06 [end_date_ymd] => 2025-03-10 10:57:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 07:57:06' and `end` < '2025-03-10 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-03-10 10:57:19] Production.INFO: count ==4064 [2025-03-10 10:57:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:57:06 - End Time 2025-03-10 10:57:06 [2025-03-10 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649053', 'tblTempUsageDetail_20' ) start [2025-03-10 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649053', 'tblTempUsageDetail_20' ) end [2025-03-10 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649053', 'tblTempVendorCDR_20' ) start [2025-03-10 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649053', 'tblTempVendorCDR_20' ) end [2025-03-10 10:57:21] Production.INFO: ProcessCDR(1,14649053,1,1,2) [2025-03-10 10:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649053', 'tblTempUsageDetail_20' ) start [2025-03-10 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649053', 'tblTempUsageDetail_20' ) end [2025-03-10 10:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:57:27] Production.INFO: ==31975== Releasing lock... [2025-03-10 10:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:57:27] Production.INFO: 58.25 MB #Memory Used# [2025-03-10 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:58:05 [end_date_ymd] => 2025-03-10 10:58:05 [RateCDR] => 1 ) [2025-03-10 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:58:05' and `end` < '2025-03-10 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:58:18] Production.INFO: count ==4087 [2025-03-10 10:58:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:58:05 - End Time 2025-03-10 10:58:05 [2025-03-10 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649058', 'tblTempUsageDetail_20' ) start [2025-03-10 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649058', 'tblTempUsageDetail_20' ) end [2025-03-10 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649058', 'tblTempVendorCDR_20' ) start [2025-03-10 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649058', 'tblTempVendorCDR_20' ) end [2025-03-10 10:58:20] Production.INFO: ProcessCDR(1,14649058,1,1,2) [2025-03-10 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649058', 'tblTempUsageDetail_20' ) start [2025-03-10 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649058', 'tblTempUsageDetail_20' ) end [2025-03-10 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:58:26] Production.INFO: ==32089== Releasing lock... [2025-03-10 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:58:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-10 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 07:59:06 [end_date_ymd] => 2025-03-10 10:59:06 [RateCDR] => 1 ) [2025-03-10 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 07:59:06' and `end` < '2025-03-10 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 10:59:19] Production.INFO: count ==4092 [2025-03-10 10:59:20] Production.ERROR: pbx CDR StartTime 2025-03-10 07:59:06 - End Time 2025-03-10 10:59:06 [2025-03-10 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649063', 'tblTempUsageDetail_20' ) start [2025-03-10 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649063', 'tblTempUsageDetail_20' ) end [2025-03-10 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649063', 'tblTempVendorCDR_20' ) start [2025-03-10 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649063', 'tblTempVendorCDR_20' ) end [2025-03-10 10:59:21] Production.INFO: ProcessCDR(1,14649063,1,1,2) [2025-03-10 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649063', 'tblTempUsageDetail_20' ) start [2025-03-10 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649063', 'tblTempUsageDetail_20' ) end [2025-03-10 10:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 10:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 10:59:26] Production.INFO: ==32168== Releasing lock... [2025-03-10 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 10:59:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-10 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:00:06 [end_date_ymd] => 2025-03-10 11:00:06 [RateCDR] => 1 ) [2025-03-10 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:00:06' and `end` < '2025-03-10 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:00:19] Production.INFO: count ==4114 [2025-03-10 11:00:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:00:06 - End Time 2025-03-10 11:00:06 [2025-03-10 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649068', 'tblTempUsageDetail_20' ) start [2025-03-10 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649068', 'tblTempUsageDetail_20' ) end [2025-03-10 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649068', 'tblTempVendorCDR_20' ) start [2025-03-10 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649068', 'tblTempVendorCDR_20' ) end [2025-03-10 11:00:21] Production.INFO: ProcessCDR(1,14649068,1,1,2) [2025-03-10 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649068', 'tblTempUsageDetail_20' ) start [2025-03-10 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649068', 'tblTempUsageDetail_20' ) end [2025-03-10 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:00:27] Production.INFO: ==32257== Releasing lock... [2025-03-10 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:00:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-10 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:01:06 [end_date_ymd] => 2025-03-10 11:01:06 [RateCDR] => 1 ) [2025-03-10 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:01:06' and `end` < '2025-03-10 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:01:19] Production.INFO: count ==4200 [2025-03-10 11:01:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:01:06 - End Time 2025-03-10 11:01:06 [2025-03-10 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649074', 'tblTempUsageDetail_20' ) start [2025-03-10 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649074', 'tblTempUsageDetail_20' ) end [2025-03-10 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649074', 'tblTempVendorCDR_20' ) start [2025-03-10 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649074', 'tblTempVendorCDR_20' ) end [2025-03-10 11:01:21] Production.INFO: ProcessCDR(1,14649074,1,1,2) [2025-03-10 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649074', 'tblTempUsageDetail_20' ) start [2025-03-10 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649074', 'tblTempUsageDetail_20' ) end [2025-03-10 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:01:26] Production.INFO: ==32395== Releasing lock... [2025-03-10 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:01:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-10 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:02:05 [end_date_ymd] => 2025-03-10 11:02:05 [RateCDR] => 1 ) [2025-03-10 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:02:05' and `end` < '2025-03-10 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:02:18] Production.INFO: count ==4206 [2025-03-10 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:02:05 - End Time 2025-03-10 11:02:05 [2025-03-10 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649079', 'tblTempUsageDetail_20' ) start [2025-03-10 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649079', 'tblTempUsageDetail_20' ) end [2025-03-10 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649079', 'tblTempVendorCDR_20' ) start [2025-03-10 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649079', 'tblTempVendorCDR_20' ) end [2025-03-10 11:02:20] Production.INFO: ProcessCDR(1,14649079,1,1,2) [2025-03-10 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649079', 'tblTempUsageDetail_20' ) start [2025-03-10 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649079', 'tblTempUsageDetail_20' ) end [2025-03-10 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:02:26] Production.INFO: ==32509== Releasing lock... [2025-03-10 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:02:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-10 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:03:05 [end_date_ymd] => 2025-03-10 11:03:05 [RateCDR] => 1 ) [2025-03-10 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:03:05' and `end` < '2025-03-10 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:03:18] Production.INFO: count ==4222 [2025-03-10 11:03:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:03:05 - End Time 2025-03-10 11:03:05 [2025-03-10 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649084', 'tblTempUsageDetail_20' ) start [2025-03-10 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649084', 'tblTempUsageDetail_20' ) end [2025-03-10 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649084', 'tblTempVendorCDR_20' ) start [2025-03-10 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649084', 'tblTempVendorCDR_20' ) end [2025-03-10 11:03:21] Production.INFO: ProcessCDR(1,14649084,1,1,2) [2025-03-10 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649084', 'tblTempUsageDetail_20' ) start [2025-03-10 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649084', 'tblTempUsageDetail_20' ) end [2025-03-10 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:03:26] Production.INFO: ==32579== Releasing lock... [2025-03-10 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:03:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-10 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:04:05 [end_date_ymd] => 2025-03-10 11:04:05 [RateCDR] => 1 ) [2025-03-10 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:04:05' and `end` < '2025-03-10 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:04:18] Production.INFO: count ==4242 [2025-03-10 11:04:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:04:05 - End Time 2025-03-10 11:04:05 [2025-03-10 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649089', 'tblTempUsageDetail_20' ) start [2025-03-10 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649089', 'tblTempUsageDetail_20' ) end [2025-03-10 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649089', 'tblTempVendorCDR_20' ) start [2025-03-10 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649089', 'tblTempVendorCDR_20' ) end [2025-03-10 11:04:20] Production.INFO: ProcessCDR(1,14649089,1,1,2) [2025-03-10 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649089', 'tblTempUsageDetail_20' ) start [2025-03-10 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649089', 'tblTempUsageDetail_20' ) end [2025-03-10 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:04:25] Production.INFO: ==32651== Releasing lock... [2025-03-10 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:04:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-10 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:05:06 [end_date_ymd] => 2025-03-10 11:05:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:05:06' and `end` < '2025-03-10 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-03-10 11:05:19] Production.INFO: count ==4241 [2025-03-10 11:05:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:05:06 - End Time 2025-03-10 11:05:06 [2025-03-10 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649094', 'tblTempUsageDetail_20' ) start [2025-03-10 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649094', 'tblTempUsageDetail_20' ) end [2025-03-10 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649094', 'tblTempVendorCDR_20' ) start [2025-03-10 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649094', 'tblTempVendorCDR_20' ) end [2025-03-10 11:05:21] Production.INFO: ProcessCDR(1,14649094,1,1,2) [2025-03-10 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649094', 'tblTempUsageDetail_20' ) start [2025-03-10 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649094', 'tblTempUsageDetail_20' ) end [2025-03-10 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:05:26] Production.INFO: ==354== Releasing lock... [2025-03-10 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:05:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-10 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:06:05 [end_date_ymd] => 2025-03-10 11:06:05 [RateCDR] => 1 ) [2025-03-10 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:06:05' and `end` < '2025-03-10 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:06:19] Production.INFO: count ==4246 [2025-03-10 11:06:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:06:05 - End Time 2025-03-10 11:06:05 [2025-03-10 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649099', 'tblTempUsageDetail_20' ) start [2025-03-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649099', 'tblTempUsageDetail_20' ) end [2025-03-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649099', 'tblTempVendorCDR_20' ) start [2025-03-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649099', 'tblTempVendorCDR_20' ) end [2025-03-10 11:06:21] Production.INFO: ProcessCDR(1,14649099,1,1,2) [2025-03-10 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649099', 'tblTempUsageDetail_20' ) start [2025-03-10 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649099', 'tblTempUsageDetail_20' ) end [2025-03-10 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:06:26] Production.INFO: ==426== Releasing lock... [2025-03-10 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:06:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-10 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:07:05 [end_date_ymd] => 2025-03-10 11:07:05 [RateCDR] => 1 ) [2025-03-10 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:07:05' and `end` < '2025-03-10 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:07:19] Production.INFO: count ==4234 [2025-03-10 11:07:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:07:05 - End Time 2025-03-10 11:07:05 [2025-03-10 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649104', 'tblTempUsageDetail_20' ) start [2025-03-10 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649104', 'tblTempUsageDetail_20' ) end [2025-03-10 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649104', 'tblTempVendorCDR_20' ) start [2025-03-10 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649104', 'tblTempVendorCDR_20' ) end [2025-03-10 11:07:21] Production.INFO: ProcessCDR(1,14649104,1,1,2) [2025-03-10 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649104', 'tblTempUsageDetail_20' ) start [2025-03-10 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649104', 'tblTempUsageDetail_20' ) end [2025-03-10 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:07:26] Production.INFO: ==499== Releasing lock... [2025-03-10 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:07:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-10 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:08:05 [end_date_ymd] => 2025-03-10 11:08:05 [RateCDR] => 1 ) [2025-03-10 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:08:05' and `end` < '2025-03-10 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:08:18] Production.INFO: count ==4234 [2025-03-10 11:08:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:08:05 - End Time 2025-03-10 11:08:05 [2025-03-10 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649109', 'tblTempUsageDetail_20' ) start [2025-03-10 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649109', 'tblTempUsageDetail_20' ) end [2025-03-10 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649109', 'tblTempVendorCDR_20' ) start [2025-03-10 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649109', 'tblTempVendorCDR_20' ) end [2025-03-10 11:08:20] Production.INFO: ProcessCDR(1,14649109,1,1,2) [2025-03-10 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649109', 'tblTempUsageDetail_20' ) start [2025-03-10 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649109', 'tblTempUsageDetail_20' ) end [2025-03-10 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:08:26] Production.INFO: ==664== Releasing lock... [2025-03-10 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:08:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-10 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:09:06 [end_date_ymd] => 2025-03-10 11:09:06 [RateCDR] => 1 ) [2025-03-10 11:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:09:06' and `end` < '2025-03-10 11:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:09:19] Production.INFO: count ==4247 [2025-03-10 11:09:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:09:06 - End Time 2025-03-10 11:09:06 [2025-03-10 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649114', 'tblTempUsageDetail_20' ) start [2025-03-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649114', 'tblTempUsageDetail_20' ) end [2025-03-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649114', 'tblTempVendorCDR_20' ) start [2025-03-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649114', 'tblTempVendorCDR_20' ) end [2025-03-10 11:09:21] Production.INFO: ProcessCDR(1,14649114,1,1,2) [2025-03-10 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649114', 'tblTempUsageDetail_20' ) start [2025-03-10 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649114', 'tblTempUsageDetail_20' ) end [2025-03-10 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:09:27] Production.INFO: ==756== Releasing lock... [2025-03-10 11:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:09:27] Production.INFO: 59.75 MB #Memory Used# [2025-03-10 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:10:06 [end_date_ymd] => 2025-03-10 11:10:06 [RateCDR] => 1 ) [2025-03-10 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:10:06' and `end` < '2025-03-10 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:10:19] Production.INFO: count ==4246 [2025-03-10 11:10:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:10:06 - End Time 2025-03-10 11:10:06 [2025-03-10 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649120', 'tblTempUsageDetail_20' ) start [2025-03-10 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649120', 'tblTempUsageDetail_20' ) end [2025-03-10 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649120', 'tblTempVendorCDR_20' ) start [2025-03-10 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649120', 'tblTempVendorCDR_20' ) end [2025-03-10 11:10:21] Production.INFO: ProcessCDR(1,14649120,1,1,2) [2025-03-10 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649120', 'tblTempUsageDetail_20' ) start [2025-03-10 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649120', 'tblTempUsageDetail_20' ) end [2025-03-10 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:10:26] Production.INFO: ==831== Releasing lock... [2025-03-10 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:10:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-10 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:11:06 [end_date_ymd] => 2025-03-10 11:11:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:11:06' and `end` < '2025-03-10 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-03-10 11:11:19] Production.INFO: count ==4338 [2025-03-10 11:11:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:11:06 - End Time 2025-03-10 11:11:06 [2025-03-10 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649125', 'tblTempUsageDetail_20' ) start [2025-03-10 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649125', 'tblTempUsageDetail_20' ) end [2025-03-10 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649125', 'tblTempVendorCDR_20' ) start [2025-03-10 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649125', 'tblTempVendorCDR_20' ) end [2025-03-10 11:11:21] Production.INFO: ProcessCDR(1,14649125,1,1,2) [2025-03-10 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649125', 'tblTempUsageDetail_20' ) start [2025-03-10 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649125', 'tblTempUsageDetail_20' ) end [2025-03-10 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:11:26] Production.INFO: ==907== Releasing lock... [2025-03-10 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:11:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-10 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:12:05 [end_date_ymd] => 2025-03-10 11:12:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:12:05' and `end` < '2025-03-10 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-03-10 11:12:18] Production.INFO: count ==4383 [2025-03-10 11:12:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:12:05 - End Time 2025-03-10 11:12:05 [2025-03-10 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649130', 'tblTempUsageDetail_20' ) start [2025-03-10 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649130', 'tblTempUsageDetail_20' ) end [2025-03-10 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649130', 'tblTempVendorCDR_20' ) start [2025-03-10 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649130', 'tblTempVendorCDR_20' ) end [2025-03-10 11:12:20] Production.INFO: ProcessCDR(1,14649130,1,1,2) [2025-03-10 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649130', 'tblTempUsageDetail_20' ) start [2025-03-10 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649130', 'tblTempUsageDetail_20' ) end [2025-03-10 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:12:26] Production.INFO: ==1057== Releasing lock... [2025-03-10 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:12:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-10 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:13:05 [end_date_ymd] => 2025-03-10 11:13:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:13:05' and `end` < '2025-03-10 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-03-10 11:13:18] Production.INFO: count ==4394 [2025-03-10 11:13:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:13:05 - End Time 2025-03-10 11:13:05 [2025-03-10 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649135', 'tblTempUsageDetail_20' ) start [2025-03-10 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649135', 'tblTempUsageDetail_20' ) end [2025-03-10 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649135', 'tblTempVendorCDR_20' ) start [2025-03-10 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649135', 'tblTempVendorCDR_20' ) end [2025-03-10 11:13:21] Production.INFO: ProcessCDR(1,14649135,1,1,2) [2025-03-10 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649135', 'tblTempUsageDetail_20' ) start [2025-03-10 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649135', 'tblTempUsageDetail_20' ) end [2025-03-10 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:13:26] Production.INFO: ==1178== Releasing lock... [2025-03-10 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:13:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-10 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:14:05 [end_date_ymd] => 2025-03-10 11:14:05 [RateCDR] => 1 ) [2025-03-10 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:14:05' and `end` < '2025-03-10 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:14:18] Production.INFO: count ==4398 [2025-03-10 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:14:05 - End Time 2025-03-10 11:14:05 [2025-03-10 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649140', 'tblTempUsageDetail_20' ) start [2025-03-10 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649140', 'tblTempUsageDetail_20' ) end [2025-03-10 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649140', 'tblTempVendorCDR_20' ) start [2025-03-10 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649140', 'tblTempVendorCDR_20' ) end [2025-03-10 11:14:20] Production.INFO: ProcessCDR(1,14649140,1,1,2) [2025-03-10 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649140', 'tblTempUsageDetail_20' ) start [2025-03-10 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649140', 'tblTempUsageDetail_20' ) end [2025-03-10 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:14:25] Production.INFO: ==1260== Releasing lock... [2025-03-10 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:14:25] Production.INFO: 61 MB #Memory Used# [2025-03-10 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:15:06 [end_date_ymd] => 2025-03-10 11:15:06 [RateCDR] => 1 ) [2025-03-10 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:15:06' and `end` < '2025-03-10 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:15:19] Production.INFO: count ==4419 [2025-03-10 11:15:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:15:06 - End Time 2025-03-10 11:15:06 [2025-03-10 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649145', 'tblTempUsageDetail_20' ) start [2025-03-10 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649145', 'tblTempUsageDetail_20' ) end [2025-03-10 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649145', 'tblTempVendorCDR_20' ) start [2025-03-10 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649145', 'tblTempVendorCDR_20' ) end [2025-03-10 11:15:21] Production.INFO: ProcessCDR(1,14649145,1,1,2) [2025-03-10 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649145', 'tblTempUsageDetail_20' ) start [2025-03-10 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649145', 'tblTempUsageDetail_20' ) end [2025-03-10 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:15:26] Production.INFO: ==1418== Releasing lock... [2025-03-10 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:15:26] Production.INFO: 61 MB #Memory Used# [2025-03-10 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:16:05 [end_date_ymd] => 2025-03-10 11:16:05 [RateCDR] => 1 ) [2025-03-10 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:16:05' and `end` < '2025-03-10 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:16:19] Production.INFO: count ==4436 [2025-03-10 11:16:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:16:05 - End Time 2025-03-10 11:16:05 [2025-03-10 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649150', 'tblTempUsageDetail_20' ) start [2025-03-10 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649150', 'tblTempUsageDetail_20' ) end [2025-03-10 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649150', 'tblTempVendorCDR_20' ) start [2025-03-10 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649150', 'tblTempVendorCDR_20' ) end [2025-03-10 11:16:21] Production.INFO: ProcessCDR(1,14649150,1,1,2) [2025-03-10 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649150', 'tblTempUsageDetail_20' ) start [2025-03-10 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649150', 'tblTempUsageDetail_20' ) end [2025-03-10 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:16:26] Production.INFO: ==1488== Releasing lock... [2025-03-10 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:16:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-10 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:17:06 [end_date_ymd] => 2025-03-10 11:17:06 [RateCDR] => 1 ) [2025-03-10 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:17:06' and `end` < '2025-03-10 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:17:18] Production.INFO: count ==4452 [2025-03-10 11:17:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:17:06 - End Time 2025-03-10 11:17:06 [2025-03-10 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649155', 'tblTempUsageDetail_20' ) start [2025-03-10 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649155', 'tblTempUsageDetail_20' ) end [2025-03-10 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649155', 'tblTempVendorCDR_20' ) start [2025-03-10 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649155', 'tblTempVendorCDR_20' ) end [2025-03-10 11:17:21] Production.INFO: ProcessCDR(1,14649155,1,1,2) [2025-03-10 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649155', 'tblTempUsageDetail_20' ) start [2025-03-10 11:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649155', 'tblTempUsageDetail_20' ) end [2025-03-10 11:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:17:27] Production.INFO: ==1597== Releasing lock... [2025-03-10 11:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:17:27] Production.INFO: 61.25 MB #Memory Used# [2025-03-10 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:18:05 [end_date_ymd] => 2025-03-10 11:18:05 [RateCDR] => 1 ) [2025-03-10 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:18:05' and `end` < '2025-03-10 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:18:18] Production.INFO: count ==4464 [2025-03-10 11:18:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:18:05 - End Time 2025-03-10 11:18:05 [2025-03-10 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649160', 'tblTempUsageDetail_20' ) start [2025-03-10 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649160', 'tblTempUsageDetail_20' ) end [2025-03-10 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649160', 'tblTempVendorCDR_20' ) start [2025-03-10 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649160', 'tblTempVendorCDR_20' ) end [2025-03-10 11:18:21] Production.INFO: ProcessCDR(1,14649160,1,1,2) [2025-03-10 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649160', 'tblTempUsageDetail_20' ) start [2025-03-10 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649160', 'tblTempUsageDetail_20' ) end [2025-03-10 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:18:26] Production.INFO: ==1666== Releasing lock... [2025-03-10 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:18:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-10 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:19:06 [end_date_ymd] => 2025-03-10 11:19:06 [RateCDR] => 1 ) [2025-03-10 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:19:06' and `end` < '2025-03-10 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:19:19] Production.INFO: count ==4479 [2025-03-10 11:19:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:19:06 - End Time 2025-03-10 11:19:06 [2025-03-10 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649165', 'tblTempUsageDetail_20' ) start [2025-03-10 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649165', 'tblTempUsageDetail_20' ) end [2025-03-10 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649165', 'tblTempVendorCDR_20' ) start [2025-03-10 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649165', 'tblTempVendorCDR_20' ) end [2025-03-10 11:19:21] Production.INFO: ProcessCDR(1,14649165,1,1,2) [2025-03-10 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649165', 'tblTempUsageDetail_20' ) start [2025-03-10 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649165', 'tblTempUsageDetail_20' ) end [2025-03-10 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:19:27] Production.INFO: ==1738== Releasing lock... [2025-03-10 11:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:19:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-10 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:20:06 [end_date_ymd] => 2025-03-10 11:20:06 [RateCDR] => 1 ) [2025-03-10 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:20:06' and `end` < '2025-03-10 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:20:19] Production.INFO: count ==4494 [2025-03-10 11:20:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:20:06 - End Time 2025-03-10 11:20:06 [2025-03-10 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649171', 'tblTempUsageDetail_20' ) start [2025-03-10 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649171', 'tblTempUsageDetail_20' ) end [2025-03-10 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649171', 'tblTempVendorCDR_20' ) start [2025-03-10 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649171', 'tblTempVendorCDR_20' ) end [2025-03-10 11:20:21] Production.INFO: ProcessCDR(1,14649171,1,1,2) [2025-03-10 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649171', 'tblTempUsageDetail_20' ) start [2025-03-10 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649171', 'tblTempUsageDetail_20' ) end [2025-03-10 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:20:27] Production.INFO: ==1809== Releasing lock... [2025-03-10 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:20:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-10 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:21:06 [end_date_ymd] => 2025-03-10 11:21:06 [RateCDR] => 1 ) [2025-03-10 11:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:21:06' and `end` < '2025-03-10 11:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:21:19] Production.INFO: count ==4573 [2025-03-10 11:21:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:21:06 - End Time 2025-03-10 11:21:06 [2025-03-10 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649176', 'tblTempUsageDetail_20' ) start [2025-03-10 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649176', 'tblTempUsageDetail_20' ) end [2025-03-10 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649176', 'tblTempVendorCDR_20' ) start [2025-03-10 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649176', 'tblTempVendorCDR_20' ) end [2025-03-10 11:21:21] Production.INFO: ProcessCDR(1,14649176,1,1,2) [2025-03-10 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649176', 'tblTempUsageDetail_20' ) start [2025-03-10 11:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649176', 'tblTempUsageDetail_20' ) end [2025-03-10 11:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:21:27] Production.INFO: ==1889== Releasing lock... [2025-03-10 11:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:21:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-10 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:22:05 [end_date_ymd] => 2025-03-10 11:22:05 [RateCDR] => 1 ) [2025-03-10 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:22:05' and `end` < '2025-03-10 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:22:19] Production.INFO: count ==4581 [2025-03-10 11:22:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:22:05 - End Time 2025-03-10 11:22:05 [2025-03-10 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649181', 'tblTempUsageDetail_20' ) start [2025-03-10 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649181', 'tblTempUsageDetail_20' ) end [2025-03-10 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649181', 'tblTempVendorCDR_20' ) start [2025-03-10 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649181', 'tblTempVendorCDR_20' ) end [2025-03-10 11:22:21] Production.INFO: ProcessCDR(1,14649181,1,1,2) [2025-03-10 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649181', 'tblTempUsageDetail_20' ) start [2025-03-10 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649181', 'tblTempUsageDetail_20' ) end [2025-03-10 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:22:27] Production.INFO: ==1962== Releasing lock... [2025-03-10 11:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:22:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-10 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:23:06 [end_date_ymd] => 2025-03-10 11:23:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:23:06' and `end` < '2025-03-10 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-03-10 11:23:19] Production.INFO: count ==4626 [2025-03-10 11:23:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:23:06 - End Time 2025-03-10 11:23:06 [2025-03-10 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649186', 'tblTempUsageDetail_20' ) start [2025-03-10 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649186', 'tblTempUsageDetail_20' ) end [2025-03-10 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649186', 'tblTempVendorCDR_20' ) start [2025-03-10 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649186', 'tblTempVendorCDR_20' ) end [2025-03-10 11:23:21] Production.INFO: ProcessCDR(1,14649186,1,1,2) [2025-03-10 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649186', 'tblTempUsageDetail_20' ) start [2025-03-10 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649186', 'tblTempUsageDetail_20' ) end [2025-03-10 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:23:26] Production.INFO: ==2035== Releasing lock... [2025-03-10 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:23:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-10 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:24:05 [end_date_ymd] => 2025-03-10 11:24:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:24:05' and `end` < '2025-03-10 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-03-10 11:24:18] Production.INFO: count ==4639 [2025-03-10 11:24:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:24:05 - End Time 2025-03-10 11:24:05 [2025-03-10 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649191', 'tblTempUsageDetail_20' ) start [2025-03-10 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649191', 'tblTempUsageDetail_20' ) end [2025-03-10 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649191', 'tblTempVendorCDR_20' ) start [2025-03-10 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649191', 'tblTempVendorCDR_20' ) end [2025-03-10 11:24:21] Production.INFO: ProcessCDR(1,14649191,1,1,2) [2025-03-10 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649191', 'tblTempUsageDetail_20' ) start [2025-03-10 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649191', 'tblTempUsageDetail_20' ) end [2025-03-10 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:24:26] Production.INFO: ==2107== Releasing lock... [2025-03-10 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:24:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-10 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:25:06 [end_date_ymd] => 2025-03-10 11:25:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:25:06' and `end` < '2025-03-10 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-03-10 11:25:19] Production.INFO: count ==4657 [2025-03-10 11:25:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:25:06 - End Time 2025-03-10 11:25:06 [2025-03-10 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649196', 'tblTempUsageDetail_20' ) start [2025-03-10 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649196', 'tblTempUsageDetail_20' ) end [2025-03-10 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649196', 'tblTempVendorCDR_20' ) start [2025-03-10 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649196', 'tblTempVendorCDR_20' ) end [2025-03-10 11:25:22] Production.INFO: ProcessCDR(1,14649196,1,1,2) [2025-03-10 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649196', 'tblTempUsageDetail_20' ) start [2025-03-10 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649196', 'tblTempUsageDetail_20' ) end [2025-03-10 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:25:27] Production.INFO: ==2179== Releasing lock... [2025-03-10 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:25:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-10 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:26:05 [end_date_ymd] => 2025-03-10 11:26:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:26:05' and `end` < '2025-03-10 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-03-10 11:26:18] Production.INFO: count ==4672 [2025-03-10 11:26:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:26:05 - End Time 2025-03-10 11:26:05 [2025-03-10 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649201', 'tblTempUsageDetail_20' ) start [2025-03-10 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649201', 'tblTempUsageDetail_20' ) end [2025-03-10 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649201', 'tblTempVendorCDR_20' ) start [2025-03-10 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649201', 'tblTempVendorCDR_20' ) end [2025-03-10 11:26:20] Production.INFO: ProcessCDR(1,14649201,1,1,2) [2025-03-10 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649201', 'tblTempUsageDetail_20' ) start [2025-03-10 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649201', 'tblTempUsageDetail_20' ) end [2025-03-10 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:26:26] Production.INFO: ==2251== Releasing lock... [2025-03-10 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:26:26] Production.INFO: 63 MB #Memory Used# [2025-03-10 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:27:06 [end_date_ymd] => 2025-03-10 11:27:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:27:06' and `end` < '2025-03-10 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-03-10 11:27:19] Production.INFO: count ==4707 [2025-03-10 11:27:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:27:06 - End Time 2025-03-10 11:27:06 [2025-03-10 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649206', 'tblTempUsageDetail_20' ) start [2025-03-10 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649206', 'tblTempUsageDetail_20' ) end [2025-03-10 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649206', 'tblTempVendorCDR_20' ) start [2025-03-10 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649206', 'tblTempVendorCDR_20' ) end [2025-03-10 11:27:21] Production.INFO: ProcessCDR(1,14649206,1,1,2) [2025-03-10 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649206', 'tblTempUsageDetail_20' ) start [2025-03-10 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649206', 'tblTempUsageDetail_20' ) end [2025-03-10 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:27:27] Production.INFO: ==2324== Releasing lock... [2025-03-10 11:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:27:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-10 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:28:06 [end_date_ymd] => 2025-03-10 11:28:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:28:06' and `end` < '2025-03-10 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-03-10 11:28:19] Production.INFO: count ==4735 [2025-03-10 11:28:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:28:06 - End Time 2025-03-10 11:28:06 [2025-03-10 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649211', 'tblTempUsageDetail_20' ) start [2025-03-10 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649211', 'tblTempUsageDetail_20' ) end [2025-03-10 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649211', 'tblTempVendorCDR_20' ) start [2025-03-10 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649211', 'tblTempVendorCDR_20' ) end [2025-03-10 11:28:21] Production.INFO: ProcessCDR(1,14649211,1,1,2) [2025-03-10 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649211', 'tblTempUsageDetail_20' ) start [2025-03-10 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649211', 'tblTempUsageDetail_20' ) end [2025-03-10 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:28:27] Production.INFO: ==2434== Releasing lock... [2025-03-10 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:28:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-10 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:29:05 [end_date_ymd] => 2025-03-10 11:29:05 [RateCDR] => 1 ) [2025-03-10 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:29:05' and `end` < '2025-03-10 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:29:18] Production.INFO: count ==4755 [2025-03-10 11:29:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:29:05 - End Time 2025-03-10 11:29:05 [2025-03-10 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649216', 'tblTempUsageDetail_20' ) start [2025-03-10 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649216', 'tblTempUsageDetail_20' ) end [2025-03-10 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649216', 'tblTempVendorCDR_20' ) start [2025-03-10 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649216', 'tblTempVendorCDR_20' ) end [2025-03-10 11:29:21] Production.INFO: ProcessCDR(1,14649216,1,1,2) [2025-03-10 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649216', 'tblTempUsageDetail_20' ) start [2025-03-10 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649216', 'tblTempUsageDetail_20' ) end [2025-03-10 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:29:26] Production.INFO: ==2509== Releasing lock... [2025-03-10 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:29:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-10 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:30:06 [end_date_ymd] => 2025-03-10 11:30:06 [RateCDR] => 1 ) [2025-03-10 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:30:06' and `end` < '2025-03-10 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:30:19] Production.INFO: count ==4756 [2025-03-10 11:30:22] Production.ERROR: pbx CDR StartTime 2025-03-10 08:30:06 - End Time 2025-03-10 11:30:06 [2025-03-10 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649222', 'tblTempUsageDetail_20' ) start [2025-03-10 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649222', 'tblTempUsageDetail_20' ) end [2025-03-10 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649222', 'tblTempVendorCDR_20' ) start [2025-03-10 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649222', 'tblTempVendorCDR_20' ) end [2025-03-10 11:30:22] Production.INFO: ProcessCDR(1,14649222,1,1,2) [2025-03-10 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649222', 'tblTempUsageDetail_20' ) start [2025-03-10 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649222', 'tblTempUsageDetail_20' ) end [2025-03-10 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:30:27] Production.INFO: ==2584== Releasing lock... [2025-03-10 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:30:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-10 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:31:06 [end_date_ymd] => 2025-03-10 11:31:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:31:06' and `end` < '2025-03-10 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-03-10 11:31:18] Production.INFO: count ==4825 [2025-03-10 11:31:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:31:06 - End Time 2025-03-10 11:31:06 [2025-03-10 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649227', 'tblTempUsageDetail_20' ) start [2025-03-10 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649227', 'tblTempUsageDetail_20' ) end [2025-03-10 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649227', 'tblTempVendorCDR_20' ) start [2025-03-10 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649227', 'tblTempVendorCDR_20' ) end [2025-03-10 11:31:21] Production.INFO: ProcessCDR(1,14649227,1,1,2) [2025-03-10 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649227', 'tblTempUsageDetail_20' ) start [2025-03-10 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649227', 'tblTempUsageDetail_20' ) end [2025-03-10 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:31:26] Production.INFO: ==2657== Releasing lock... [2025-03-10 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:31:26] Production.INFO: 64 MB #Memory Used# [2025-03-10 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:32:05 [end_date_ymd] => 2025-03-10 11:32:05 [RateCDR] => 1 ) [2025-03-10 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:32:05' and `end` < '2025-03-10 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-03-10 11:32:19] Production.INFO: count ==4839 [2025-03-10 11:32:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:32:05 - End Time 2025-03-10 11:32:05 [2025-03-10 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649232', 'tblTempUsageDetail_20' ) start [2025-03-10 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649232', 'tblTempUsageDetail_20' ) end [2025-03-10 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649232', 'tblTempVendorCDR_20' ) start [2025-03-10 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649232', 'tblTempVendorCDR_20' ) end [2025-03-10 11:32:21] Production.INFO: ProcessCDR(1,14649232,1,1,2) [2025-03-10 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649232', 'tblTempUsageDetail_20' ) start [2025-03-10 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649232', 'tblTempUsageDetail_20' ) end [2025-03-10 11:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:32:27] Production.INFO: ==2726== Releasing lock... [2025-03-10 11:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:32:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-10 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:33:06 [end_date_ymd] => 2025-03-10 11:33:06 [RateCDR] => 1 ) [2025-03-10 11:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:33:06' and `end` < '2025-03-10 11:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:33:20] Production.INFO: count ==4851 [2025-03-10 11:33:22] Production.ERROR: pbx CDR StartTime 2025-03-10 08:33:06 - End Time 2025-03-10 11:33:06 [2025-03-10 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649237', 'tblTempUsageDetail_20' ) start [2025-03-10 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649237', 'tblTempUsageDetail_20' ) end [2025-03-10 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649237', 'tblTempVendorCDR_20' ) start [2025-03-10 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649237', 'tblTempVendorCDR_20' ) end [2025-03-10 11:33:22] Production.INFO: ProcessCDR(1,14649237,1,1,2) [2025-03-10 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649237', 'tblTempUsageDetail_20' ) start [2025-03-10 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649237', 'tblTempUsageDetail_20' ) end [2025-03-10 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:33:27] Production.INFO: ==2797== Releasing lock... [2025-03-10 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:33:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-10 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:34:05 [end_date_ymd] => 2025-03-10 11:34:05 [RateCDR] => 1 ) [2025-03-10 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:34:05' and `end` < '2025-03-10 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:34:19] Production.INFO: count ==4863 [2025-03-10 11:34:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:34:05 - End Time 2025-03-10 11:34:05 [2025-03-10 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649242', 'tblTempUsageDetail_20' ) start [2025-03-10 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649242', 'tblTempUsageDetail_20' ) end [2025-03-10 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649242', 'tblTempVendorCDR_20' ) start [2025-03-10 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649242', 'tblTempVendorCDR_20' ) end [2025-03-10 11:34:21] Production.INFO: ProcessCDR(1,14649242,1,1,2) [2025-03-10 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649242', 'tblTempUsageDetail_20' ) start [2025-03-10 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649242', 'tblTempUsageDetail_20' ) end [2025-03-10 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:34:26] Production.INFO: ==2872== Releasing lock... [2025-03-10 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:34:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-10 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:35:05 [end_date_ymd] => 2025-03-10 11:35:05 [RateCDR] => 1 ) [2025-03-10 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:35:05' and `end` < '2025-03-10 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:35:21] Production.INFO: count ==4874 [2025-03-10 11:35:23] Production.ERROR: pbx CDR StartTime 2025-03-10 08:35:05 - End Time 2025-03-10 11:35:05 [2025-03-10 11:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649247', 'tblTempUsageDetail_20' ) start [2025-03-10 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649247', 'tblTempUsageDetail_20' ) end [2025-03-10 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649247', 'tblTempVendorCDR_20' ) start [2025-03-10 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649247', 'tblTempVendorCDR_20' ) end [2025-03-10 11:35:23] Production.INFO: ProcessCDR(1,14649247,1,1,2) [2025-03-10 11:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649247', 'tblTempUsageDetail_20' ) start [2025-03-10 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649247', 'tblTempUsageDetail_20' ) end [2025-03-10 11:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:35:28] Production.INFO: ==2942== Releasing lock... [2025-03-10 11:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:35:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-10 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:36:05 [end_date_ymd] => 2025-03-10 11:36:05 [RateCDR] => 1 ) [2025-03-10 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:36:05' and `end` < '2025-03-10 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:36:18] Production.INFO: count ==4897 [2025-03-10 11:36:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:36:05 - End Time 2025-03-10 11:36:05 [2025-03-10 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649252', 'tblTempUsageDetail_20' ) start [2025-03-10 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649252', 'tblTempUsageDetail_20' ) end [2025-03-10 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649252', 'tblTempVendorCDR_20' ) start [2025-03-10 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649252', 'tblTempVendorCDR_20' ) end [2025-03-10 11:36:20] Production.INFO: ProcessCDR(1,14649252,1,1,2) [2025-03-10 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649252', 'tblTempUsageDetail_20' ) start [2025-03-10 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649252', 'tblTempUsageDetail_20' ) end [2025-03-10 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:36:26] Production.INFO: ==3012== Releasing lock... [2025-03-10 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:36:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-10 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:37:05 [end_date_ymd] => 2025-03-10 11:37:05 [RateCDR] => 1 ) [2025-03-10 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:37:05' and `end` < '2025-03-10 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:37:19] Production.INFO: count ==4907 [2025-03-10 11:37:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:37:05 - End Time 2025-03-10 11:37:05 [2025-03-10 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649257', 'tblTempUsageDetail_20' ) start [2025-03-10 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649257', 'tblTempUsageDetail_20' ) end [2025-03-10 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649257', 'tblTempVendorCDR_20' ) start [2025-03-10 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649257', 'tblTempVendorCDR_20' ) end [2025-03-10 11:37:21] Production.INFO: ProcessCDR(1,14649257,1,1,2) [2025-03-10 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649257', 'tblTempUsageDetail_20' ) start [2025-03-10 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649257', 'tblTempUsageDetail_20' ) end [2025-03-10 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:37:27] Production.INFO: ==3083== Releasing lock... [2025-03-10 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:37:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-10 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:38:05 [end_date_ymd] => 2025-03-10 11:38:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:38:05' and `end` < '2025-03-10 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-03-10 11:38:18] Production.INFO: count ==4914 [2025-03-10 11:38:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:38:05 - End Time 2025-03-10 11:38:05 [2025-03-10 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649262', 'tblTempUsageDetail_20' ) start [2025-03-10 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649262', 'tblTempUsageDetail_20' ) end [2025-03-10 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649262', 'tblTempVendorCDR_20' ) start [2025-03-10 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649262', 'tblTempVendorCDR_20' ) end [2025-03-10 11:38:21] Production.INFO: ProcessCDR(1,14649262,1,1,2) [2025-03-10 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649262', 'tblTempUsageDetail_20' ) start [2025-03-10 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649262', 'tblTempUsageDetail_20' ) end [2025-03-10 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:38:26] Production.INFO: ==3157== Releasing lock... [2025-03-10 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:38:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-10 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:39:04 [end_date_ymd] => 2025-03-10 11:39:04 [RateCDR] => 1 ) [2025-03-10 11:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:39:04' and `end` < '2025-03-10 11:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:39:17] Production.INFO: count ==4918 [2025-03-10 11:39:19] Production.ERROR: pbx CDR StartTime 2025-03-10 08:39:04 - End Time 2025-03-10 11:39:04 [2025-03-10 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649267', 'tblTempUsageDetail_20' ) start [2025-03-10 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649267', 'tblTempUsageDetail_20' ) end [2025-03-10 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649267', 'tblTempVendorCDR_20' ) start [2025-03-10 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649267', 'tblTempVendorCDR_20' ) end [2025-03-10 11:39:20] Production.INFO: ProcessCDR(1,14649267,1,1,2) [2025-03-10 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649267', 'tblTempUsageDetail_20' ) start [2025-03-10 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649267', 'tblTempUsageDetail_20' ) end [2025-03-10 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:39:25] Production.INFO: ==3229== Releasing lock... [2025-03-10 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:39:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-10 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:40:05 [end_date_ymd] => 2025-03-10 11:40:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:40:05' and `end` < '2025-03-10 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-03-10 11:40:19] Production.INFO: count ==4943 [2025-03-10 11:40:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:40:05 - End Time 2025-03-10 11:40:05 [2025-03-10 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649268', 'tblTempUsageDetail_20' ) start [2025-03-10 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649268', 'tblTempUsageDetail_20' ) end [2025-03-10 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649268', 'tblTempVendorCDR_20' ) start [2025-03-10 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649268', 'tblTempVendorCDR_20' ) end [2025-03-10 11:40:21] Production.INFO: ProcessCDR(1,14649268,1,1,2) [2025-03-10 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649268', 'tblTempUsageDetail_20' ) start [2025-03-10 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649268', 'tblTempUsageDetail_20' ) end [2025-03-10 11:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:40:26] Production.INFO: ==3305== Releasing lock... [2025-03-10 11:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:40:26] Production.INFO: 65 MB #Memory Used# [2025-03-10 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:41:05 [end_date_ymd] => 2025-03-10 11:41:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:41:05' and `end` < '2025-03-10 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-03-10 11:41:18] Production.INFO: count ==4955 [2025-03-10 11:41:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:41:05 - End Time 2025-03-10 11:41:05 [2025-03-10 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649278', 'tblTempUsageDetail_20' ) start [2025-03-10 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649278', 'tblTempUsageDetail_20' ) end [2025-03-10 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649278', 'tblTempVendorCDR_20' ) start [2025-03-10 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649278', 'tblTempVendorCDR_20' ) end [2025-03-10 11:41:20] Production.INFO: ProcessCDR(1,14649278,1,1,2) [2025-03-10 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649278', 'tblTempUsageDetail_20' ) start [2025-03-10 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649278', 'tblTempUsageDetail_20' ) end [2025-03-10 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:41:25] Production.INFO: ==3380== Releasing lock... [2025-03-10 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:41:25] Production.INFO: 65 MB #Memory Used# [2025-03-10 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:42:05 [end_date_ymd] => 2025-03-10 11:42:05 [RateCDR] => 1 ) [2025-03-10 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:42:05' and `end` < '2025-03-10 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:42:18] Production.INFO: count ==4968 [2025-03-10 11:42:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:42:05 - End Time 2025-03-10 11:42:05 [2025-03-10 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649283', 'tblTempUsageDetail_20' ) start [2025-03-10 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649283', 'tblTempUsageDetail_20' ) end [2025-03-10 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649283', 'tblTempVendorCDR_20' ) start [2025-03-10 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649283', 'tblTempVendorCDR_20' ) end [2025-03-10 11:42:20] Production.INFO: ProcessCDR(1,14649283,1,1,2) [2025-03-10 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649283', 'tblTempUsageDetail_20' ) start [2025-03-10 11:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649283', 'tblTempUsageDetail_20' ) end [2025-03-10 11:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:42:25] Production.INFO: ==3457== Releasing lock... [2025-03-10 11:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:42:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:43:05 [end_date_ymd] => 2025-03-10 11:43:05 [RateCDR] => 1 ) [2025-03-10 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:43:05' and `end` < '2025-03-10 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:43:18] Production.INFO: count ==4971 [2025-03-10 11:43:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:43:05 - End Time 2025-03-10 11:43:05 [2025-03-10 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649288', 'tblTempUsageDetail_20' ) start [2025-03-10 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649288', 'tblTempUsageDetail_20' ) end [2025-03-10 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649288', 'tblTempVendorCDR_20' ) start [2025-03-10 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649288', 'tblTempVendorCDR_20' ) end [2025-03-10 11:43:20] Production.INFO: ProcessCDR(1,14649288,1,1,2) [2025-03-10 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649288', 'tblTempUsageDetail_20' ) start [2025-03-10 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649288', 'tblTempUsageDetail_20' ) end [2025-03-10 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:43:25] Production.INFO: ==3530== Releasing lock... [2025-03-10 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:43:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:44:05 [end_date_ymd] => 2025-03-10 11:44:05 [RateCDR] => 1 ) [2025-03-10 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:44:05' and `end` < '2025-03-10 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:44:18] Production.INFO: count ==4987 [2025-03-10 11:44:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:44:05 - End Time 2025-03-10 11:44:05 [2025-03-10 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649293', 'tblTempUsageDetail_20' ) start [2025-03-10 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649293', 'tblTempUsageDetail_20' ) end [2025-03-10 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649293', 'tblTempVendorCDR_20' ) start [2025-03-10 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649293', 'tblTempVendorCDR_20' ) end [2025-03-10 11:44:21] Production.INFO: ProcessCDR(1,14649293,1,1,2) [2025-03-10 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649293', 'tblTempUsageDetail_20' ) start [2025-03-10 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649293', 'tblTempUsageDetail_20' ) end [2025-03-10 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:44:26] Production.INFO: ==3640== Releasing lock... [2025-03-10 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:44:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:45:05 [end_date_ymd] => 2025-03-10 11:45:05 [RateCDR] => 1 ) [2025-03-10 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:45:05' and `end` < '2025-03-10 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:45:18] Production.INFO: count ==4993 [2025-03-10 11:45:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:45:05 - End Time 2025-03-10 11:45:05 [2025-03-10 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649298', 'tblTempUsageDetail_20' ) start [2025-03-10 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649298', 'tblTempUsageDetail_20' ) end [2025-03-10 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649298', 'tblTempVendorCDR_20' ) start [2025-03-10 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649298', 'tblTempVendorCDR_20' ) end [2025-03-10 11:45:20] Production.INFO: ProcessCDR(1,14649298,1,1,2) [2025-03-10 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649298', 'tblTempUsageDetail_20' ) start [2025-03-10 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649298', 'tblTempUsageDetail_20' ) end [2025-03-10 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:45:25] Production.INFO: ==3716== Releasing lock... [2025-03-10 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:45:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:46:06 [end_date_ymd] => 2025-03-10 11:46:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:46:06' and `end` < '2025-03-10 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-03-10 11:46:19] Production.INFO: count ==4983 [2025-03-10 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:46:06 - End Time 2025-03-10 11:46:06 [2025-03-10 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649303', 'tblTempUsageDetail_20' ) start [2025-03-10 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649303', 'tblTempUsageDetail_20' ) end [2025-03-10 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649303', 'tblTempVendorCDR_20' ) start [2025-03-10 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649303', 'tblTempVendorCDR_20' ) end [2025-03-10 11:46:21] Production.INFO: ProcessCDR(1,14649303,1,1,2) [2025-03-10 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649303', 'tblTempUsageDetail_20' ) start [2025-03-10 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649303', 'tblTempUsageDetail_20' ) end [2025-03-10 11:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:46:25] Production.INFO: ==3789== Releasing lock... [2025-03-10 11:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:46:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:47:05 [end_date_ymd] => 2025-03-10 11:47:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:47:05' and `end` < '2025-03-10 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-03-10 11:47:18] Production.INFO: count ==4997 [2025-03-10 11:47:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:47:05 - End Time 2025-03-10 11:47:05 [2025-03-10 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649308', 'tblTempUsageDetail_20' ) start [2025-03-10 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649308', 'tblTempUsageDetail_20' ) end [2025-03-10 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649308', 'tblTempVendorCDR_20' ) start [2025-03-10 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649308', 'tblTempVendorCDR_20' ) end [2025-03-10 11:47:20] Production.INFO: ProcessCDR(1,14649308,1,1,2) [2025-03-10 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649308', 'tblTempUsageDetail_20' ) start [2025-03-10 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649308', 'tblTempUsageDetail_20' ) end [2025-03-10 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:47:26] Production.INFO: ==3868== Releasing lock... [2025-03-10 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:47:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 11:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:48:04 [end_date_ymd] => 2025-03-10 11:48:04 [RateCDR] => 1 ) [2025-03-10 11:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:48:04' and `end` < '2025-03-10 11:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:48:18] Production.INFO: count ==5039 [2025-03-10 11:48:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:48:04 - End Time 2025-03-10 11:48:04 [2025-03-10 11:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649313', 'tblTempUsageDetail_20' ) start [2025-03-10 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649313', 'tblTempUsageDetail_20' ) end [2025-03-10 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649313', 'tblTempVendorCDR_20' ) start [2025-03-10 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649313', 'tblTempVendorCDR_20' ) end [2025-03-10 11:48:20] Production.INFO: ProcessCDR(1,14649313,1,1,2) [2025-03-10 11:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649313', 'tblTempUsageDetail_20' ) start [2025-03-10 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649313', 'tblTempUsageDetail_20' ) end [2025-03-10 11:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:48:25] Production.INFO: ==3947== Releasing lock... [2025-03-10 11:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:48:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:49:05 [end_date_ymd] => 2025-03-10 11:49:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 08:49:05' and `end` < '2025-03-10 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-03-10 11:49:18] Production.INFO: count ==5056 [2025-03-10 11:49:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:49:05 - End Time 2025-03-10 11:49:05 [2025-03-10 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649318', 'tblTempUsageDetail_20' ) start [2025-03-10 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649318', 'tblTempUsageDetail_20' ) end [2025-03-10 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649318', 'tblTempVendorCDR_20' ) start [2025-03-10 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649318', 'tblTempVendorCDR_20' ) end [2025-03-10 11:49:21] Production.INFO: ProcessCDR(1,14649318,1,1,2) [2025-03-10 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649318', 'tblTempUsageDetail_20' ) start [2025-03-10 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649318', 'tblTempUsageDetail_20' ) end [2025-03-10 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:49:26] Production.INFO: ==4035== Releasing lock... [2025-03-10 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:49:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:50:06 [end_date_ymd] => 2025-03-10 11:50:06 [RateCDR] => 1 ) [2025-03-10 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:50:06' and `end` < '2025-03-10 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:50:20] Production.INFO: count ==5053 [2025-03-10 11:50:22] Production.ERROR: pbx CDR StartTime 2025-03-10 08:50:06 - End Time 2025-03-10 11:50:06 [2025-03-10 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649324', 'tblTempUsageDetail_20' ) start [2025-03-10 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649324', 'tblTempUsageDetail_20' ) end [2025-03-10 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649324', 'tblTempVendorCDR_20' ) start [2025-03-10 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649324', 'tblTempVendorCDR_20' ) end [2025-03-10 11:50:22] Production.INFO: ProcessCDR(1,14649324,1,1,2) [2025-03-10 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649324', 'tblTempUsageDetail_20' ) start [2025-03-10 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649324', 'tblTempUsageDetail_20' ) end [2025-03-10 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:50:27] Production.INFO: ==4119== Releasing lock... [2025-03-10 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:50:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:51:06 [end_date_ymd] => 2025-03-10 11:51:06 [RateCDR] => 1 ) [2025-03-10 11:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:51:06' and `end` < '2025-03-10 11:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:51:19] Production.INFO: count ==5099 [2025-03-10 11:51:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:51:06 - End Time 2025-03-10 11:51:06 [2025-03-10 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649329', 'tblTempUsageDetail_20' ) start [2025-03-10 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649329', 'tblTempUsageDetail_20' ) end [2025-03-10 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649329', 'tblTempVendorCDR_20' ) start [2025-03-10 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649329', 'tblTempVendorCDR_20' ) end [2025-03-10 11:51:21] Production.INFO: ProcessCDR(1,14649329,1,1,2) [2025-03-10 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649329', 'tblTempUsageDetail_20' ) start [2025-03-10 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649329', 'tblTempUsageDetail_20' ) end [2025-03-10 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:51:26] Production.INFO: ==4204== Releasing lock... [2025-03-10 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:51:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:52:05 [end_date_ymd] => 2025-03-10 11:52:05 [RateCDR] => 1 ) [2025-03-10 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:52:05' and `end` < '2025-03-10 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:52:18] Production.INFO: count ==5112 [2025-03-10 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:52:05 - End Time 2025-03-10 11:52:05 [2025-03-10 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649334', 'tblTempUsageDetail_20' ) start [2025-03-10 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649334', 'tblTempUsageDetail_20' ) end [2025-03-10 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649334', 'tblTempVendorCDR_20' ) start [2025-03-10 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649334', 'tblTempVendorCDR_20' ) end [2025-03-10 11:52:21] Production.INFO: ProcessCDR(1,14649334,1,1,2) [2025-03-10 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649334', 'tblTempUsageDetail_20' ) start [2025-03-10 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649334', 'tblTempUsageDetail_20' ) end [2025-03-10 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:52:27] Production.INFO: ==4280== Releasing lock... [2025-03-10 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:52:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:53:05 [end_date_ymd] => 2025-03-10 11:53:05 [RateCDR] => 1 ) [2025-03-10 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:53:05' and `end` < '2025-03-10 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:53:18] Production.INFO: count ==5130 [2025-03-10 11:53:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:53:05 - End Time 2025-03-10 11:53:05 [2025-03-10 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649339', 'tblTempUsageDetail_20' ) start [2025-03-10 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649339', 'tblTempUsageDetail_20' ) end [2025-03-10 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649339', 'tblTempVendorCDR_20' ) start [2025-03-10 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649339', 'tblTempVendorCDR_20' ) end [2025-03-10 11:53:21] Production.INFO: ProcessCDR(1,14649339,1,1,2) [2025-03-10 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649339', 'tblTempUsageDetail_20' ) start [2025-03-10 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649339', 'tblTempUsageDetail_20' ) end [2025-03-10 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:53:26] Production.INFO: ==4361== Releasing lock... [2025-03-10 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:53:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:54:05 [end_date_ymd] => 2025-03-10 11:54:05 [RateCDR] => 1 ) [2025-03-10 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:54:05' and `end` < '2025-03-10 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:54:18] Production.INFO: count ==5128 [2025-03-10 11:54:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:54:05 - End Time 2025-03-10 11:54:05 [2025-03-10 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649344', 'tblTempUsageDetail_20' ) start [2025-03-10 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649344', 'tblTempUsageDetail_20' ) end [2025-03-10 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649344', 'tblTempVendorCDR_20' ) start [2025-03-10 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649344', 'tblTempVendorCDR_20' ) end [2025-03-10 11:54:20] Production.INFO: ProcessCDR(1,14649344,1,1,2) [2025-03-10 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649344', 'tblTempUsageDetail_20' ) start [2025-03-10 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649344', 'tblTempUsageDetail_20' ) end [2025-03-10 11:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:54:24] Production.INFO: ==4452== Releasing lock... [2025-03-10 11:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:54:24] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:55:06 [end_date_ymd] => 2025-03-10 11:55:06 [RateCDR] => 1 ) [2025-03-10 11:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:55:06' and `end` < '2025-03-10 11:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:55:19] Production.INFO: count ==5133 [2025-03-10 11:55:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:55:06 - End Time 2025-03-10 11:55:06 [2025-03-10 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649349', 'tblTempUsageDetail_20' ) start [2025-03-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649349', 'tblTempUsageDetail_20' ) end [2025-03-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649349', 'tblTempVendorCDR_20' ) start [2025-03-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649349', 'tblTempVendorCDR_20' ) end [2025-03-10 11:55:21] Production.INFO: ProcessCDR(1,14649349,1,1,2) [2025-03-10 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649349', 'tblTempUsageDetail_20' ) start [2025-03-10 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649349', 'tblTempUsageDetail_20' ) end [2025-03-10 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:55:26] Production.INFO: ==4530== Releasing lock... [2025-03-10 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:55:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:56:05 [end_date_ymd] => 2025-03-10 11:56:05 [RateCDR] => 1 ) [2025-03-10 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:56:05' and `end` < '2025-03-10 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:56:18] Production.INFO: count ==5122 [2025-03-10 11:56:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:56:05 - End Time 2025-03-10 11:56:05 [2025-03-10 11:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649354', 'tblTempUsageDetail_20' ) start [2025-03-10 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649354', 'tblTempUsageDetail_20' ) end [2025-03-10 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649354', 'tblTempVendorCDR_20' ) start [2025-03-10 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649354', 'tblTempVendorCDR_20' ) end [2025-03-10 11:56:20] Production.INFO: ProcessCDR(1,14649354,1,1,2) [2025-03-10 11:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649354', 'tblTempUsageDetail_20' ) start [2025-03-10 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649354', 'tblTempUsageDetail_20' ) end [2025-03-10 11:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:56:25] Production.INFO: ==4617== Releasing lock... [2025-03-10 11:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:56:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:57:06 [end_date_ymd] => 2025-03-10 11:57:06 [RateCDR] => 1 ) [2025-03-10 11:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:57:06' and `end` < '2025-03-10 11:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:57:19] Production.INFO: count ==5148 [2025-03-10 11:57:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:57:06 - End Time 2025-03-10 11:57:06 [2025-03-10 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649359', 'tblTempUsageDetail_20' ) start [2025-03-10 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649359', 'tblTempUsageDetail_20' ) end [2025-03-10 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649359', 'tblTempVendorCDR_20' ) start [2025-03-10 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649359', 'tblTempVendorCDR_20' ) end [2025-03-10 11:57:21] Production.INFO: ProcessCDR(1,14649359,1,1,2) [2025-03-10 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649359', 'tblTempUsageDetail_20' ) start [2025-03-10 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649359', 'tblTempUsageDetail_20' ) end [2025-03-10 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:57:26] Production.INFO: ==4705== Releasing lock... [2025-03-10 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:57:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:58:05 [end_date_ymd] => 2025-03-10 11:58:05 [RateCDR] => 1 ) [2025-03-10 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:58:05' and `end` < '2025-03-10 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:58:18] Production.INFO: count ==5149 [2025-03-10 11:58:21] Production.ERROR: pbx CDR StartTime 2025-03-10 08:58:05 - End Time 2025-03-10 11:58:05 [2025-03-10 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649364', 'tblTempUsageDetail_20' ) start [2025-03-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649364', 'tblTempUsageDetail_20' ) end [2025-03-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649364', 'tblTempVendorCDR_20' ) start [2025-03-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649364', 'tblTempVendorCDR_20' ) end [2025-03-10 11:58:21] Production.INFO: ProcessCDR(1,14649364,1,1,2) [2025-03-10 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649364', 'tblTempUsageDetail_20' ) start [2025-03-10 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649364', 'tblTempUsageDetail_20' ) end [2025-03-10 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:58:26] Production.INFO: ==4786== Releasing lock... [2025-03-10 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:58:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 08:59:05 [end_date_ymd] => 2025-03-10 11:59:05 [RateCDR] => 1 ) [2025-03-10 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 08:59:05' and `end` < '2025-03-10 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 11:59:18] Production.INFO: count ==5168 [2025-03-10 11:59:20] Production.ERROR: pbx CDR StartTime 2025-03-10 08:59:05 - End Time 2025-03-10 11:59:05 [2025-03-10 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649369', 'tblTempUsageDetail_20' ) start [2025-03-10 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649369', 'tblTempUsageDetail_20' ) end [2025-03-10 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649369', 'tblTempVendorCDR_20' ) start [2025-03-10 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649369', 'tblTempVendorCDR_20' ) end [2025-03-10 11:59:21] Production.INFO: ProcessCDR(1,14649369,1,1,2) [2025-03-10 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649369', 'tblTempUsageDetail_20' ) start [2025-03-10 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649369', 'tblTempUsageDetail_20' ) end [2025-03-10 11:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 11:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 11:59:25] Production.INFO: ==4902== Releasing lock... [2025-03-10 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 11:59:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:00:06 [end_date_ymd] => 2025-03-10 12:00:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:00:06' and `end` < '2025-03-10 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:00:20] Production.INFO: count ==5163 [2025-03-10 12:00:22] Production.ERROR: pbx CDR StartTime 2025-03-10 09:00:06 - End Time 2025-03-10 12:00:06 [2025-03-10 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649375', 'tblTempUsageDetail_20' ) start [2025-03-10 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649375', 'tblTempUsageDetail_20' ) end [2025-03-10 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649375', 'tblTempVendorCDR_20' ) start [2025-03-10 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649375', 'tblTempVendorCDR_20' ) end [2025-03-10 12:00:22] Production.INFO: ProcessCDR(1,14649375,1,1,2) [2025-03-10 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649375', 'tblTempUsageDetail_20' ) start [2025-03-10 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649375', 'tblTempUsageDetail_20' ) end [2025-03-10 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:00:28] Production.INFO: ==4985== Releasing lock... [2025-03-10 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:00:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:01:05 [end_date_ymd] => 2025-03-10 12:01:05 [RateCDR] => 1 ) [2025-03-10 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:01:05' and `end` < '2025-03-10 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:01:18] Production.INFO: count ==5215 [2025-03-10 12:01:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:01:05 - End Time 2025-03-10 12:01:05 [2025-03-10 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649380', 'tblTempUsageDetail_20' ) start [2025-03-10 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649380', 'tblTempUsageDetail_20' ) end [2025-03-10 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649380', 'tblTempVendorCDR_20' ) start [2025-03-10 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649380', 'tblTempVendorCDR_20' ) end [2025-03-10 12:01:21] Production.INFO: ProcessCDR(1,14649380,1,1,2) [2025-03-10 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649380', 'tblTempUsageDetail_20' ) start [2025-03-10 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649380', 'tblTempUsageDetail_20' ) end [2025-03-10 12:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:01:26] Production.INFO: ==5078== Releasing lock... [2025-03-10 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:01:26] Production.INFO: 67 MB #Memory Used# [2025-03-10 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:02:05 [end_date_ymd] => 2025-03-10 12:02:05 [RateCDR] => 1 ) [2025-03-10 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:02:05' and `end` < '2025-03-10 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:02:18] Production.INFO: count ==5207 [2025-03-10 12:02:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:02:05 - End Time 2025-03-10 12:02:05 [2025-03-10 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649385', 'tblTempUsageDetail_20' ) start [2025-03-10 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649385', 'tblTempUsageDetail_20' ) end [2025-03-10 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649385', 'tblTempVendorCDR_20' ) start [2025-03-10 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649385', 'tblTempVendorCDR_20' ) end [2025-03-10 12:02:21] Production.INFO: ProcessCDR(1,14649385,1,1,2) [2025-03-10 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649385', 'tblTempUsageDetail_20' ) start [2025-03-10 12:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649385', 'tblTempUsageDetail_20' ) end [2025-03-10 12:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:02:25] Production.INFO: ==5161== Releasing lock... [2025-03-10 12:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:02:25] Production.INFO: 67 MB #Memory Used# [2025-03-10 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:03:06 [end_date_ymd] => 2025-03-10 12:03:06 [RateCDR] => 1 ) [2025-03-10 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:03:06' and `end` < '2025-03-10 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:03:19] Production.INFO: count ==5214 [2025-03-10 12:03:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:03:06 - End Time 2025-03-10 12:03:06 [2025-03-10 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649390', 'tblTempUsageDetail_20' ) start [2025-03-10 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649390', 'tblTempUsageDetail_20' ) end [2025-03-10 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649390', 'tblTempVendorCDR_20' ) start [2025-03-10 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649390', 'tblTempVendorCDR_20' ) end [2025-03-10 12:03:21] Production.INFO: ProcessCDR(1,14649390,1,1,2) [2025-03-10 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649390', 'tblTempUsageDetail_20' ) start [2025-03-10 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649390', 'tblTempUsageDetail_20' ) end [2025-03-10 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:03:26] Production.INFO: ==5245== Releasing lock... [2025-03-10 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:03:26] Production.INFO: 67 MB #Memory Used# [2025-03-10 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:04:05 [end_date_ymd] => 2025-03-10 12:04:05 [RateCDR] => 1 ) [2025-03-10 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:04:05' and `end` < '2025-03-10 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:04:18] Production.INFO: count ==5191 [2025-03-10 12:04:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:04:05 - End Time 2025-03-10 12:04:05 [2025-03-10 12:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649395', 'tblTempUsageDetail_20' ) start [2025-03-10 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649395', 'tblTempUsageDetail_20' ) end [2025-03-10 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649395', 'tblTempVendorCDR_20' ) start [2025-03-10 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649395', 'tblTempVendorCDR_20' ) end [2025-03-10 12:04:21] Production.INFO: ProcessCDR(1,14649395,1,1,2) [2025-03-10 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649395', 'tblTempUsageDetail_20' ) start [2025-03-10 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649395', 'tblTempUsageDetail_20' ) end [2025-03-10 12:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:04:26] Production.INFO: ==5329== Releasing lock... [2025-03-10 12:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:04:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:05:05 [end_date_ymd] => 2025-03-10 12:05:05 [RateCDR] => 1 ) [2025-03-10 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:05:05' and `end` < '2025-03-10 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:05:18] Production.INFO: count ==5154 [2025-03-10 12:05:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:05:05 - End Time 2025-03-10 12:05:05 [2025-03-10 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649400', 'tblTempUsageDetail_20' ) start [2025-03-10 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649400', 'tblTempUsageDetail_20' ) end [2025-03-10 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649400', 'tblTempVendorCDR_20' ) start [2025-03-10 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649400', 'tblTempVendorCDR_20' ) end [2025-03-10 12:05:21] Production.INFO: ProcessCDR(1,14649400,1,1,2) [2025-03-10 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649400', 'tblTempUsageDetail_20' ) start [2025-03-10 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649400', 'tblTempUsageDetail_20' ) end [2025-03-10 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:05:26] Production.INFO: ==5408== Releasing lock... [2025-03-10 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:05:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:06:05 [end_date_ymd] => 2025-03-10 12:06:05 [RateCDR] => 1 ) [2025-03-10 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:06:05' and `end` < '2025-03-10 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:06:19] Production.INFO: count ==5136 [2025-03-10 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:06:05 - End Time 2025-03-10 12:06:05 [2025-03-10 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649405', 'tblTempUsageDetail_20' ) start [2025-03-10 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649405', 'tblTempUsageDetail_20' ) end [2025-03-10 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649405', 'tblTempVendorCDR_20' ) start [2025-03-10 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649405', 'tblTempVendorCDR_20' ) end [2025-03-10 12:06:21] Production.INFO: ProcessCDR(1,14649405,1,1,2) [2025-03-10 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649405', 'tblTempUsageDetail_20' ) start [2025-03-10 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649405', 'tblTempUsageDetail_20' ) end [2025-03-10 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:06:26] Production.INFO: ==5481== Releasing lock... [2025-03-10 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:06:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:07:06 [end_date_ymd] => 2025-03-10 12:07:06 [RateCDR] => 1 ) [2025-03-10 12:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:07:06' and `end` < '2025-03-10 12:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:07:19] Production.INFO: count ==5131 [2025-03-10 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:07:06 - End Time 2025-03-10 12:07:06 [2025-03-10 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649410', 'tblTempUsageDetail_20' ) start [2025-03-10 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649410', 'tblTempUsageDetail_20' ) end [2025-03-10 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649410', 'tblTempVendorCDR_20' ) start [2025-03-10 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649410', 'tblTempVendorCDR_20' ) end [2025-03-10 12:07:21] Production.INFO: ProcessCDR(1,14649410,1,1,2) [2025-03-10 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649410', 'tblTempUsageDetail_20' ) start [2025-03-10 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649410', 'tblTempUsageDetail_20' ) end [2025-03-10 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:07:26] Production.INFO: ==5578== Releasing lock... [2025-03-10 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:07:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:08:05 [end_date_ymd] => 2025-03-10 12:08:05 [RateCDR] => 1 ) [2025-03-10 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:08:05' and `end` < '2025-03-10 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:08:18] Production.INFO: count ==5132 [2025-03-10 12:08:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:08:05 - End Time 2025-03-10 12:08:05 [2025-03-10 12:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649415', 'tblTempUsageDetail_20' ) start [2025-03-10 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649415', 'tblTempUsageDetail_20' ) end [2025-03-10 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649415', 'tblTempVendorCDR_20' ) start [2025-03-10 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649415', 'tblTempVendorCDR_20' ) end [2025-03-10 12:08:20] Production.INFO: ProcessCDR(1,14649415,1,1,2) [2025-03-10 12:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649415', 'tblTempUsageDetail_20' ) start [2025-03-10 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649415', 'tblTempUsageDetail_20' ) end [2025-03-10 12:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:08:25] Production.INFO: ==5659== Releasing lock... [2025-03-10 12:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:08:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:09:05 [end_date_ymd] => 2025-03-10 12:09:05 [RateCDR] => 1 ) [2025-03-10 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:09:05' and `end` < '2025-03-10 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:09:19] Production.INFO: count ==5131 [2025-03-10 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:09:05 - End Time 2025-03-10 12:09:05 [2025-03-10 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649420', 'tblTempUsageDetail_20' ) start [2025-03-10 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649420', 'tblTempUsageDetail_20' ) end [2025-03-10 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649420', 'tblTempVendorCDR_20' ) start [2025-03-10 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649420', 'tblTempVendorCDR_20' ) end [2025-03-10 12:09:21] Production.INFO: ProcessCDR(1,14649420,1,1,2) [2025-03-10 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649420', 'tblTempUsageDetail_20' ) start [2025-03-10 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649420', 'tblTempUsageDetail_20' ) end [2025-03-10 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:09:26] Production.INFO: ==5740== Releasing lock... [2025-03-10 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:09:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:10:06 [end_date_ymd] => 2025-03-10 12:10:06 [RateCDR] => 1 ) [2025-03-10 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:10:06' and `end` < '2025-03-10 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:10:19] Production.INFO: count ==5121 [2025-03-10 12:10:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:10:06 - End Time 2025-03-10 12:10:06 [2025-03-10 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649425', 'tblTempUsageDetail_20' ) start [2025-03-10 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649425', 'tblTempUsageDetail_20' ) end [2025-03-10 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649425', 'tblTempVendorCDR_20' ) start [2025-03-10 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649425', 'tblTempVendorCDR_20' ) end [2025-03-10 12:10:21] Production.INFO: ProcessCDR(1,14649425,1,1,2) [2025-03-10 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649425', 'tblTempUsageDetail_20' ) start [2025-03-10 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649425', 'tblTempUsageDetail_20' ) end [2025-03-10 12:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:10:26] Production.INFO: ==5831== Releasing lock... [2025-03-10 12:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:10:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:11:06 [end_date_ymd] => 2025-03-10 12:11:06 [RateCDR] => 1 ) [2025-03-10 12:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:11:06' and `end` < '2025-03-10 12:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:11:19] Production.INFO: count ==5086 [2025-03-10 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:11:06 - End Time 2025-03-10 12:11:06 [2025-03-10 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649431', 'tblTempUsageDetail_20' ) start [2025-03-10 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649431', 'tblTempUsageDetail_20' ) end [2025-03-10 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649431', 'tblTempVendorCDR_20' ) start [2025-03-10 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649431', 'tblTempVendorCDR_20' ) end [2025-03-10 12:11:21] Production.INFO: ProcessCDR(1,14649431,1,1,2) [2025-03-10 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649431', 'tblTempUsageDetail_20' ) start [2025-03-10 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649431', 'tblTempUsageDetail_20' ) end [2025-03-10 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:11:25] Production.INFO: ==5918== Releasing lock... [2025-03-10 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:11:25] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:12:05 [end_date_ymd] => 2025-03-10 12:12:05 [RateCDR] => 1 ) [2025-03-10 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:12:05' and `end` < '2025-03-10 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:12:18] Production.INFO: count ==5077 [2025-03-10 12:12:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:12:05 - End Time 2025-03-10 12:12:05 [2025-03-10 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649436', 'tblTempUsageDetail_20' ) start [2025-03-10 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649436', 'tblTempUsageDetail_20' ) end [2025-03-10 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649436', 'tblTempVendorCDR_20' ) start [2025-03-10 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649436', 'tblTempVendorCDR_20' ) end [2025-03-10 12:12:20] Production.INFO: ProcessCDR(1,14649436,1,1,2) [2025-03-10 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649436', 'tblTempUsageDetail_20' ) start [2025-03-10 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649436', 'tblTempUsageDetail_20' ) end [2025-03-10 12:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:12:25] Production.INFO: ==5998== Releasing lock... [2025-03-10 12:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:12:25] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:13:05 [end_date_ymd] => 2025-03-10 12:13:05 [RateCDR] => 1 ) [2025-03-10 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:13:05' and `end` < '2025-03-10 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:13:18] Production.INFO: count ==5064 [2025-03-10 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:13:05 - End Time 2025-03-10 12:13:05 [2025-03-10 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649441', 'tblTempUsageDetail_20' ) start [2025-03-10 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649441', 'tblTempUsageDetail_20' ) end [2025-03-10 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649441', 'tblTempVendorCDR_20' ) start [2025-03-10 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649441', 'tblTempVendorCDR_20' ) end [2025-03-10 12:13:21] Production.INFO: ProcessCDR(1,14649441,1,1,2) [2025-03-10 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649441', 'tblTempUsageDetail_20' ) start [2025-03-10 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649441', 'tblTempUsageDetail_20' ) end [2025-03-10 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:13:26] Production.INFO: ==6083== Releasing lock... [2025-03-10 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:13:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:14:05 [end_date_ymd] => 2025-03-10 12:14:05 [RateCDR] => 1 ) [2025-03-10 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:14:05' and `end` < '2025-03-10 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:14:18] Production.INFO: count ==5062 [2025-03-10 12:14:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:14:05 - End Time 2025-03-10 12:14:05 [2025-03-10 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649446', 'tblTempUsageDetail_20' ) start [2025-03-10 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649446', 'tblTempUsageDetail_20' ) end [2025-03-10 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649446', 'tblTempVendorCDR_20' ) start [2025-03-10 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649446', 'tblTempVendorCDR_20' ) end [2025-03-10 12:14:20] Production.INFO: ProcessCDR(1,14649446,1,1,2) [2025-03-10 12:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649446', 'tblTempUsageDetail_20' ) start [2025-03-10 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649446', 'tblTempUsageDetail_20' ) end [2025-03-10 12:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:14:25] Production.INFO: ==6172== Releasing lock... [2025-03-10 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:14:25] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:15:05 [end_date_ymd] => 2025-03-10 12:15:05 [RateCDR] => 1 ) [2025-03-10 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:15:05' and `end` < '2025-03-10 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:15:18] Production.INFO: count ==5062 [2025-03-10 12:15:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:15:05 - End Time 2025-03-10 12:15:05 [2025-03-10 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649451', 'tblTempUsageDetail_20' ) start [2025-03-10 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649451', 'tblTempUsageDetail_20' ) end [2025-03-10 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649451', 'tblTempVendorCDR_20' ) start [2025-03-10 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649451', 'tblTempVendorCDR_20' ) end [2025-03-10 12:15:21] Production.INFO: ProcessCDR(1,14649451,1,1,2) [2025-03-10 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649451', 'tblTempUsageDetail_20' ) start [2025-03-10 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649451', 'tblTempUsageDetail_20' ) end [2025-03-10 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:15:26] Production.INFO: ==6288== Releasing lock... [2025-03-10 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:15:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:16:05 [end_date_ymd] => 2025-03-10 12:16:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:16:05' and `end` < '2025-03-10 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-03-10 12:16:18] Production.INFO: count ==5058 [2025-03-10 12:16:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:16:05 - End Time 2025-03-10 12:16:05 [2025-03-10 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649456', 'tblTempUsageDetail_20' ) start [2025-03-10 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649456', 'tblTempUsageDetail_20' ) end [2025-03-10 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649456', 'tblTempVendorCDR_20' ) start [2025-03-10 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649456', 'tblTempVendorCDR_20' ) end [2025-03-10 12:16:20] Production.INFO: ProcessCDR(1,14649456,1,1,2) [2025-03-10 12:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649456', 'tblTempUsageDetail_20' ) start [2025-03-10 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649456', 'tblTempUsageDetail_20' ) end [2025-03-10 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:16:26] Production.INFO: ==6365== Releasing lock... [2025-03-10 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:16:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:17:06 [end_date_ymd] => 2025-03-10 12:17:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:17:06' and `end` < '2025-03-10 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-03-10 12:17:19] Production.INFO: count ==5063 [2025-03-10 12:17:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:17:06 - End Time 2025-03-10 12:17:06 [2025-03-10 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649461', 'tblTempUsageDetail_20' ) start [2025-03-10 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649461', 'tblTempUsageDetail_20' ) end [2025-03-10 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649461', 'tblTempVendorCDR_20' ) start [2025-03-10 12:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649461', 'tblTempVendorCDR_20' ) end [2025-03-10 12:17:22] Production.INFO: ProcessCDR(1,14649461,1,1,2) [2025-03-10 12:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649461', 'tblTempUsageDetail_20' ) start [2025-03-10 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649461', 'tblTempUsageDetail_20' ) end [2025-03-10 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:17:27] Production.INFO: ==6447== Releasing lock... [2025-03-10 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:17:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:18:06 [end_date_ymd] => 2025-03-10 12:18:06 [RateCDR] => 1 ) [2025-03-10 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:18:06' and `end` < '2025-03-10 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:18:19] Production.INFO: count ==5032 [2025-03-10 12:18:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:18:06 - End Time 2025-03-10 12:18:06 [2025-03-10 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649466', 'tblTempUsageDetail_20' ) start [2025-03-10 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649466', 'tblTempUsageDetail_20' ) end [2025-03-10 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649466', 'tblTempVendorCDR_20' ) start [2025-03-10 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649466', 'tblTempVendorCDR_20' ) end [2025-03-10 12:18:21] Production.INFO: ProcessCDR(1,14649466,1,1,2) [2025-03-10 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649466', 'tblTempUsageDetail_20' ) start [2025-03-10 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649466', 'tblTempUsageDetail_20' ) end [2025-03-10 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:18:27] Production.INFO: ==6531== Releasing lock... [2025-03-10 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:18:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:19:05 [end_date_ymd] => 2025-03-10 12:19:05 [RateCDR] => 1 ) [2025-03-10 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:19:05' and `end` < '2025-03-10 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:19:18] Production.INFO: count ==4997 [2025-03-10 12:19:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:19:05 - End Time 2025-03-10 12:19:05 [2025-03-10 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649471', 'tblTempUsageDetail_20' ) start [2025-03-10 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649471', 'tblTempUsageDetail_20' ) end [2025-03-10 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649471', 'tblTempVendorCDR_20' ) start [2025-03-10 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649471', 'tblTempVendorCDR_20' ) end [2025-03-10 12:19:20] Production.INFO: ProcessCDR(1,14649471,1,1,2) [2025-03-10 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649471', 'tblTempUsageDetail_20' ) start [2025-03-10 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649471', 'tblTempUsageDetail_20' ) end [2025-03-10 12:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:19:25] Production.INFO: ==6609== Releasing lock... [2025-03-10 12:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:19:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:20:05 [end_date_ymd] => 2025-03-10 12:20:05 [RateCDR] => 1 ) [2025-03-10 12:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:20:05' and `end` < '2025-03-10 12:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:20:19] Production.INFO: count ==4991 [2025-03-10 12:20:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:20:05 - End Time 2025-03-10 12:20:05 [2025-03-10 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649477', 'tblTempUsageDetail_20' ) start [2025-03-10 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649477', 'tblTempUsageDetail_20' ) end [2025-03-10 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649477', 'tblTempVendorCDR_20' ) start [2025-03-10 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649477', 'tblTempVendorCDR_20' ) end [2025-03-10 12:20:21] Production.INFO: ProcessCDR(1,14649477,1,1,2) [2025-03-10 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649477', 'tblTempUsageDetail_20' ) start [2025-03-10 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649477', 'tblTempUsageDetail_20' ) end [2025-03-10 12:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:20:26] Production.INFO: ==6697== Releasing lock... [2025-03-10 12:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:20:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:21:05 [end_date_ymd] => 2025-03-10 12:21:05 [RateCDR] => 1 ) [2025-03-10 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:21:05' and `end` < '2025-03-10 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:21:18] Production.INFO: count ==5006 [2025-03-10 12:21:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:21:05 - End Time 2025-03-10 12:21:05 [2025-03-10 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649482', 'tblTempUsageDetail_20' ) start [2025-03-10 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649482', 'tblTempUsageDetail_20' ) end [2025-03-10 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649482', 'tblTempVendorCDR_20' ) start [2025-03-10 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649482', 'tblTempVendorCDR_20' ) end [2025-03-10 12:21:20] Production.INFO: ProcessCDR(1,14649482,1,1,2) [2025-03-10 12:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649482', 'tblTempUsageDetail_20' ) start [2025-03-10 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649482', 'tblTempUsageDetail_20' ) end [2025-03-10 12:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:21:25] Production.INFO: ==6783== Releasing lock... [2025-03-10 12:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:21:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:22:05 [end_date_ymd] => 2025-03-10 12:22:05 [RateCDR] => 1 ) [2025-03-10 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:22:05' and `end` < '2025-03-10 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:22:19] Production.INFO: count ==5032 [2025-03-10 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:22:05 - End Time 2025-03-10 12:22:05 [2025-03-10 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649487', 'tblTempUsageDetail_20' ) start [2025-03-10 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649487', 'tblTempUsageDetail_20' ) end [2025-03-10 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649487', 'tblTempVendorCDR_20' ) start [2025-03-10 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649487', 'tblTempVendorCDR_20' ) end [2025-03-10 12:22:21] Production.INFO: ProcessCDR(1,14649487,1,1,2) [2025-03-10 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649487', 'tblTempUsageDetail_20' ) start [2025-03-10 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649487', 'tblTempUsageDetail_20' ) end [2025-03-10 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:22:26] Production.INFO: ==6864== Releasing lock... [2025-03-10 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:22:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:23:06 [end_date_ymd] => 2025-03-10 12:23:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:23:06' and `end` < '2025-03-10 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-03-10 12:23:19] Production.INFO: count ==5073 [2025-03-10 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:23:06 - End Time 2025-03-10 12:23:06 [2025-03-10 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649492', 'tblTempUsageDetail_20' ) start [2025-03-10 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649492', 'tblTempUsageDetail_20' ) end [2025-03-10 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649492', 'tblTempVendorCDR_20' ) start [2025-03-10 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649492', 'tblTempVendorCDR_20' ) end [2025-03-10 12:23:21] Production.INFO: ProcessCDR(1,14649492,1,1,2) [2025-03-10 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649492', 'tblTempUsageDetail_20' ) start [2025-03-10 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649492', 'tblTempUsageDetail_20' ) end [2025-03-10 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:23:26] Production.INFO: ==6945== Releasing lock... [2025-03-10 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:23:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:24:05 [end_date_ymd] => 2025-03-10 12:24:05 [RateCDR] => 1 ) [2025-03-10 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:24:05' and `end` < '2025-03-10 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:24:18] Production.INFO: count ==5072 [2025-03-10 12:24:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:24:05 - End Time 2025-03-10 12:24:05 [2025-03-10 12:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649497', 'tblTempUsageDetail_20' ) start [2025-03-10 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649497', 'tblTempUsageDetail_20' ) end [2025-03-10 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649497', 'tblTempVendorCDR_20' ) start [2025-03-10 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649497', 'tblTempVendorCDR_20' ) end [2025-03-10 12:24:21] Production.INFO: ProcessCDR(1,14649497,1,1,2) [2025-03-10 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649497', 'tblTempUsageDetail_20' ) start [2025-03-10 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649497', 'tblTempUsageDetail_20' ) end [2025-03-10 12:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:24:25] Production.INFO: ==7029== Releasing lock... [2025-03-10 12:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:24:25] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:25:05 [end_date_ymd] => 2025-03-10 12:25:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:25:05' and `end` < '2025-03-10 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-03-10 12:25:19] Production.INFO: count ==5055 [2025-03-10 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:25:05 - End Time 2025-03-10 12:25:05 [2025-03-10 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649502', 'tblTempUsageDetail_20' ) start [2025-03-10 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649502', 'tblTempUsageDetail_20' ) end [2025-03-10 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649502', 'tblTempVendorCDR_20' ) start [2025-03-10 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649502', 'tblTempVendorCDR_20' ) end [2025-03-10 12:25:21] Production.INFO: ProcessCDR(1,14649502,1,1,2) [2025-03-10 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649502', 'tblTempUsageDetail_20' ) start [2025-03-10 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649502', 'tblTempUsageDetail_20' ) end [2025-03-10 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:25:26] Production.INFO: ==7105== Releasing lock... [2025-03-10 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:25:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:26:05 [end_date_ymd] => 2025-03-10 12:26:05 [RateCDR] => 1 ) [2025-03-10 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:26:05' and `end` < '2025-03-10 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:26:18] Production.INFO: count ==5032 [2025-03-10 12:26:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:26:05 - End Time 2025-03-10 12:26:05 [2025-03-10 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649507', 'tblTempUsageDetail_20' ) start [2025-03-10 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649507', 'tblTempUsageDetail_20' ) end [2025-03-10 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649507', 'tblTempVendorCDR_20' ) start [2025-03-10 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649507', 'tblTempVendorCDR_20' ) end [2025-03-10 12:26:21] Production.INFO: ProcessCDR(1,14649507,1,1,2) [2025-03-10 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649507', 'tblTempUsageDetail_20' ) start [2025-03-10 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649507', 'tblTempUsageDetail_20' ) end [2025-03-10 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:26:26] Production.INFO: ==7186== Releasing lock... [2025-03-10 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:26:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:27:05 [end_date_ymd] => 2025-03-10 12:27:05 [RateCDR] => 1 ) [2025-03-10 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:27:05' and `end` < '2025-03-10 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:27:17] Production.INFO: count ==5023 [2025-03-10 12:27:19] Production.ERROR: pbx CDR StartTime 2025-03-10 09:27:05 - End Time 2025-03-10 12:27:05 [2025-03-10 12:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649512', 'tblTempUsageDetail_20' ) start [2025-03-10 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649512', 'tblTempUsageDetail_20' ) end [2025-03-10 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649512', 'tblTempVendorCDR_20' ) start [2025-03-10 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649512', 'tblTempVendorCDR_20' ) end [2025-03-10 12:27:20] Production.INFO: ProcessCDR(1,14649512,1,1,2) [2025-03-10 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649512', 'tblTempUsageDetail_20' ) start [2025-03-10 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649512', 'tblTempUsageDetail_20' ) end [2025-03-10 12:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:27:24] Production.INFO: ==7262== Releasing lock... [2025-03-10 12:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:27:24] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:28:06 [end_date_ymd] => 2025-03-10 12:28:06 [RateCDR] => 1 ) [2025-03-10 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:28:06' and `end` < '2025-03-10 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:28:19] Production.INFO: count ==5026 [2025-03-10 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:28:06 - End Time 2025-03-10 12:28:06 [2025-03-10 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649517', 'tblTempUsageDetail_20' ) start [2025-03-10 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649517', 'tblTempUsageDetail_20' ) end [2025-03-10 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649517', 'tblTempVendorCDR_20' ) start [2025-03-10 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649517', 'tblTempVendorCDR_20' ) end [2025-03-10 12:28:21] Production.INFO: ProcessCDR(1,14649517,1,1,2) [2025-03-10 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649517', 'tblTempUsageDetail_20' ) start [2025-03-10 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649517', 'tblTempUsageDetail_20' ) end [2025-03-10 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:28:26] Production.INFO: ==7343== Releasing lock... [2025-03-10 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:28:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:29:05 [end_date_ymd] => 2025-03-10 12:29:05 [RateCDR] => 1 ) [2025-03-10 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:29:05' and `end` < '2025-03-10 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:29:18] Production.INFO: count ==5040 [2025-03-10 12:29:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:29:05 - End Time 2025-03-10 12:29:05 [2025-03-10 12:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649522', 'tblTempUsageDetail_20' ) start [2025-03-10 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649522', 'tblTempUsageDetail_20' ) end [2025-03-10 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649522', 'tblTempVendorCDR_20' ) start [2025-03-10 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649522', 'tblTempVendorCDR_20' ) end [2025-03-10 12:29:20] Production.INFO: ProcessCDR(1,14649522,1,1,2) [2025-03-10 12:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649522', 'tblTempUsageDetail_20' ) start [2025-03-10 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649522', 'tblTempUsageDetail_20' ) end [2025-03-10 12:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:29:25] Production.INFO: ==7412== Releasing lock... [2025-03-10 12:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:29:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:30:06 [end_date_ymd] => 2025-03-10 12:30:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:30:06' and `end` < '2025-03-10 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-03-10 12:30:19] Production.INFO: count ==5025 [2025-03-10 12:30:22] Production.ERROR: pbx CDR StartTime 2025-03-10 09:30:06 - End Time 2025-03-10 12:30:06 [2025-03-10 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649528', 'tblTempUsageDetail_20' ) start [2025-03-10 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649528', 'tblTempUsageDetail_20' ) end [2025-03-10 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649528', 'tblTempVendorCDR_20' ) start [2025-03-10 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649528', 'tblTempVendorCDR_20' ) end [2025-03-10 12:30:22] Production.INFO: ProcessCDR(1,14649528,1,1,2) [2025-03-10 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649528', 'tblTempUsageDetail_20' ) start [2025-03-10 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649528', 'tblTempUsageDetail_20' ) end [2025-03-10 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:30:27] Production.INFO: ==7525== Releasing lock... [2025-03-10 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:30:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:31:05 [end_date_ymd] => 2025-03-10 12:31:05 [RateCDR] => 1 ) [2025-03-10 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:31:05' and `end` < '2025-03-10 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:31:18] Production.INFO: count ==5010 [2025-03-10 12:31:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:31:05 - End Time 2025-03-10 12:31:05 [2025-03-10 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649533', 'tblTempUsageDetail_20' ) start [2025-03-10 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649533', 'tblTempUsageDetail_20' ) end [2025-03-10 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649533', 'tblTempVendorCDR_20' ) start [2025-03-10 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649533', 'tblTempVendorCDR_20' ) end [2025-03-10 12:31:21] Production.INFO: ProcessCDR(1,14649533,1,1,2) [2025-03-10 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649533', 'tblTempUsageDetail_20' ) start [2025-03-10 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649533', 'tblTempUsageDetail_20' ) end [2025-03-10 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:31:26] Production.INFO: ==7599== Releasing lock... [2025-03-10 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:31:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:32:06 [end_date_ymd] => 2025-03-10 12:32:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:32:06' and `end` < '2025-03-10 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-03-10 12:32:19] Production.INFO: count ==5028 [2025-03-10 12:32:22] Production.ERROR: pbx CDR StartTime 2025-03-10 09:32:06 - End Time 2025-03-10 12:32:06 [2025-03-10 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649538', 'tblTempUsageDetail_20' ) start [2025-03-10 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649538', 'tblTempUsageDetail_20' ) end [2025-03-10 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649538', 'tblTempVendorCDR_20' ) start [2025-03-10 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649538', 'tblTempVendorCDR_20' ) end [2025-03-10 12:32:22] Production.INFO: ProcessCDR(1,14649538,1,1,2) [2025-03-10 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649538', 'tblTempUsageDetail_20' ) start [2025-03-10 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649538', 'tblTempUsageDetail_20' ) end [2025-03-10 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:32:27] Production.INFO: ==7675== Releasing lock... [2025-03-10 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:32:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:33:05 [end_date_ymd] => 2025-03-10 12:33:05 [RateCDR] => 1 ) [2025-03-10 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:33:05' and `end` < '2025-03-10 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:33:18] Production.INFO: count ==5030 [2025-03-10 12:33:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:33:05 - End Time 2025-03-10 12:33:05 [2025-03-10 12:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649543', 'tblTempUsageDetail_20' ) start [2025-03-10 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649543', 'tblTempUsageDetail_20' ) end [2025-03-10 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649543', 'tblTempVendorCDR_20' ) start [2025-03-10 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649543', 'tblTempVendorCDR_20' ) end [2025-03-10 12:33:21] Production.INFO: ProcessCDR(1,14649543,1,1,2) [2025-03-10 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649543', 'tblTempUsageDetail_20' ) start [2025-03-10 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649543', 'tblTempUsageDetail_20' ) end [2025-03-10 12:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:33:26] Production.INFO: ==7745== Releasing lock... [2025-03-10 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:33:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:34:06 [end_date_ymd] => 2025-03-10 12:34:06 [RateCDR] => 1 ) [2025-03-10 12:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:34:06' and `end` < '2025-03-10 12:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:34:19] Production.INFO: count ==5012 [2025-03-10 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:34:06 - End Time 2025-03-10 12:34:06 [2025-03-10 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649548', 'tblTempUsageDetail_20' ) start [2025-03-10 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649548', 'tblTempUsageDetail_20' ) end [2025-03-10 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649548', 'tblTempVendorCDR_20' ) start [2025-03-10 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649548', 'tblTempVendorCDR_20' ) end [2025-03-10 12:34:22] Production.INFO: ProcessCDR(1,14649548,1,1,2) [2025-03-10 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649548', 'tblTempUsageDetail_20' ) start [2025-03-10 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649548', 'tblTempUsageDetail_20' ) end [2025-03-10 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:34:27] Production.INFO: ==7822== Releasing lock... [2025-03-10 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:34:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:35:05 [end_date_ymd] => 2025-03-10 12:35:05 [RateCDR] => 1 ) [2025-03-10 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:35:05' and `end` < '2025-03-10 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:35:18] Production.INFO: count ==4984 [2025-03-10 12:35:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:35:05 - End Time 2025-03-10 12:35:05 [2025-03-10 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649553', 'tblTempUsageDetail_20' ) start [2025-03-10 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649553', 'tblTempUsageDetail_20' ) end [2025-03-10 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649553', 'tblTempVendorCDR_20' ) start [2025-03-10 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649553', 'tblTempVendorCDR_20' ) end [2025-03-10 12:35:21] Production.INFO: ProcessCDR(1,14649553,1,1,2) [2025-03-10 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649553', 'tblTempUsageDetail_20' ) start [2025-03-10 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649553', 'tblTempUsageDetail_20' ) end [2025-03-10 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:35:26] Production.INFO: ==7897== Releasing lock... [2025-03-10 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:35:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:36:06 [end_date_ymd] => 2025-03-10 12:36:06 [RateCDR] => 1 ) [2025-03-10 12:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:36:06' and `end` < '2025-03-10 12:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:36:19] Production.INFO: count ==4991 [2025-03-10 12:36:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:36:06 - End Time 2025-03-10 12:36:06 [2025-03-10 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649558', 'tblTempUsageDetail_20' ) start [2025-03-10 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649558', 'tblTempUsageDetail_20' ) end [2025-03-10 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649558', 'tblTempVendorCDR_20' ) start [2025-03-10 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649558', 'tblTempVendorCDR_20' ) end [2025-03-10 12:36:21] Production.INFO: ProcessCDR(1,14649558,1,1,2) [2025-03-10 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649558', 'tblTempUsageDetail_20' ) start [2025-03-10 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649558', 'tblTempUsageDetail_20' ) end [2025-03-10 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:36:26] Production.INFO: ==7969== Releasing lock... [2025-03-10 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:36:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:37:05 [end_date_ymd] => 2025-03-10 12:37:05 [RateCDR] => 1 ) [2025-03-10 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:37:05' and `end` < '2025-03-10 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:37:18] Production.INFO: count ==4993 [2025-03-10 12:37:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:37:05 - End Time 2025-03-10 12:37:05 [2025-03-10 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649563', 'tblTempUsageDetail_20' ) start [2025-03-10 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649563', 'tblTempUsageDetail_20' ) end [2025-03-10 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649563', 'tblTempVendorCDR_20' ) start [2025-03-10 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649563', 'tblTempVendorCDR_20' ) end [2025-03-10 12:37:20] Production.INFO: ProcessCDR(1,14649563,1,1,2) [2025-03-10 12:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649563', 'tblTempUsageDetail_20' ) start [2025-03-10 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649563', 'tblTempUsageDetail_20' ) end [2025-03-10 12:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:37:26] Production.INFO: ==8042== Releasing lock... [2025-03-10 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:37:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:38:06 [end_date_ymd] => 2025-03-10 12:38:06 [RateCDR] => 1 ) [2025-03-10 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:38:06' and `end` < '2025-03-10 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:38:19] Production.INFO: count ==4989 [2025-03-10 12:38:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:38:06 - End Time 2025-03-10 12:38:06 [2025-03-10 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649568', 'tblTempUsageDetail_20' ) start [2025-03-10 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649568', 'tblTempUsageDetail_20' ) end [2025-03-10 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649568', 'tblTempVendorCDR_20' ) start [2025-03-10 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649568', 'tblTempVendorCDR_20' ) end [2025-03-10 12:38:21] Production.INFO: ProcessCDR(1,14649568,1,1,2) [2025-03-10 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649568', 'tblTempUsageDetail_20' ) start [2025-03-10 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649568', 'tblTempUsageDetail_20' ) end [2025-03-10 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:38:26] Production.INFO: ==8112== Releasing lock... [2025-03-10 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:38:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:39:05 [end_date_ymd] => 2025-03-10 12:39:05 [RateCDR] => 1 ) [2025-03-10 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:39:05' and `end` < '2025-03-10 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-03-10 12:39:18] Production.INFO: count ==5009 [2025-03-10 12:39:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:39:05 - End Time 2025-03-10 12:39:05 [2025-03-10 12:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649573', 'tblTempUsageDetail_20' ) start [2025-03-10 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649573', 'tblTempUsageDetail_20' ) end [2025-03-10 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649573', 'tblTempVendorCDR_20' ) start [2025-03-10 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649573', 'tblTempVendorCDR_20' ) end [2025-03-10 12:39:20] Production.INFO: ProcessCDR(1,14649573,1,1,2) [2025-03-10 12:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649573', 'tblTempUsageDetail_20' ) start [2025-03-10 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649573', 'tblTempUsageDetail_20' ) end [2025-03-10 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:39:26] Production.INFO: ==8184== Releasing lock... [2025-03-10 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:39:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:40:06 [end_date_ymd] => 2025-03-10 12:40:06 [RateCDR] => 1 ) [2025-03-10 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:40:06' and `end` < '2025-03-10 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:40:19] Production.INFO: count ==5007 [2025-03-10 12:40:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:40:06 - End Time 2025-03-10 12:40:06 [2025-03-10 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649578', 'tblTempUsageDetail_20' ) start [2025-03-10 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649578', 'tblTempUsageDetail_20' ) end [2025-03-10 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649578', 'tblTempVendorCDR_20' ) start [2025-03-10 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649578', 'tblTempVendorCDR_20' ) end [2025-03-10 12:40:21] Production.INFO: ProcessCDR(1,14649578,1,1,2) [2025-03-10 12:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649578', 'tblTempUsageDetail_20' ) start [2025-03-10 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649578', 'tblTempUsageDetail_20' ) end [2025-03-10 12:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:40:26] Production.INFO: ==8261== Releasing lock... [2025-03-10 12:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:40:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:41:05 [end_date_ymd] => 2025-03-10 12:41:05 [RateCDR] => 1 ) [2025-03-10 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:41:05' and `end` < '2025-03-10 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:41:18] Production.INFO: count ==5041 [2025-03-10 12:41:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:41:05 - End Time 2025-03-10 12:41:05 [2025-03-10 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649584', 'tblTempUsageDetail_20' ) start [2025-03-10 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649584', 'tblTempUsageDetail_20' ) end [2025-03-10 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649584', 'tblTempVendorCDR_20' ) start [2025-03-10 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649584', 'tblTempVendorCDR_20' ) end [2025-03-10 12:41:21] Production.INFO: ProcessCDR(1,14649584,1,1,2) [2025-03-10 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649584', 'tblTempUsageDetail_20' ) start [2025-03-10 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649584', 'tblTempUsageDetail_20' ) end [2025-03-10 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:41:26] Production.INFO: ==8337== Releasing lock... [2025-03-10 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:41:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:42:06 [end_date_ymd] => 2025-03-10 12:42:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:42:06' and `end` < '2025-03-10 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-03-10 12:42:19] Production.INFO: count ==5060 [2025-03-10 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:42:06 - End Time 2025-03-10 12:42:06 [2025-03-10 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649589', 'tblTempUsageDetail_20' ) start [2025-03-10 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649589', 'tblTempUsageDetail_20' ) end [2025-03-10 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649589', 'tblTempVendorCDR_20' ) start [2025-03-10 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649589', 'tblTempVendorCDR_20' ) end [2025-03-10 12:42:22] Production.INFO: ProcessCDR(1,14649589,1,1,2) [2025-03-10 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649589', 'tblTempUsageDetail_20' ) start [2025-03-10 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649589', 'tblTempUsageDetail_20' ) end [2025-03-10 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:42:27] Production.INFO: ==8407== Releasing lock... [2025-03-10 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:42:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:43:05 [end_date_ymd] => 2025-03-10 12:43:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:43:05' and `end` < '2025-03-10 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-03-10 12:43:19] Production.INFO: count ==5064 [2025-03-10 12:43:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:43:05 - End Time 2025-03-10 12:43:05 [2025-03-10 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649594', 'tblTempUsageDetail_20' ) start [2025-03-10 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649594', 'tblTempUsageDetail_20' ) end [2025-03-10 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649594', 'tblTempVendorCDR_20' ) start [2025-03-10 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649594', 'tblTempVendorCDR_20' ) end [2025-03-10 12:43:21] Production.INFO: ProcessCDR(1,14649594,1,1,2) [2025-03-10 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649594', 'tblTempUsageDetail_20' ) start [2025-03-10 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649594', 'tblTempUsageDetail_20' ) end [2025-03-10 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:43:26] Production.INFO: ==8476== Releasing lock... [2025-03-10 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:43:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:44:06 [end_date_ymd] => 2025-03-10 12:44:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:44:06' and `end` < '2025-03-10 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-03-10 12:44:19] Production.INFO: count ==5090 [2025-03-10 12:44:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:44:06 - End Time 2025-03-10 12:44:06 [2025-03-10 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649599', 'tblTempUsageDetail_20' ) start [2025-03-10 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649599', 'tblTempUsageDetail_20' ) end [2025-03-10 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649599', 'tblTempVendorCDR_20' ) start [2025-03-10 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649599', 'tblTempVendorCDR_20' ) end [2025-03-10 12:44:21] Production.INFO: ProcessCDR(1,14649599,1,1,2) [2025-03-10 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649599', 'tblTempUsageDetail_20' ) start [2025-03-10 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649599', 'tblTempUsageDetail_20' ) end [2025-03-10 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:44:27] Production.INFO: ==8548== Releasing lock... [2025-03-10 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:44:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:45:05 [end_date_ymd] => 2025-03-10 12:45:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:45:05' and `end` < '2025-03-10 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-03-10 12:45:18] Production.INFO: count ==5094 [2025-03-10 12:45:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:45:05 - End Time 2025-03-10 12:45:05 [2025-03-10 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649604', 'tblTempUsageDetail_20' ) start [2025-03-10 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649604', 'tblTempUsageDetail_20' ) end [2025-03-10 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649604', 'tblTempVendorCDR_20' ) start [2025-03-10 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649604', 'tblTempVendorCDR_20' ) end [2025-03-10 12:45:21] Production.INFO: ProcessCDR(1,14649604,1,1,2) [2025-03-10 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649604', 'tblTempUsageDetail_20' ) start [2025-03-10 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649604', 'tblTempUsageDetail_20' ) end [2025-03-10 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:45:26] Production.INFO: ==8620== Releasing lock... [2025-03-10 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:45:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:46:06 [end_date_ymd] => 2025-03-10 12:46:06 [RateCDR] => 1 ) [2025-03-10 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:46:06' and `end` < '2025-03-10 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:46:19] Production.INFO: count ==5127 [2025-03-10 12:46:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:46:06 - End Time 2025-03-10 12:46:06 [2025-03-10 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649609', 'tblTempUsageDetail_20' ) start [2025-03-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649609', 'tblTempUsageDetail_20' ) end [2025-03-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649609', 'tblTempVendorCDR_20' ) start [2025-03-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649609', 'tblTempVendorCDR_20' ) end [2025-03-10 12:46:21] Production.INFO: ProcessCDR(1,14649609,1,1,2) [2025-03-10 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649609', 'tblTempUsageDetail_20' ) start [2025-03-10 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649609', 'tblTempUsageDetail_20' ) end [2025-03-10 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:46:27] Production.INFO: ==8731== Releasing lock... [2025-03-10 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:46:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:47:05 [end_date_ymd] => 2025-03-10 12:47:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:47:05' and `end` < '2025-03-10 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-03-10 12:47:18] Production.INFO: count ==5140 [2025-03-10 12:47:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:47:05 - End Time 2025-03-10 12:47:05 [2025-03-10 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649614', 'tblTempUsageDetail_20' ) start [2025-03-10 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649614', 'tblTempUsageDetail_20' ) end [2025-03-10 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649614', 'tblTempVendorCDR_20' ) start [2025-03-10 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649614', 'tblTempVendorCDR_20' ) end [2025-03-10 12:47:20] Production.INFO: ProcessCDR(1,14649614,1,1,2) [2025-03-10 12:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649614', 'tblTempUsageDetail_20' ) start [2025-03-10 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649614', 'tblTempUsageDetail_20' ) end [2025-03-10 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:47:26] Production.INFO: ==8802== Releasing lock... [2025-03-10 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:47:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:48:06 [end_date_ymd] => 2025-03-10 12:48:06 [RateCDR] => 1 ) [2025-03-10 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:48:06' and `end` < '2025-03-10 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:48:19] Production.INFO: count ==5130 [2025-03-10 12:48:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:48:06 - End Time 2025-03-10 12:48:06 [2025-03-10 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649619', 'tblTempUsageDetail_20' ) start [2025-03-10 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649619', 'tblTempUsageDetail_20' ) end [2025-03-10 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649619', 'tblTempVendorCDR_20' ) start [2025-03-10 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649619', 'tblTempVendorCDR_20' ) end [2025-03-10 12:48:21] Production.INFO: ProcessCDR(1,14649619,1,1,2) [2025-03-10 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649619', 'tblTempUsageDetail_20' ) start [2025-03-10 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649619', 'tblTempUsageDetail_20' ) end [2025-03-10 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:48:26] Production.INFO: ==8873== Releasing lock... [2025-03-10 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:48:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:49:05 [end_date_ymd] => 2025-03-10 12:49:05 [RateCDR] => 1 ) [2025-03-10 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:49:05' and `end` < '2025-03-10 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:49:19] Production.INFO: count ==5163 [2025-03-10 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:49:05 - End Time 2025-03-10 12:49:05 [2025-03-10 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649624', 'tblTempUsageDetail_20' ) start [2025-03-10 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649624', 'tblTempUsageDetail_20' ) end [2025-03-10 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649624', 'tblTempVendorCDR_20' ) start [2025-03-10 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649624', 'tblTempVendorCDR_20' ) end [2025-03-10 12:49:21] Production.INFO: ProcessCDR(1,14649624,1,1,2) [2025-03-10 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649624', 'tblTempUsageDetail_20' ) start [2025-03-10 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649624', 'tblTempUsageDetail_20' ) end [2025-03-10 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:49:26] Production.INFO: ==8947== Releasing lock... [2025-03-10 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:49:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:50:06 [end_date_ymd] => 2025-03-10 12:50:06 [RateCDR] => 1 ) [2025-03-10 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:50:06' and `end` < '2025-03-10 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:50:19] Production.INFO: count ==5166 [2025-03-10 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-10 09:50:06 - End Time 2025-03-10 12:50:06 [2025-03-10 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649629', 'tblTempUsageDetail_20' ) start [2025-03-10 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649629', 'tblTempUsageDetail_20' ) end [2025-03-10 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649629', 'tblTempVendorCDR_20' ) start [2025-03-10 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649629', 'tblTempVendorCDR_20' ) end [2025-03-10 12:50:22] Production.INFO: ProcessCDR(1,14649629,1,1,2) [2025-03-10 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649629', 'tblTempUsageDetail_20' ) start [2025-03-10 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649629', 'tblTempUsageDetail_20' ) end [2025-03-10 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:50:27] Production.INFO: ==9020== Releasing lock... [2025-03-10 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:50:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:51:05 [end_date_ymd] => 2025-03-10 12:51:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:51:05' and `end` < '2025-03-10 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:51:18] Production.INFO: count ==5142 [2025-03-10 12:51:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:51:05 - End Time 2025-03-10 12:51:05 [2025-03-10 12:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649635', 'tblTempUsageDetail_20' ) start [2025-03-10 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649635', 'tblTempUsageDetail_20' ) end [2025-03-10 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649635', 'tblTempVendorCDR_20' ) start [2025-03-10 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649635', 'tblTempVendorCDR_20' ) end [2025-03-10 12:51:20] Production.INFO: ProcessCDR(1,14649635,1,1,2) [2025-03-10 12:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649635', 'tblTempUsageDetail_20' ) start [2025-03-10 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649635', 'tblTempUsageDetail_20' ) end [2025-03-10 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:51:26] Production.INFO: ==9093== Releasing lock... [2025-03-10 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:51:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:52:05 [end_date_ymd] => 2025-03-10 12:52:05 [RateCDR] => 1 ) [2025-03-10 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:52:05' and `end` < '2025-03-10 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-03-10 12:52:19] Production.INFO: count ==5156 [2025-03-10 12:52:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:52:05 - End Time 2025-03-10 12:52:05 [2025-03-10 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649640', 'tblTempUsageDetail_20' ) start [2025-03-10 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649640', 'tblTempUsageDetail_20' ) end [2025-03-10 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649640', 'tblTempVendorCDR_20' ) start [2025-03-10 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649640', 'tblTempVendorCDR_20' ) end [2025-03-10 12:52:21] Production.INFO: ProcessCDR(1,14649640,1,1,2) [2025-03-10 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649640', 'tblTempUsageDetail_20' ) start [2025-03-10 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649640', 'tblTempUsageDetail_20' ) end [2025-03-10 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:52:26] Production.INFO: ==9168== Releasing lock... [2025-03-10 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:52:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:53:05 [end_date_ymd] => 2025-03-10 12:53:05 [RateCDR] => 1 ) [2025-03-10 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:53:05' and `end` < '2025-03-10 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:53:18] Production.INFO: count ==5112 [2025-03-10 12:53:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:53:05 - End Time 2025-03-10 12:53:05 [2025-03-10 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649645', 'tblTempUsageDetail_20' ) start [2025-03-10 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649645', 'tblTempUsageDetail_20' ) end [2025-03-10 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649645', 'tblTempVendorCDR_20' ) start [2025-03-10 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649645', 'tblTempVendorCDR_20' ) end [2025-03-10 12:53:20] Production.INFO: ProcessCDR(1,14649645,1,1,2) [2025-03-10 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649645', 'tblTempUsageDetail_20' ) start [2025-03-10 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649645', 'tblTempUsageDetail_20' ) end [2025-03-10 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:53:26] Production.INFO: ==9240== Releasing lock... [2025-03-10 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:53:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:54:05 [end_date_ymd] => 2025-03-10 12:54:05 [RateCDR] => 1 ) [2025-03-10 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:54:05' and `end` < '2025-03-10 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:54:19] Production.INFO: count ==5088 [2025-03-10 12:54:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:54:05 - End Time 2025-03-10 12:54:05 [2025-03-10 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649650', 'tblTempUsageDetail_20' ) start [2025-03-10 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649650', 'tblTempUsageDetail_20' ) end [2025-03-10 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649650', 'tblTempVendorCDR_20' ) start [2025-03-10 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649650', 'tblTempVendorCDR_20' ) end [2025-03-10 12:54:21] Production.INFO: ProcessCDR(1,14649650,1,1,2) [2025-03-10 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649650', 'tblTempUsageDetail_20' ) start [2025-03-10 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649650', 'tblTempUsageDetail_20' ) end [2025-03-10 12:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:54:25] Production.INFO: ==9311== Releasing lock... [2025-03-10 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:54:25] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:55:05 [end_date_ymd] => 2025-03-10 12:55:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:55:05' and `end` < '2025-03-10 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-03-10 12:55:18] Production.INFO: count ==5054 [2025-03-10 12:55:20] Production.ERROR: pbx CDR StartTime 2025-03-10 09:55:05 - End Time 2025-03-10 12:55:05 [2025-03-10 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649655', 'tblTempUsageDetail_20' ) start [2025-03-10 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649655', 'tblTempUsageDetail_20' ) end [2025-03-10 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649655', 'tblTempVendorCDR_20' ) start [2025-03-10 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649655', 'tblTempVendorCDR_20' ) end [2025-03-10 12:55:21] Production.INFO: ProcessCDR(1,14649655,1,1,2) [2025-03-10 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649655', 'tblTempUsageDetail_20' ) start [2025-03-10 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649655', 'tblTempUsageDetail_20' ) end [2025-03-10 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:55:26] Production.INFO: ==9383== Releasing lock... [2025-03-10 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:55:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:56:06 [end_date_ymd] => 2025-03-10 12:56:06 [RateCDR] => 1 ) [2025-03-10 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:56:06' and `end` < '2025-03-10 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:56:19] Production.INFO: count ==5063 [2025-03-10 12:56:22] Production.ERROR: pbx CDR StartTime 2025-03-10 09:56:06 - End Time 2025-03-10 12:56:06 [2025-03-10 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649660', 'tblTempUsageDetail_20' ) start [2025-03-10 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649660', 'tblTempUsageDetail_20' ) end [2025-03-10 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649660', 'tblTempVendorCDR_20' ) start [2025-03-10 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649660', 'tblTempVendorCDR_20' ) end [2025-03-10 12:56:22] Production.INFO: ProcessCDR(1,14649660,1,1,2) [2025-03-10 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649660', 'tblTempUsageDetail_20' ) start [2025-03-10 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649660', 'tblTempUsageDetail_20' ) end [2025-03-10 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:56:27] Production.INFO: ==9455== Releasing lock... [2025-03-10 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:56:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:57:05 [end_date_ymd] => 2025-03-10 12:57:05 [RateCDR] => 1 ) [2025-03-10 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 09:57:05' and `end` < '2025-03-10 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 12:57:18] Production.INFO: count ==5082 [2025-03-10 12:57:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:57:05 - End Time 2025-03-10 12:57:05 [2025-03-10 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649665', 'tblTempUsageDetail_20' ) start [2025-03-10 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649665', 'tblTempUsageDetail_20' ) end [2025-03-10 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649665', 'tblTempVendorCDR_20' ) start [2025-03-10 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649665', 'tblTempVendorCDR_20' ) end [2025-03-10 12:57:21] Production.INFO: ProcessCDR(1,14649665,1,1,2) [2025-03-10 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649665', 'tblTempUsageDetail_20' ) start [2025-03-10 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649665', 'tblTempUsageDetail_20' ) end [2025-03-10 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:57:26] Production.INFO: ==9527== Releasing lock... [2025-03-10 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:57:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:58:06 [end_date_ymd] => 2025-03-10 12:58:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:58:06' and `end` < '2025-03-10 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-03-10 12:58:19] Production.INFO: count ==5086 [2025-03-10 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:58:06 - End Time 2025-03-10 12:58:06 [2025-03-10 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649670', 'tblTempUsageDetail_20' ) start [2025-03-10 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649670', 'tblTempUsageDetail_20' ) end [2025-03-10 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649670', 'tblTempVendorCDR_20' ) start [2025-03-10 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649670', 'tblTempVendorCDR_20' ) end [2025-03-10 12:58:21] Production.INFO: ProcessCDR(1,14649670,1,1,2) [2025-03-10 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649670', 'tblTempUsageDetail_20' ) start [2025-03-10 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649670', 'tblTempUsageDetail_20' ) end [2025-03-10 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:58:27] Production.INFO: ==9600== Releasing lock... [2025-03-10 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:58:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 09:59:05 [end_date_ymd] => 2025-03-10 12:59:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 09:59:05' and `end` < '2025-03-10 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-03-10 12:59:18] Production.INFO: count ==5099 [2025-03-10 12:59:21] Production.ERROR: pbx CDR StartTime 2025-03-10 09:59:05 - End Time 2025-03-10 12:59:05 [2025-03-10 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649675', 'tblTempUsageDetail_20' ) start [2025-03-10 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649675', 'tblTempUsageDetail_20' ) end [2025-03-10 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649675', 'tblTempVendorCDR_20' ) start [2025-03-10 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649675', 'tblTempVendorCDR_20' ) end [2025-03-10 12:59:21] Production.INFO: ProcessCDR(1,14649675,1,1,2) [2025-03-10 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649675', 'tblTempUsageDetail_20' ) start [2025-03-10 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649675', 'tblTempUsageDetail_20' ) end [2025-03-10 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 12:59:26] Production.INFO: ==9670== Releasing lock... [2025-03-10 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 12:59:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:00:06 [end_date_ymd] => 2025-03-10 13:00:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:00:06' and `end` < '2025-03-10 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-03-10 13:00:19] Production.INFO: count ==5094 [2025-03-10 13:00:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:00:06 - End Time 2025-03-10 13:00:06 [2025-03-10 13:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649681', 'tblTempUsageDetail_20' ) start [2025-03-10 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649681', 'tblTempUsageDetail_20' ) end [2025-03-10 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649681', 'tblTempVendorCDR_20' ) start [2025-03-10 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649681', 'tblTempVendorCDR_20' ) end [2025-03-10 13:00:21] Production.INFO: ProcessCDR(1,14649681,1,1,2) [2025-03-10 13:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649681', 'tblTempUsageDetail_20' ) start [2025-03-10 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649681', 'tblTempUsageDetail_20' ) end [2025-03-10 13:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:00:27] Production.INFO: ==9745== Releasing lock... [2025-03-10 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:00:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:01:05 [end_date_ymd] => 2025-03-10 13:01:05 [RateCDR] => 1 ) [2025-03-10 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:01:05' and `end` < '2025-03-10 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:01:18] Production.INFO: count ==5118 [2025-03-10 13:01:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:01:05 - End Time 2025-03-10 13:01:05 [2025-03-10 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649686', 'tblTempUsageDetail_20' ) start [2025-03-10 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649686', 'tblTempUsageDetail_20' ) end [2025-03-10 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649686', 'tblTempVendorCDR_20' ) start [2025-03-10 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649686', 'tblTempVendorCDR_20' ) end [2025-03-10 13:01:21] Production.INFO: ProcessCDR(1,14649686,1,1,2) [2025-03-10 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649686', 'tblTempUsageDetail_20' ) start [2025-03-10 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649686', 'tblTempUsageDetail_20' ) end [2025-03-10 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:01:26] Production.INFO: ==9874== Releasing lock... [2025-03-10 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:01:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:02:06 [end_date_ymd] => 2025-03-10 13:02:06 [RateCDR] => 1 ) [2025-03-10 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:02:06' and `end` < '2025-03-10 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:02:19] Production.INFO: count ==5113 [2025-03-10 13:02:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:02:06 - End Time 2025-03-10 13:02:06 [2025-03-10 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649691', 'tblTempUsageDetail_20' ) start [2025-03-10 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649691', 'tblTempUsageDetail_20' ) end [2025-03-10 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649691', 'tblTempVendorCDR_20' ) start [2025-03-10 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649691', 'tblTempVendorCDR_20' ) end [2025-03-10 13:02:21] Production.INFO: ProcessCDR(1,14649691,1,1,2) [2025-03-10 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649691', 'tblTempUsageDetail_20' ) start [2025-03-10 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649691', 'tblTempUsageDetail_20' ) end [2025-03-10 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:02:27] Production.INFO: ==9944== Releasing lock... [2025-03-10 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:02:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:03:05 [end_date_ymd] => 2025-03-10 13:03:05 [RateCDR] => 1 ) [2025-03-10 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:03:05' and `end` < '2025-03-10 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:03:18] Production.INFO: count ==5109 [2025-03-10 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:03:05 - End Time 2025-03-10 13:03:05 [2025-03-10 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649696', 'tblTempUsageDetail_20' ) start [2025-03-10 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649696', 'tblTempUsageDetail_20' ) end [2025-03-10 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649696', 'tblTempVendorCDR_20' ) start [2025-03-10 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649696', 'tblTempVendorCDR_20' ) end [2025-03-10 13:03:21] Production.INFO: ProcessCDR(1,14649696,1,1,2) [2025-03-10 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649696', 'tblTempUsageDetail_20' ) start [2025-03-10 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649696', 'tblTempUsageDetail_20' ) end [2025-03-10 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:03:26] Production.INFO: ==10017== Releasing lock... [2025-03-10 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:03:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:04:05 [end_date_ymd] => 2025-03-10 13:04:05 [RateCDR] => 1 ) [2025-03-10 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:04:05' and `end` < '2025-03-10 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:04:19] Production.INFO: count ==5101 [2025-03-10 13:04:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:04:05 - End Time 2025-03-10 13:04:05 [2025-03-10 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649701', 'tblTempUsageDetail_20' ) start [2025-03-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649701', 'tblTempUsageDetail_20' ) end [2025-03-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649701', 'tblTempVendorCDR_20' ) start [2025-03-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649701', 'tblTempVendorCDR_20' ) end [2025-03-10 13:04:21] Production.INFO: ProcessCDR(1,14649701,1,1,2) [2025-03-10 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649701', 'tblTempUsageDetail_20' ) start [2025-03-10 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649701', 'tblTempUsageDetail_20' ) end [2025-03-10 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:04:27] Production.INFO: ==10090== Releasing lock... [2025-03-10 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:04:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:05:06 [end_date_ymd] => 2025-03-10 13:05:06 [RateCDR] => 1 ) [2025-03-10 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:05:06' and `end` < '2025-03-10 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:05:19] Production.INFO: count ==5110 [2025-03-10 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:05:06 - End Time 2025-03-10 13:05:06 [2025-03-10 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649706', 'tblTempUsageDetail_20' ) start [2025-03-10 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649706', 'tblTempUsageDetail_20' ) end [2025-03-10 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649706', 'tblTempVendorCDR_20' ) start [2025-03-10 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649706', 'tblTempVendorCDR_20' ) end [2025-03-10 13:05:21] Production.INFO: ProcessCDR(1,14649706,1,1,2) [2025-03-10 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649706', 'tblTempUsageDetail_20' ) start [2025-03-10 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649706', 'tblTempUsageDetail_20' ) end [2025-03-10 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:05:27] Production.INFO: ==10160== Releasing lock... [2025-03-10 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:05:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:06:05 [end_date_ymd] => 2025-03-10 13:06:05 [RateCDR] => 1 ) [2025-03-10 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:06:05' and `end` < '2025-03-10 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:06:18] Production.INFO: count ==5109 [2025-03-10 13:06:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:06:05 - End Time 2025-03-10 13:06:05 [2025-03-10 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649711', 'tblTempUsageDetail_20' ) start [2025-03-10 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649711', 'tblTempUsageDetail_20' ) end [2025-03-10 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649711', 'tblTempVendorCDR_20' ) start [2025-03-10 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649711', 'tblTempVendorCDR_20' ) end [2025-03-10 13:06:21] Production.INFO: ProcessCDR(1,14649711,1,1,2) [2025-03-10 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649711', 'tblTempUsageDetail_20' ) start [2025-03-10 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649711', 'tblTempUsageDetail_20' ) end [2025-03-10 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:06:27] Production.INFO: ==10236== Releasing lock... [2025-03-10 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:06:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:07:06 [end_date_ymd] => 2025-03-10 13:07:06 [RateCDR] => 1 ) [2025-03-10 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:07:06' and `end` < '2025-03-10 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:07:19] Production.INFO: count ==5091 [2025-03-10 13:07:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:07:06 - End Time 2025-03-10 13:07:06 [2025-03-10 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649716', 'tblTempUsageDetail_20' ) start [2025-03-10 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649716', 'tblTempUsageDetail_20' ) end [2025-03-10 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649716', 'tblTempVendorCDR_20' ) start [2025-03-10 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649716', 'tblTempVendorCDR_20' ) end [2025-03-10 13:07:21] Production.INFO: ProcessCDR(1,14649716,1,1,2) [2025-03-10 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649716', 'tblTempUsageDetail_20' ) start [2025-03-10 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649716', 'tblTempUsageDetail_20' ) end [2025-03-10 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:07:27] Production.INFO: ==10313== Releasing lock... [2025-03-10 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:07:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:08:05 [end_date_ymd] => 2025-03-10 13:08:05 [RateCDR] => 1 ) [2025-03-10 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:08:05' and `end` < '2025-03-10 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:08:18] Production.INFO: count ==5112 [2025-03-10 13:08:20] Production.ERROR: pbx CDR StartTime 2025-03-10 10:08:05 - End Time 2025-03-10 13:08:05 [2025-03-10 13:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649721', 'tblTempUsageDetail_20' ) start [2025-03-10 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649721', 'tblTempUsageDetail_20' ) end [2025-03-10 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649721', 'tblTempVendorCDR_20' ) start [2025-03-10 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649721', 'tblTempVendorCDR_20' ) end [2025-03-10 13:08:20] Production.INFO: ProcessCDR(1,14649721,1,1,2) [2025-03-10 13:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649721', 'tblTempUsageDetail_20' ) start [2025-03-10 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649721', 'tblTempUsageDetail_20' ) end [2025-03-10 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:08:26] Production.INFO: ==10384== Releasing lock... [2025-03-10 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:08:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:09:06 [end_date_ymd] => 2025-03-10 13:09:06 [RateCDR] => 1 ) [2025-03-10 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:09:06' and `end` < '2025-03-10 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:09:19] Production.INFO: count ==5139 [2025-03-10 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:09:06 - End Time 2025-03-10 13:09:06 [2025-03-10 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649726', 'tblTempUsageDetail_20' ) start [2025-03-10 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649726', 'tblTempUsageDetail_20' ) end [2025-03-10 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649726', 'tblTempVendorCDR_20' ) start [2025-03-10 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649726', 'tblTempVendorCDR_20' ) end [2025-03-10 13:09:21] Production.INFO: ProcessCDR(1,14649726,1,1,2) [2025-03-10 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649726', 'tblTempUsageDetail_20' ) start [2025-03-10 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649726', 'tblTempUsageDetail_20' ) end [2025-03-10 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:09:27] Production.INFO: ==10459== Releasing lock... [2025-03-10 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:09:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:10:07 [end_date_ymd] => 2025-03-10 13:10:07 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:10:07' and `end` < '2025-03-10 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-03-10 13:10:20] Production.INFO: count ==5149 [2025-03-10 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-10 10:10:07 - End Time 2025-03-10 13:10:07 [2025-03-10 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649732', 'tblTempUsageDetail_20' ) start [2025-03-10 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649732', 'tblTempUsageDetail_20' ) end [2025-03-10 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649732', 'tblTempVendorCDR_20' ) start [2025-03-10 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649732', 'tblTempVendorCDR_20' ) end [2025-03-10 13:10:22] Production.INFO: ProcessCDR(1,14649732,1,1,2) [2025-03-10 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649732', 'tblTempUsageDetail_20' ) start [2025-03-10 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649732', 'tblTempUsageDetail_20' ) end [2025-03-10 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:10:28] Production.INFO: ==10534== Releasing lock... [2025-03-10 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:10:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:11:06 [end_date_ymd] => 2025-03-10 13:11:06 [RateCDR] => 1 ) [2025-03-10 13:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:11:06' and `end` < '2025-03-10 13:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:11:19] Production.INFO: count ==5163 [2025-03-10 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:11:06 - End Time 2025-03-10 13:11:06 [2025-03-10 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649737', 'tblTempUsageDetail_20' ) start [2025-03-10 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649737', 'tblTempUsageDetail_20' ) end [2025-03-10 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649737', 'tblTempVendorCDR_20' ) start [2025-03-10 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649737', 'tblTempVendorCDR_20' ) end [2025-03-10 13:11:21] Production.INFO: ProcessCDR(1,14649737,1,1,2) [2025-03-10 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649737', 'tblTempUsageDetail_20' ) start [2025-03-10 13:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649737', 'tblTempUsageDetail_20' ) end [2025-03-10 13:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:11:25] Production.INFO: ==10614== Releasing lock... [2025-03-10 13:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:11:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:12:05 [end_date_ymd] => 2025-03-10 13:12:05 [RateCDR] => 1 ) [2025-03-10 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:12:05' and `end` < '2025-03-10 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:12:19] Production.INFO: count ==5172 [2025-03-10 13:12:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:12:05 - End Time 2025-03-10 13:12:05 [2025-03-10 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649742', 'tblTempUsageDetail_20' ) start [2025-03-10 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649742', 'tblTempUsageDetail_20' ) end [2025-03-10 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649742', 'tblTempVendorCDR_20' ) start [2025-03-10 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649742', 'tblTempVendorCDR_20' ) end [2025-03-10 13:12:21] Production.INFO: ProcessCDR(1,14649742,1,1,2) [2025-03-10 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649742', 'tblTempUsageDetail_20' ) start [2025-03-10 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649742', 'tblTempUsageDetail_20' ) end [2025-03-10 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:12:27] Production.INFO: ==10683== Releasing lock... [2025-03-10 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:12:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:13:06 [end_date_ymd] => 2025-03-10 13:13:06 [RateCDR] => 1 ) [2025-03-10 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:13:06' and `end` < '2025-03-10 13:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:13:19] Production.INFO: count ==5168 [2025-03-10 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:13:06 - End Time 2025-03-10 13:13:06 [2025-03-10 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649747', 'tblTempUsageDetail_20' ) start [2025-03-10 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649747', 'tblTempUsageDetail_20' ) end [2025-03-10 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649747', 'tblTempVendorCDR_20' ) start [2025-03-10 13:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649747', 'tblTempVendorCDR_20' ) end [2025-03-10 13:13:22] Production.INFO: ProcessCDR(1,14649747,1,1,2) [2025-03-10 13:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649747', 'tblTempUsageDetail_20' ) start [2025-03-10 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649747', 'tblTempUsageDetail_20' ) end [2025-03-10 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:13:27] Production.INFO: ==10754== Releasing lock... [2025-03-10 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:13:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:14:05 [end_date_ymd] => 2025-03-10 13:14:05 [RateCDR] => 1 ) [2025-03-10 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:14:05' and `end` < '2025-03-10 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:14:18] Production.INFO: count ==5152 [2025-03-10 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:14:05 - End Time 2025-03-10 13:14:05 [2025-03-10 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649752', 'tblTempUsageDetail_20' ) start [2025-03-10 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649752', 'tblTempUsageDetail_20' ) end [2025-03-10 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649752', 'tblTempVendorCDR_20' ) start [2025-03-10 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649752', 'tblTempVendorCDR_20' ) end [2025-03-10 13:14:21] Production.INFO: ProcessCDR(1,14649752,1,1,2) [2025-03-10 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649752', 'tblTempUsageDetail_20' ) start [2025-03-10 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649752', 'tblTempUsageDetail_20' ) end [2025-03-10 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:14:26] Production.INFO: ==10831== Releasing lock... [2025-03-10 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:14:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:15:05 [end_date_ymd] => 2025-03-10 13:15:05 [RateCDR] => 1 ) [2025-03-10 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:15:05' and `end` < '2025-03-10 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:15:18] Production.INFO: count ==5166 [2025-03-10 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:15:05 - End Time 2025-03-10 13:15:05 [2025-03-10 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649757', 'tblTempUsageDetail_20' ) start [2025-03-10 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649757', 'tblTempUsageDetail_20' ) end [2025-03-10 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649757', 'tblTempVendorCDR_20' ) start [2025-03-10 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649757', 'tblTempVendorCDR_20' ) end [2025-03-10 13:15:21] Production.INFO: ProcessCDR(1,14649757,1,1,2) [2025-03-10 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649757', 'tblTempUsageDetail_20' ) start [2025-03-10 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649757', 'tblTempUsageDetail_20' ) end [2025-03-10 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:15:26] Production.INFO: ==10904== Releasing lock... [2025-03-10 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:15:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:16:05 [end_date_ymd] => 2025-03-10 13:16:05 [RateCDR] => 1 ) [2025-03-10 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:16:05' and `end` < '2025-03-10 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:16:18] Production.INFO: count ==5171 [2025-03-10 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:16:05 - End Time 2025-03-10 13:16:05 [2025-03-10 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649762', 'tblTempUsageDetail_20' ) start [2025-03-10 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649762', 'tblTempUsageDetail_20' ) end [2025-03-10 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649762', 'tblTempVendorCDR_20' ) start [2025-03-10 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649762', 'tblTempVendorCDR_20' ) end [2025-03-10 13:16:21] Production.INFO: ProcessCDR(1,14649762,1,1,2) [2025-03-10 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649762', 'tblTempUsageDetail_20' ) start [2025-03-10 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649762', 'tblTempUsageDetail_20' ) end [2025-03-10 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:16:27] Production.INFO: ==10978== Releasing lock... [2025-03-10 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:16:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:17:06 [end_date_ymd] => 2025-03-10 13:17:06 [RateCDR] => 1 ) [2025-03-10 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:17:06' and `end` < '2025-03-10 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:17:20] Production.INFO: count ==5170 [2025-03-10 13:17:22] Production.ERROR: pbx CDR StartTime 2025-03-10 10:17:06 - End Time 2025-03-10 13:17:06 [2025-03-10 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649767', 'tblTempUsageDetail_20' ) start [2025-03-10 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649767', 'tblTempUsageDetail_20' ) end [2025-03-10 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649767', 'tblTempVendorCDR_20' ) start [2025-03-10 13:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649767', 'tblTempVendorCDR_20' ) end [2025-03-10 13:17:23] Production.INFO: ProcessCDR(1,14649767,1,1,2) [2025-03-10 13:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649767', 'tblTempUsageDetail_20' ) start [2025-03-10 13:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649767', 'tblTempUsageDetail_20' ) end [2025-03-10 13:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:17:28] Production.INFO: ==11091== Releasing lock... [2025-03-10 13:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:17:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:18:06 [end_date_ymd] => 2025-03-10 13:18:06 [RateCDR] => 1 ) [2025-03-10 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:18:06' and `end` < '2025-03-10 13:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:18:19] Production.INFO: count ==5167 [2025-03-10 13:18:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:18:06 - End Time 2025-03-10 13:18:06 [2025-03-10 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649772', 'tblTempUsageDetail_20' ) start [2025-03-10 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649772', 'tblTempUsageDetail_20' ) end [2025-03-10 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649772', 'tblTempVendorCDR_20' ) start [2025-03-10 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649772', 'tblTempVendorCDR_20' ) end [2025-03-10 13:18:21] Production.INFO: ProcessCDR(1,14649772,1,1,2) [2025-03-10 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649772', 'tblTempUsageDetail_20' ) start [2025-03-10 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649772', 'tblTempUsageDetail_20' ) end [2025-03-10 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:18:27] Production.INFO: ==11171== Releasing lock... [2025-03-10 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:18:27] Production.INFO: 67 MB #Memory Used# [2025-03-10 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:19:06 [end_date_ymd] => 2025-03-10 13:19:06 [RateCDR] => 1 ) [2025-03-10 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:19:06' and `end` < '2025-03-10 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:19:19] Production.INFO: count ==5169 [2025-03-10 13:19:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:19:06 - End Time 2025-03-10 13:19:06 [2025-03-10 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649777', 'tblTempUsageDetail_20' ) start [2025-03-10 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649777', 'tblTempUsageDetail_20' ) end [2025-03-10 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649777', 'tblTempVendorCDR_20' ) start [2025-03-10 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649777', 'tblTempVendorCDR_20' ) end [2025-03-10 13:19:22] Production.INFO: ProcessCDR(1,14649777,1,1,2) [2025-03-10 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649777', 'tblTempUsageDetail_20' ) start [2025-03-10 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649777', 'tblTempUsageDetail_20' ) end [2025-03-10 13:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:19:28] Production.INFO: ==11243== Releasing lock... [2025-03-10 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:19:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:20:06 [end_date_ymd] => 2025-03-10 13:20:06 [RateCDR] => 1 ) [2025-03-10 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:20:06' and `end` < '2025-03-10 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:20:19] Production.INFO: count ==5160 [2025-03-10 13:20:22] Production.ERROR: pbx CDR StartTime 2025-03-10 10:20:06 - End Time 2025-03-10 13:20:06 [2025-03-10 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649783', 'tblTempUsageDetail_20' ) start [2025-03-10 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649783', 'tblTempUsageDetail_20' ) end [2025-03-10 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649783', 'tblTempVendorCDR_20' ) start [2025-03-10 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649783', 'tblTempVendorCDR_20' ) end [2025-03-10 13:20:22] Production.INFO: ProcessCDR(1,14649783,1,1,2) [2025-03-10 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649783', 'tblTempUsageDetail_20' ) start [2025-03-10 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649783', 'tblTempUsageDetail_20' ) end [2025-03-10 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:20:28] Production.INFO: ==11315== Releasing lock... [2025-03-10 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:20:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:21:06 [end_date_ymd] => 2025-03-10 13:21:06 [RateCDR] => 1 ) [2025-03-10 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:21:06' and `end` < '2025-03-10 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:21:19] Production.INFO: count ==5201 [2025-03-10 13:21:22] Production.ERROR: pbx CDR StartTime 2025-03-10 10:21:06 - End Time 2025-03-10 13:21:06 [2025-03-10 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649788', 'tblTempUsageDetail_20' ) start [2025-03-10 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649788', 'tblTempUsageDetail_20' ) end [2025-03-10 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649788', 'tblTempVendorCDR_20' ) start [2025-03-10 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649788', 'tblTempVendorCDR_20' ) end [2025-03-10 13:21:22] Production.INFO: ProcessCDR(1,14649788,1,1,2) [2025-03-10 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649788', 'tblTempUsageDetail_20' ) start [2025-03-10 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649788', 'tblTempUsageDetail_20' ) end [2025-03-10 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:21:28] Production.INFO: ==11388== Releasing lock... [2025-03-10 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:21:28] Production.INFO: 67 MB #Memory Used# [2025-03-10 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:22:05 [end_date_ymd] => 2025-03-10 13:22:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:22:05' and `end` < '2025-03-10 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-03-10 13:22:18] Production.INFO: count ==5207 [2025-03-10 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:22:05 - End Time 2025-03-10 13:22:05 [2025-03-10 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649793', 'tblTempUsageDetail_20' ) start [2025-03-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649793', 'tblTempUsageDetail_20' ) end [2025-03-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649793', 'tblTempVendorCDR_20' ) start [2025-03-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649793', 'tblTempVendorCDR_20' ) end [2025-03-10 13:22:21] Production.INFO: ProcessCDR(1,14649793,1,1,2) [2025-03-10 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649793', 'tblTempUsageDetail_20' ) start [2025-03-10 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649793', 'tblTempUsageDetail_20' ) end [2025-03-10 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:22:27] Production.INFO: ==11457== Releasing lock... [2025-03-10 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:22:27] Production.INFO: 67 MB #Memory Used# [2025-03-10 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:23:06 [end_date_ymd] => 2025-03-10 13:23:06 [RateCDR] => 1 ) [2025-03-10 13:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:23:06' and `end` < '2025-03-10 13:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:23:19] Production.INFO: count ==5210 [2025-03-10 13:23:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:23:06 - End Time 2025-03-10 13:23:06 [2025-03-10 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649798', 'tblTempUsageDetail_20' ) start [2025-03-10 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649798', 'tblTempUsageDetail_20' ) end [2025-03-10 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649798', 'tblTempVendorCDR_20' ) start [2025-03-10 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649798', 'tblTempVendorCDR_20' ) end [2025-03-10 13:23:21] Production.INFO: ProcessCDR(1,14649798,1,1,2) [2025-03-10 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649798', 'tblTempUsageDetail_20' ) start [2025-03-10 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649798', 'tblTempUsageDetail_20' ) end [2025-03-10 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:23:27] Production.INFO: ==11531== Releasing lock... [2025-03-10 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:23:27] Production.INFO: 67 MB #Memory Used# [2025-03-10 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:24:05 [end_date_ymd] => 2025-03-10 13:24:05 [RateCDR] => 1 ) [2025-03-10 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:24:05' and `end` < '2025-03-10 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:24:19] Production.INFO: count ==5214 [2025-03-10 13:24:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:24:05 - End Time 2025-03-10 13:24:05 [2025-03-10 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649803', 'tblTempUsageDetail_20' ) start [2025-03-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649803', 'tblTempUsageDetail_20' ) end [2025-03-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649803', 'tblTempVendorCDR_20' ) start [2025-03-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649803', 'tblTempVendorCDR_20' ) end [2025-03-10 13:24:21] Production.INFO: ProcessCDR(1,14649803,1,1,2) [2025-03-10 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649803', 'tblTempUsageDetail_20' ) start [2025-03-10 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649803', 'tblTempUsageDetail_20' ) end [2025-03-10 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:24:27] Production.INFO: ==11600== Releasing lock... [2025-03-10 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:24:27] Production.INFO: 67 MB #Memory Used# [2025-03-10 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:25:06 [end_date_ymd] => 2025-03-10 13:25:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:25:06' and `end` < '2025-03-10 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-03-10 13:25:19] Production.INFO: count ==5246 [2025-03-10 13:25:22] Production.ERROR: pbx CDR StartTime 2025-03-10 10:25:06 - End Time 2025-03-10 13:25:06 [2025-03-10 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649808', 'tblTempUsageDetail_20' ) start [2025-03-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649808', 'tblTempUsageDetail_20' ) end [2025-03-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649808', 'tblTempVendorCDR_20' ) start [2025-03-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649808', 'tblTempVendorCDR_20' ) end [2025-03-10 13:25:22] Production.INFO: ProcessCDR(1,14649808,1,1,2) [2025-03-10 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649808', 'tblTempUsageDetail_20' ) start [2025-03-10 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649808', 'tblTempUsageDetail_20' ) end [2025-03-10 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:25:28] Production.INFO: ==11671== Releasing lock... [2025-03-10 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:25:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:26:05 [end_date_ymd] => 2025-03-10 13:26:05 [RateCDR] => 1 ) [2025-03-10 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:26:05' and `end` < '2025-03-10 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:26:18] Production.INFO: count ==5257 [2025-03-10 13:26:20] Production.ERROR: pbx CDR StartTime 2025-03-10 10:26:05 - End Time 2025-03-10 13:26:05 [2025-03-10 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649813', 'tblTempUsageDetail_20' ) start [2025-03-10 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649813', 'tblTempUsageDetail_20' ) end [2025-03-10 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649813', 'tblTempVendorCDR_20' ) start [2025-03-10 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649813', 'tblTempVendorCDR_20' ) end [2025-03-10 13:26:21] Production.INFO: ProcessCDR(1,14649813,1,1,2) [2025-03-10 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649813', 'tblTempUsageDetail_20' ) start [2025-03-10 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649813', 'tblTempUsageDetail_20' ) end [2025-03-10 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:26:26] Production.INFO: ==11744== Releasing lock... [2025-03-10 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:26:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:27:06 [end_date_ymd] => 2025-03-10 13:27:06 [RateCDR] => 1 ) [2025-03-10 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:27:06' and `end` < '2025-03-10 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:27:19] Production.INFO: count ==5238 [2025-03-10 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:27:06 - End Time 2025-03-10 13:27:06 [2025-03-10 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649818', 'tblTempUsageDetail_20' ) start [2025-03-10 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649818', 'tblTempUsageDetail_20' ) end [2025-03-10 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649818', 'tblTempVendorCDR_20' ) start [2025-03-10 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649818', 'tblTempVendorCDR_20' ) end [2025-03-10 13:27:21] Production.INFO: ProcessCDR(1,14649818,1,1,2) [2025-03-10 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649818', 'tblTempUsageDetail_20' ) start [2025-03-10 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649818', 'tblTempUsageDetail_20' ) end [2025-03-10 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:27:27] Production.INFO: ==11815== Releasing lock... [2025-03-10 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:27:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:28:05 [end_date_ymd] => 2025-03-10 13:28:05 [RateCDR] => 1 ) [2025-03-10 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:28:05' and `end` < '2025-03-10 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:28:18] Production.INFO: count ==5248 [2025-03-10 13:28:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:28:05 - End Time 2025-03-10 13:28:05 [2025-03-10 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649823', 'tblTempUsageDetail_20' ) start [2025-03-10 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649823', 'tblTempUsageDetail_20' ) end [2025-03-10 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649823', 'tblTempVendorCDR_20' ) start [2025-03-10 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649823', 'tblTempVendorCDR_20' ) end [2025-03-10 13:28:21] Production.INFO: ProcessCDR(1,14649823,1,1,2) [2025-03-10 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649823', 'tblTempUsageDetail_20' ) start [2025-03-10 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649823', 'tblTempUsageDetail_20' ) end [2025-03-10 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:28:27] Production.INFO: ==11890== Releasing lock... [2025-03-10 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:28:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:29:06 [end_date_ymd] => 2025-03-10 13:29:06 [RateCDR] => 1 ) [2025-03-10 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:29:06' and `end` < '2025-03-10 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:29:19] Production.INFO: count ==5229 [2025-03-10 13:29:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:29:06 - End Time 2025-03-10 13:29:06 [2025-03-10 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649828', 'tblTempUsageDetail_20' ) start [2025-03-10 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649828', 'tblTempUsageDetail_20' ) end [2025-03-10 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649828', 'tblTempVendorCDR_20' ) start [2025-03-10 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649828', 'tblTempVendorCDR_20' ) end [2025-03-10 13:29:21] Production.INFO: ProcessCDR(1,14649828,1,1,2) [2025-03-10 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649828', 'tblTempUsageDetail_20' ) start [2025-03-10 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649828', 'tblTempUsageDetail_20' ) end [2025-03-10 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:29:25] Production.INFO: ==11961== Releasing lock... [2025-03-10 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:29:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:30:06 [end_date_ymd] => 2025-03-10 13:30:06 [RateCDR] => 1 ) [2025-03-10 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:30:06' and `end` < '2025-03-10 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:30:19] Production.INFO: count ==5211 [2025-03-10 13:30:22] Production.ERROR: pbx CDR StartTime 2025-03-10 10:30:06 - End Time 2025-03-10 13:30:06 [2025-03-10 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649833', 'tblTempUsageDetail_20' ) start [2025-03-10 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649833', 'tblTempUsageDetail_20' ) end [2025-03-10 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649833', 'tblTempVendorCDR_20' ) start [2025-03-10 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649833', 'tblTempVendorCDR_20' ) end [2025-03-10 13:30:22] Production.INFO: ProcessCDR(1,14649833,1,1,2) [2025-03-10 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649833', 'tblTempUsageDetail_20' ) start [2025-03-10 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649833', 'tblTempUsageDetail_20' ) end [2025-03-10 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:30:28] Production.INFO: ==12035== Releasing lock... [2025-03-10 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:30:28] Production.INFO: 67 MB #Memory Used# [2025-03-10 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:31:06 [end_date_ymd] => 2025-03-10 13:31:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:31:06' and `end` < '2025-03-10 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-03-10 13:31:19] Production.INFO: count ==5204 [2025-03-10 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:31:06 - End Time 2025-03-10 13:31:06 [2025-03-10 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649839', 'tblTempUsageDetail_20' ) start [2025-03-10 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649839', 'tblTempUsageDetail_20' ) end [2025-03-10 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649839', 'tblTempVendorCDR_20' ) start [2025-03-10 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649839', 'tblTempVendorCDR_20' ) end [2025-03-10 13:31:22] Production.INFO: ProcessCDR(1,14649839,1,1,2) [2025-03-10 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649839', 'tblTempUsageDetail_20' ) start [2025-03-10 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649839', 'tblTempUsageDetail_20' ) end [2025-03-10 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:31:27] Production.INFO: ==12115== Releasing lock... [2025-03-10 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:31:27] Production.INFO: 67 MB #Memory Used# [2025-03-10 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:32:06 [end_date_ymd] => 2025-03-10 13:32:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:32:06' and `end` < '2025-03-10 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-03-10 13:32:19] Production.INFO: count ==5239 [2025-03-10 13:32:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:32:06 - End Time 2025-03-10 13:32:06 [2025-03-10 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649844', 'tblTempUsageDetail_20' ) start [2025-03-10 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649844', 'tblTempUsageDetail_20' ) end [2025-03-10 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649844', 'tblTempVendorCDR_20' ) start [2025-03-10 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649844', 'tblTempVendorCDR_20' ) end [2025-03-10 13:32:22] Production.INFO: ProcessCDR(1,14649844,1,1,2) [2025-03-10 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649844', 'tblTempUsageDetail_20' ) start [2025-03-10 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649844', 'tblTempUsageDetail_20' ) end [2025-03-10 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:32:27] Production.INFO: ==12223== Releasing lock... [2025-03-10 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:32:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:33:06 [end_date_ymd] => 2025-03-10 13:33:06 [RateCDR] => 1 ) [2025-03-10 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:33:06' and `end` < '2025-03-10 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:33:19] Production.INFO: count ==5245 [2025-03-10 13:33:22] Production.ERROR: pbx CDR StartTime 2025-03-10 10:33:06 - End Time 2025-03-10 13:33:06 [2025-03-10 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649849', 'tblTempUsageDetail_20' ) start [2025-03-10 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649849', 'tblTempUsageDetail_20' ) end [2025-03-10 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649849', 'tblTempVendorCDR_20' ) start [2025-03-10 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649849', 'tblTempVendorCDR_20' ) end [2025-03-10 13:33:22] Production.INFO: ProcessCDR(1,14649849,1,1,2) [2025-03-10 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649849', 'tblTempUsageDetail_20' ) start [2025-03-10 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649849', 'tblTempUsageDetail_20' ) end [2025-03-10 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:33:26] Production.INFO: ==12294== Releasing lock... [2025-03-10 13:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:33:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:34:05 [end_date_ymd] => 2025-03-10 13:34:05 [RateCDR] => 1 ) [2025-03-10 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:34:05' and `end` < '2025-03-10 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:34:19] Production.INFO: count ==5245 [2025-03-10 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:34:05 - End Time 2025-03-10 13:34:05 [2025-03-10 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649854', 'tblTempUsageDetail_20' ) start [2025-03-10 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649854', 'tblTempUsageDetail_20' ) end [2025-03-10 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649854', 'tblTempVendorCDR_20' ) start [2025-03-10 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649854', 'tblTempVendorCDR_20' ) end [2025-03-10 13:34:21] Production.INFO: ProcessCDR(1,14649854,1,1,2) [2025-03-10 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649854', 'tblTempUsageDetail_20' ) start [2025-03-10 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649854', 'tblTempUsageDetail_20' ) end [2025-03-10 13:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:34:25] Production.INFO: ==12368== Releasing lock... [2025-03-10 13:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:34:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:35:05 [end_date_ymd] => 2025-03-10 13:35:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:35:05' and `end` < '2025-03-10 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-03-10 13:35:18] Production.INFO: count ==5248 [2025-03-10 13:35:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:35:05 - End Time 2025-03-10 13:35:05 [2025-03-10 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649859', 'tblTempUsageDetail_20' ) start [2025-03-10 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649859', 'tblTempUsageDetail_20' ) end [2025-03-10 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649859', 'tblTempVendorCDR_20' ) start [2025-03-10 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649859', 'tblTempVendorCDR_20' ) end [2025-03-10 13:35:21] Production.INFO: ProcessCDR(1,14649859,1,1,2) [2025-03-10 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649859', 'tblTempUsageDetail_20' ) start [2025-03-10 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649859', 'tblTempUsageDetail_20' ) end [2025-03-10 13:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:35:26] Production.INFO: ==12438== Releasing lock... [2025-03-10 13:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:35:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:36:05 [end_date_ymd] => 2025-03-10 13:36:05 [RateCDR] => 1 ) [2025-03-10 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:36:05' and `end` < '2025-03-10 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:36:18] Production.INFO: count ==5252 [2025-03-10 13:36:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:36:05 - End Time 2025-03-10 13:36:05 [2025-03-10 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649864', 'tblTempUsageDetail_20' ) start [2025-03-10 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649864', 'tblTempUsageDetail_20' ) end [2025-03-10 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649864', 'tblTempVendorCDR_20' ) start [2025-03-10 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649864', 'tblTempVendorCDR_20' ) end [2025-03-10 13:36:21] Production.INFO: ProcessCDR(1,14649864,1,1,2) [2025-03-10 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649864', 'tblTempUsageDetail_20' ) start [2025-03-10 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649864', 'tblTempUsageDetail_20' ) end [2025-03-10 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:36:26] Production.INFO: ==12513== Releasing lock... [2025-03-10 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:36:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:37:05 [end_date_ymd] => 2025-03-10 13:37:05 [RateCDR] => 1 ) [2025-03-10 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:37:05' and `end` < '2025-03-10 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:37:18] Production.INFO: count ==5251 [2025-03-10 13:37:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:37:05 - End Time 2025-03-10 13:37:05 [2025-03-10 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649869', 'tblTempUsageDetail_20' ) start [2025-03-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649869', 'tblTempUsageDetail_20' ) end [2025-03-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649869', 'tblTempVendorCDR_20' ) start [2025-03-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649869', 'tblTempVendorCDR_20' ) end [2025-03-10 13:37:21] Production.INFO: ProcessCDR(1,14649869,1,1,2) [2025-03-10 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649869', 'tblTempUsageDetail_20' ) start [2025-03-10 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649869', 'tblTempUsageDetail_20' ) end [2025-03-10 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:37:27] Production.INFO: ==12586== Releasing lock... [2025-03-10 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:37:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:38:06 [end_date_ymd] => 2025-03-10 13:38:06 [RateCDR] => 1 ) [2025-03-10 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:38:06' and `end` < '2025-03-10 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:38:19] Production.INFO: count ==5250 [2025-03-10 13:38:22] Production.ERROR: pbx CDR StartTime 2025-03-10 10:38:06 - End Time 2025-03-10 13:38:06 [2025-03-10 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649874', 'tblTempUsageDetail_20' ) start [2025-03-10 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649874', 'tblTempUsageDetail_20' ) end [2025-03-10 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649874', 'tblTempVendorCDR_20' ) start [2025-03-10 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649874', 'tblTempVendorCDR_20' ) end [2025-03-10 13:38:22] Production.INFO: ProcessCDR(1,14649874,1,1,2) [2025-03-10 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649874', 'tblTempUsageDetail_20' ) start [2025-03-10 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649874', 'tblTempUsageDetail_20' ) end [2025-03-10 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:38:27] Production.INFO: ==12660== Releasing lock... [2025-03-10 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:38:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:39:05 [end_date_ymd] => 2025-03-10 13:39:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:39:05' and `end` < '2025-03-10 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-03-10 13:39:17] Production.INFO: count ==5252 [2025-03-10 13:39:20] Production.ERROR: pbx CDR StartTime 2025-03-10 10:39:05 - End Time 2025-03-10 13:39:05 [2025-03-10 13:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649876', 'tblTempUsageDetail_20' ) start [2025-03-10 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649876', 'tblTempUsageDetail_20' ) end [2025-03-10 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649876', 'tblTempVendorCDR_20' ) start [2025-03-10 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649876', 'tblTempVendorCDR_20' ) end [2025-03-10 13:39:20] Production.INFO: ProcessCDR(1,14649876,1,1,2) [2025-03-10 13:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649876', 'tblTempUsageDetail_20' ) start [2025-03-10 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649876', 'tblTempUsageDetail_20' ) end [2025-03-10 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:39:26] Production.INFO: ==12730== Releasing lock... [2025-03-10 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:39:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:40:07 [end_date_ymd] => 2025-03-10 13:40:07 [RateCDR] => 1 ) [2025-03-10 13: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-03-10 10:40:07' and `end` < '2025-03-10 13: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-03-10 13:40:20] Production.INFO: count ==5247 [2025-03-10 13:40:22] Production.ERROR: pbx CDR StartTime 2025-03-10 10:40:07 - End Time 2025-03-10 13:40:07 [2025-03-10 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649885', 'tblTempUsageDetail_20' ) start [2025-03-10 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649885', 'tblTempUsageDetail_20' ) end [2025-03-10 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649885', 'tblTempVendorCDR_20' ) start [2025-03-10 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649885', 'tblTempVendorCDR_20' ) end [2025-03-10 13:40:22] Production.INFO: ProcessCDR(1,14649885,1,1,2) [2025-03-10 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649885', 'tblTempUsageDetail_20' ) start [2025-03-10 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649885', 'tblTempUsageDetail_20' ) end [2025-03-10 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:40:26] Production.INFO: ==12804== Releasing lock... [2025-03-10 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:40:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:41:05 [end_date_ymd] => 2025-03-10 13:41:05 [RateCDR] => 1 ) [2025-03-10 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:41:05' and `end` < '2025-03-10 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:41:18] Production.INFO: count ==5222 [2025-03-10 13:41:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:41:05 - End Time 2025-03-10 13:41:05 [2025-03-10 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649890', 'tblTempUsageDetail_20' ) start [2025-03-10 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649890', 'tblTempUsageDetail_20' ) end [2025-03-10 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649890', 'tblTempVendorCDR_20' ) start [2025-03-10 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649890', 'tblTempVendorCDR_20' ) end [2025-03-10 13:41:21] Production.INFO: ProcessCDR(1,14649890,1,1,2) [2025-03-10 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649890', 'tblTempUsageDetail_20' ) start [2025-03-10 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649890', 'tblTempUsageDetail_20' ) end [2025-03-10 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:41:26] Production.INFO: ==12882== Releasing lock... [2025-03-10 13:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:41:26] Production.INFO: 67 MB #Memory Used# [2025-03-10 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:42:06 [end_date_ymd] => 2025-03-10 13:42:06 [RateCDR] => 1 ) [2025-03-10 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:42:06' and `end` < '2025-03-10 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:42:19] Production.INFO: count ==5195 [2025-03-10 13:42:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:42:06 - End Time 2025-03-10 13:42:06 [2025-03-10 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649895', 'tblTempUsageDetail_20' ) start [2025-03-10 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649895', 'tblTempUsageDetail_20' ) end [2025-03-10 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649895', 'tblTempVendorCDR_20' ) start [2025-03-10 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649895', 'tblTempVendorCDR_20' ) end [2025-03-10 13:42:22] Production.INFO: ProcessCDR(1,14649895,1,1,2) [2025-03-10 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649895', 'tblTempUsageDetail_20' ) start [2025-03-10 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649895', 'tblTempUsageDetail_20' ) end [2025-03-10 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:42:27] Production.INFO: ==12962== Releasing lock... [2025-03-10 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:42:27] Production.INFO: 67 MB #Memory Used# [2025-03-10 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:43:05 [end_date_ymd] => 2025-03-10 13:43:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:43:05' and `end` < '2025-03-10 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-03-10 13:43:18] Production.INFO: count ==5181 [2025-03-10 13:43:20] Production.ERROR: pbx CDR StartTime 2025-03-10 10:43:05 - End Time 2025-03-10 13:43:05 [2025-03-10 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649900', 'tblTempUsageDetail_20' ) start [2025-03-10 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649900', 'tblTempUsageDetail_20' ) end [2025-03-10 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649900', 'tblTempVendorCDR_20' ) start [2025-03-10 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649900', 'tblTempVendorCDR_20' ) end [2025-03-10 13:43:20] Production.INFO: ProcessCDR(1,14649900,1,1,2) [2025-03-10 13:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649900', 'tblTempUsageDetail_20' ) start [2025-03-10 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649900', 'tblTempUsageDetail_20' ) end [2025-03-10 13:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:43:25] Production.INFO: ==13036== Releasing lock... [2025-03-10 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:43:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:44:05 [end_date_ymd] => 2025-03-10 13:44:05 [RateCDR] => 1 ) [2025-03-10 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:44:05' and `end` < '2025-03-10 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-03-10 13:44:18] Production.INFO: count ==5158 [2025-03-10 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:44:05 - End Time 2025-03-10 13:44:05 [2025-03-10 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649905', 'tblTempUsageDetail_20' ) start [2025-03-10 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649905', 'tblTempUsageDetail_20' ) end [2025-03-10 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649905', 'tblTempVendorCDR_20' ) start [2025-03-10 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649905', 'tblTempVendorCDR_20' ) end [2025-03-10 13:44:21] Production.INFO: ProcessCDR(1,14649905,1,1,2) [2025-03-10 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649905', 'tblTempUsageDetail_20' ) start [2025-03-10 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649905', 'tblTempUsageDetail_20' ) end [2025-03-10 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:44:26] Production.INFO: ==13113== Releasing lock... [2025-03-10 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:44:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:45:05 [end_date_ymd] => 2025-03-10 13:45:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:45:05' and `end` < '2025-03-10 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-03-10 13:45:18] Production.INFO: count ==5143 [2025-03-10 13:45:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:45:05 - End Time 2025-03-10 13:45:05 [2025-03-10 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649910', 'tblTempUsageDetail_20' ) start [2025-03-10 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649910', 'tblTempUsageDetail_20' ) end [2025-03-10 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649910', 'tblTempVendorCDR_20' ) start [2025-03-10 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649910', 'tblTempVendorCDR_20' ) end [2025-03-10 13:45:21] Production.INFO: ProcessCDR(1,14649910,1,1,2) [2025-03-10 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649910', 'tblTempUsageDetail_20' ) start [2025-03-10 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649910', 'tblTempUsageDetail_20' ) end [2025-03-10 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:45:26] Production.INFO: ==13190== Releasing lock... [2025-03-10 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:45:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:46:05 [end_date_ymd] => 2025-03-10 13:46:05 [RateCDR] => 1 ) [2025-03-10 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:46:05' and `end` < '2025-03-10 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:46:18] Production.INFO: count ==5123 [2025-03-10 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:46:05 - End Time 2025-03-10 13:46:05 [2025-03-10 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649915', 'tblTempUsageDetail_20' ) start [2025-03-10 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649915', 'tblTempUsageDetail_20' ) end [2025-03-10 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649915', 'tblTempVendorCDR_20' ) start [2025-03-10 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649915', 'tblTempVendorCDR_20' ) end [2025-03-10 13:46:21] Production.INFO: ProcessCDR(1,14649915,1,1,2) [2025-03-10 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649915', 'tblTempUsageDetail_20' ) start [2025-03-10 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649915', 'tblTempUsageDetail_20' ) end [2025-03-10 13:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:46:24] Production.INFO: ==13267== Releasing lock... [2025-03-10 13:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:46:24] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:47:05 [end_date_ymd] => 2025-03-10 13:47:05 [RateCDR] => 1 ) [2025-03-10 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:47:05' and `end` < '2025-03-10 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:47:18] Production.INFO: count ==5124 [2025-03-10 13:47:20] Production.ERROR: pbx CDR StartTime 2025-03-10 10:47:05 - End Time 2025-03-10 13:47:05 [2025-03-10 13:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649920', 'tblTempUsageDetail_20' ) start [2025-03-10 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649920', 'tblTempUsageDetail_20' ) end [2025-03-10 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649920', 'tblTempVendorCDR_20' ) start [2025-03-10 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649920', 'tblTempVendorCDR_20' ) end [2025-03-10 13:47:21] Production.INFO: ProcessCDR(1,14649920,1,1,2) [2025-03-10 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649920', 'tblTempUsageDetail_20' ) start [2025-03-10 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649920', 'tblTempUsageDetail_20' ) end [2025-03-10 13:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:47:25] Production.INFO: ==13382== Releasing lock... [2025-03-10 13:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:47:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:48:05 [end_date_ymd] => 2025-03-10 13:48:05 [RateCDR] => 1 ) [2025-03-10 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:48:05' and `end` < '2025-03-10 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:48:19] Production.INFO: count ==5104 [2025-03-10 13:48:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:48:05 - End Time 2025-03-10 13:48:05 [2025-03-10 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649925', 'tblTempUsageDetail_20' ) start [2025-03-10 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649925', 'tblTempUsageDetail_20' ) end [2025-03-10 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649925', 'tblTempVendorCDR_20' ) start [2025-03-10 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649925', 'tblTempVendorCDR_20' ) end [2025-03-10 13:48:21] Production.INFO: ProcessCDR(1,14649925,1,1,2) [2025-03-10 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649925', 'tblTempUsageDetail_20' ) start [2025-03-10 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649925', 'tblTempUsageDetail_20' ) end [2025-03-10 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:48:26] Production.INFO: ==13460== Releasing lock... [2025-03-10 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:48:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:49:05 [end_date_ymd] => 2025-03-10 13:49:05 [RateCDR] => 1 ) [2025-03-10 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:49:05' and `end` < '2025-03-10 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:49:18] Production.INFO: count ==5114 [2025-03-10 13:49:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:49:05 - End Time 2025-03-10 13:49:05 [2025-03-10 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649930', 'tblTempUsageDetail_20' ) start [2025-03-10 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649930', 'tblTempUsageDetail_20' ) end [2025-03-10 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649930', 'tblTempVendorCDR_20' ) start [2025-03-10 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649930', 'tblTempVendorCDR_20' ) end [2025-03-10 13:49:21] Production.INFO: ProcessCDR(1,14649930,1,1,2) [2025-03-10 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649930', 'tblTempUsageDetail_20' ) start [2025-03-10 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649930', 'tblTempUsageDetail_20' ) end [2025-03-10 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:49:26] Production.INFO: ==13540== Releasing lock... [2025-03-10 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:49:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:50:07 [end_date_ymd] => 2025-03-10 13:50:07 [RateCDR] => 1 ) [2025-03-10 13:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:50:07' and `end` < '2025-03-10 13:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:50:20] Production.INFO: count ==5092 [2025-03-10 13:50:22] Production.ERROR: pbx CDR StartTime 2025-03-10 10:50:07 - End Time 2025-03-10 13:50:07 [2025-03-10 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649936', 'tblTempUsageDetail_20' ) start [2025-03-10 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649936', 'tblTempUsageDetail_20' ) end [2025-03-10 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649936', 'tblTempVendorCDR_20' ) start [2025-03-10 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649936', 'tblTempVendorCDR_20' ) end [2025-03-10 13:50:22] Production.INFO: ProcessCDR(1,14649936,1,1,2) [2025-03-10 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649936', 'tblTempUsageDetail_20' ) start [2025-03-10 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649936', 'tblTempUsageDetail_20' ) end [2025-03-10 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:50:27] Production.INFO: ==13630== Releasing lock... [2025-03-10 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:50:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:51:04 [end_date_ymd] => 2025-03-10 13:51:04 [RateCDR] => 1 ) [2025-03-10 13: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-03-10 10:51:04' and `end` < '2025-03-10 13: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-03-10 13:51:18] Production.INFO: count ==5102 [2025-03-10 13:51:20] Production.ERROR: pbx CDR StartTime 2025-03-10 10:51:04 - End Time 2025-03-10 13:51:04 [2025-03-10 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649941', 'tblTempUsageDetail_20' ) start [2025-03-10 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649941', 'tblTempUsageDetail_20' ) end [2025-03-10 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649941', 'tblTempVendorCDR_20' ) start [2025-03-10 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649941', 'tblTempVendorCDR_20' ) end [2025-03-10 13:51:20] Production.INFO: ProcessCDR(1,14649941,1,1,2) [2025-03-10 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649941', 'tblTempUsageDetail_20' ) start [2025-03-10 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649941', 'tblTempUsageDetail_20' ) end [2025-03-10 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:51:26] Production.INFO: ==13705== Releasing lock... [2025-03-10 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:51:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:52:05 [end_date_ymd] => 2025-03-10 13:52:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:52:05' and `end` < '2025-03-10 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-03-10 13:52:19] Production.INFO: count ==5087 [2025-03-10 13:52:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:52:05 - End Time 2025-03-10 13:52:05 [2025-03-10 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649946', 'tblTempUsageDetail_20' ) start [2025-03-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649946', 'tblTempUsageDetail_20' ) end [2025-03-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649946', 'tblTempVendorCDR_20' ) start [2025-03-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649946', 'tblTempVendorCDR_20' ) end [2025-03-10 13:52:21] Production.INFO: ProcessCDR(1,14649946,1,1,2) [2025-03-10 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649946', 'tblTempUsageDetail_20' ) start [2025-03-10 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649946', 'tblTempUsageDetail_20' ) end [2025-03-10 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:52:27] Production.INFO: ==13786== Releasing lock... [2025-03-10 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:52:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:53:05 [end_date_ymd] => 2025-03-10 13:53:05 [RateCDR] => 1 ) [2025-03-10 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:53:05' and `end` < '2025-03-10 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:53:18] Production.INFO: count ==5087 [2025-03-10 13:53:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:53:05 - End Time 2025-03-10 13:53:05 [2025-03-10 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649951', 'tblTempUsageDetail_20' ) start [2025-03-10 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649951', 'tblTempUsageDetail_20' ) end [2025-03-10 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649951', 'tblTempVendorCDR_20' ) start [2025-03-10 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649951', 'tblTempVendorCDR_20' ) end [2025-03-10 13:53:21] Production.INFO: ProcessCDR(1,14649951,1,1,2) [2025-03-10 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649951', 'tblTempUsageDetail_20' ) start [2025-03-10 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649951', 'tblTempUsageDetail_20' ) end [2025-03-10 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:53:26] Production.INFO: ==13867== Releasing lock... [2025-03-10 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:53:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:54:06 [end_date_ymd] => 2025-03-10 13:54:06 [RateCDR] => 1 ) [2025-03-10 13:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:54:06' and `end` < '2025-03-10 13:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:54:19] Production.INFO: count ==5088 [2025-03-10 13:54:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:54:06 - End Time 2025-03-10 13:54:06 [2025-03-10 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649956', 'tblTempUsageDetail_20' ) start [2025-03-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649956', 'tblTempUsageDetail_20' ) end [2025-03-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649956', 'tblTempVendorCDR_20' ) start [2025-03-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649956', 'tblTempVendorCDR_20' ) end [2025-03-10 13:54:21] Production.INFO: ProcessCDR(1,14649956,1,1,2) [2025-03-10 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649956', 'tblTempUsageDetail_20' ) start [2025-03-10 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649956', 'tblTempUsageDetail_20' ) end [2025-03-10 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:54:27] Production.INFO: ==13945== Releasing lock... [2025-03-10 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:54:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:55:05 [end_date_ymd] => 2025-03-10 13:55:05 [RateCDR] => 1 ) [2025-03-10 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:55:05' and `end` < '2025-03-10 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:55:19] Production.INFO: count ==5091 [2025-03-10 13:55:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:55:05 - End Time 2025-03-10 13:55:05 [2025-03-10 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649961', 'tblTempUsageDetail_20' ) start [2025-03-10 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649961', 'tblTempUsageDetail_20' ) end [2025-03-10 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649961', 'tblTempVendorCDR_20' ) start [2025-03-10 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649961', 'tblTempVendorCDR_20' ) end [2025-03-10 13:55:22] Production.INFO: ProcessCDR(1,14649961,1,1,2) [2025-03-10 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649961', 'tblTempUsageDetail_20' ) start [2025-03-10 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649961', 'tblTempUsageDetail_20' ) end [2025-03-10 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:55:27] Production.INFO: ==14023== Releasing lock... [2025-03-10 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:55:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:56:06 [end_date_ymd] => 2025-03-10 13:56:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:56:06' and `end` < '2025-03-10 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-03-10 13:56:19] Production.INFO: count ==5083 [2025-03-10 13:56:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:56:06 - End Time 2025-03-10 13:56:06 [2025-03-10 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649966', 'tblTempUsageDetail_20' ) start [2025-03-10 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649966', 'tblTempUsageDetail_20' ) end [2025-03-10 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649966', 'tblTempVendorCDR_20' ) start [2025-03-10 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649966', 'tblTempVendorCDR_20' ) end [2025-03-10 13:56:22] Production.INFO: ProcessCDR(1,14649966,1,1,2) [2025-03-10 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649966', 'tblTempUsageDetail_20' ) start [2025-03-10 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649966', 'tblTempUsageDetail_20' ) end [2025-03-10 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:56:27] Production.INFO: ==14102== Releasing lock... [2025-03-10 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:56:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:57:05 [end_date_ymd] => 2025-03-10 13:57:05 [RateCDR] => 1 ) [2025-03-10 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:57:05' and `end` < '2025-03-10 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:57:20] Production.INFO: count ==5079 [2025-03-10 13:57:22] Production.ERROR: pbx CDR StartTime 2025-03-10 10:57:05 - End Time 2025-03-10 13:57:05 [2025-03-10 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649971', 'tblTempUsageDetail_20' ) start [2025-03-10 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649971', 'tblTempUsageDetail_20' ) end [2025-03-10 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649971', 'tblTempVendorCDR_20' ) start [2025-03-10 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649971', 'tblTempVendorCDR_20' ) end [2025-03-10 13:57:22] Production.INFO: ProcessCDR(1,14649971,1,1,2) [2025-03-10 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649971', 'tblTempUsageDetail_20' ) start [2025-03-10 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649971', 'tblTempUsageDetail_20' ) end [2025-03-10 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:57:27] Production.INFO: ==14184== Releasing lock... [2025-03-10 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:57:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:58:05 [end_date_ymd] => 2025-03-10 13:58:05 [RateCDR] => 1 ) [2025-03-10 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 10:58:05' and `end` < '2025-03-10 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 13:58:19] Production.INFO: count ==5074 [2025-03-10 13:58:21] Production.ERROR: pbx CDR StartTime 2025-03-10 10:58:05 - End Time 2025-03-10 13:58:05 [2025-03-10 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649976', 'tblTempUsageDetail_20' ) start [2025-03-10 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649976', 'tblTempUsageDetail_20' ) end [2025-03-10 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649976', 'tblTempVendorCDR_20' ) start [2025-03-10 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649976', 'tblTempVendorCDR_20' ) end [2025-03-10 13:58:21] Production.INFO: ProcessCDR(1,14649976,1,1,2) [2025-03-10 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649976', 'tblTempUsageDetail_20' ) start [2025-03-10 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649976', 'tblTempUsageDetail_20' ) end [2025-03-10 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:58:26] Production.INFO: ==14267== Releasing lock... [2025-03-10 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:58:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 10:59:05 [end_date_ymd] => 2025-03-10 13:59:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 10:59:05' and `end` < '2025-03-10 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-03-10 13:59:17] Production.INFO: count ==5074 [2025-03-10 13:59:19] Production.ERROR: pbx CDR StartTime 2025-03-10 10:59:05 - End Time 2025-03-10 13:59:05 [2025-03-10 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649981', 'tblTempUsageDetail_20' ) start [2025-03-10 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649981', 'tblTempUsageDetail_20' ) end [2025-03-10 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649981', 'tblTempVendorCDR_20' ) start [2025-03-10 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649981', 'tblTempVendorCDR_20' ) end [2025-03-10 13:59:20] Production.INFO: ProcessCDR(1,14649981,1,1,2) [2025-03-10 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 13:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649981', 'tblTempUsageDetail_20' ) start [2025-03-10 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649981', 'tblTempUsageDetail_20' ) end [2025-03-10 13:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 13:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 13:59:24] Production.INFO: ==14347== Releasing lock... [2025-03-10 13:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 13:59:24] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:00:06 [end_date_ymd] => 2025-03-10 14:00:06 [RateCDR] => 1 ) [2025-03-10 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:00:06' and `end` < '2025-03-10 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:00:20] Production.INFO: count ==5079 [2025-03-10 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-10 11:00:06 - End Time 2025-03-10 14:00:06 [2025-03-10 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649987', 'tblTempUsageDetail_20' ) start [2025-03-10 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649987', 'tblTempUsageDetail_20' ) end [2025-03-10 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649987', 'tblTempVendorCDR_20' ) start [2025-03-10 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649987', 'tblTempVendorCDR_20' ) end [2025-03-10 14:00:22] Production.INFO: ProcessCDR(1,14649987,1,1,2) [2025-03-10 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649987', 'tblTempUsageDetail_20' ) start [2025-03-10 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649987', 'tblTempUsageDetail_20' ) end [2025-03-10 14:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:00:27] Production.INFO: ==14432== Releasing lock... [2025-03-10 14:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:00:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:01:04 [end_date_ymd] => 2025-03-10 14:01:04 [RateCDR] => 1 ) [2025-03-10 14:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:01:04' and `end` < '2025-03-10 14:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:01:18] Production.INFO: count ==5106 [2025-03-10 14:01:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:01:04 - End Time 2025-03-10 14:01:04 [2025-03-10 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649992', 'tblTempUsageDetail_20' ) start [2025-03-10 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649992', 'tblTempUsageDetail_20' ) end [2025-03-10 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649992', 'tblTempVendorCDR_20' ) start [2025-03-10 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649992', 'tblTempVendorCDR_20' ) end [2025-03-10 14:01:20] Production.INFO: ProcessCDR(1,14649992,1,1,2) [2025-03-10 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649992', 'tblTempUsageDetail_20' ) start [2025-03-10 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649992', 'tblTempUsageDetail_20' ) end [2025-03-10 14:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:01:25] Production.INFO: ==14528== Releasing lock... [2025-03-10 14:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:01:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:02:06 [end_date_ymd] => 2025-03-10 14:02:06 [RateCDR] => 1 ) [2025-03-10 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:02:06' and `end` < '2025-03-10 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:02:19] Production.INFO: count ==5081 [2025-03-10 14:02:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:02:06 - End Time 2025-03-10 14:02:06 [2025-03-10 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649997', 'tblTempUsageDetail_20' ) start [2025-03-10 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14649997', 'tblTempUsageDetail_20' ) end [2025-03-10 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649997', 'tblTempVendorCDR_20' ) start [2025-03-10 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14649997', 'tblTempVendorCDR_20' ) end [2025-03-10 14:02:22] Production.INFO: ProcessCDR(1,14649997,1,1,2) [2025-03-10 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14649997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14649997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14649997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14649997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649997', 'tblTempUsageDetail_20' ) start [2025-03-10 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14649997', 'tblTempUsageDetail_20' ) end [2025-03-10 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:02:27] Production.INFO: ==14609== Releasing lock... [2025-03-10 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:02:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:03:05 [end_date_ymd] => 2025-03-10 14:03:05 [RateCDR] => 1 ) [2025-03-10 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:03:05' and `end` < '2025-03-10 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:03:18] Production.INFO: count ==5071 [2025-03-10 14:03:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:03:05 - End Time 2025-03-10 14:03:05 [2025-03-10 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650002', 'tblTempUsageDetail_20' ) start [2025-03-10 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650002', 'tblTempUsageDetail_20' ) end [2025-03-10 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650002', 'tblTempVendorCDR_20' ) start [2025-03-10 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650002', 'tblTempVendorCDR_20' ) end [2025-03-10 14:03:21] Production.INFO: ProcessCDR(1,14650002,1,1,2) [2025-03-10 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650002', 'tblTempUsageDetail_20' ) start [2025-03-10 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650002', 'tblTempUsageDetail_20' ) end [2025-03-10 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:03:26] Production.INFO: ==14724== Releasing lock... [2025-03-10 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:03:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:04:05 [end_date_ymd] => 2025-03-10 14:04:05 [RateCDR] => 1 ) [2025-03-10 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:04:05' and `end` < '2025-03-10 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:04:19] Production.INFO: count ==5072 [2025-03-10 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:04:05 - End Time 2025-03-10 14:04:05 [2025-03-10 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650007', 'tblTempUsageDetail_20' ) start [2025-03-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650007', 'tblTempUsageDetail_20' ) end [2025-03-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650007', 'tblTempVendorCDR_20' ) start [2025-03-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650007', 'tblTempVendorCDR_20' ) end [2025-03-10 14:04:21] Production.INFO: ProcessCDR(1,14650007,1,1,2) [2025-03-10 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650007', 'tblTempUsageDetail_20' ) start [2025-03-10 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650007', 'tblTempUsageDetail_20' ) end [2025-03-10 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:04:26] Production.INFO: ==14805== Releasing lock... [2025-03-10 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:04:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:05:05 [end_date_ymd] => 2025-03-10 14:05:05 [RateCDR] => 1 ) [2025-03-10 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:05:05' and `end` < '2025-03-10 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:05:18] Production.INFO: count ==5057 [2025-03-10 14:05:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:05:05 - End Time 2025-03-10 14:05:05 [2025-03-10 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650012', 'tblTempUsageDetail_20' ) start [2025-03-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650012', 'tblTempUsageDetail_20' ) end [2025-03-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650012', 'tblTempVendorCDR_20' ) start [2025-03-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650012', 'tblTempVendorCDR_20' ) end [2025-03-10 14:05:21] Production.INFO: ProcessCDR(1,14650012,1,1,2) [2025-03-10 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650012', 'tblTempUsageDetail_20' ) start [2025-03-10 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650012', 'tblTempUsageDetail_20' ) end [2025-03-10 14:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:05:26] Production.INFO: ==14886== Releasing lock... [2025-03-10 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:05:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:06:05 [end_date_ymd] => 2025-03-10 14:06:05 [RateCDR] => 1 ) [2025-03-10 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:06:05' and `end` < '2025-03-10 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:06:19] Production.INFO: count ==5072 [2025-03-10 14:06:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:06:05 - End Time 2025-03-10 14:06:05 [2025-03-10 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650017', 'tblTempUsageDetail_20' ) start [2025-03-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650017', 'tblTempUsageDetail_20' ) end [2025-03-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650017', 'tblTempVendorCDR_20' ) start [2025-03-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650017', 'tblTempVendorCDR_20' ) end [2025-03-10 14:06:21] Production.INFO: ProcessCDR(1,14650017,1,1,2) [2025-03-10 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650017', 'tblTempUsageDetail_20' ) start [2025-03-10 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650017', 'tblTempUsageDetail_20' ) end [2025-03-10 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:06:26] Production.INFO: ==14963== Releasing lock... [2025-03-10 14:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:06:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:07:05 [end_date_ymd] => 2025-03-10 14:07:05 [RateCDR] => 1 ) [2025-03-10 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:07:05' and `end` < '2025-03-10 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:07:18] Production.INFO: count ==5078 [2025-03-10 14:07:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:07:05 - End Time 2025-03-10 14:07:05 [2025-03-10 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650022', 'tblTempUsageDetail_20' ) start [2025-03-10 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650022', 'tblTempUsageDetail_20' ) end [2025-03-10 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650022', 'tblTempVendorCDR_20' ) start [2025-03-10 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650022', 'tblTempVendorCDR_20' ) end [2025-03-10 14:07:20] Production.INFO: ProcessCDR(1,14650022,1,1,2) [2025-03-10 14:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650022', 'tblTempUsageDetail_20' ) start [2025-03-10 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650022', 'tblTempUsageDetail_20' ) end [2025-03-10 14:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:07:25] Production.INFO: ==15043== Releasing lock... [2025-03-10 14:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:07:25] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:08:05 [end_date_ymd] => 2025-03-10 14:08:05 [RateCDR] => 1 ) [2025-03-10 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:08:05' and `end` < '2025-03-10 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:08:19] Production.INFO: count ==5095 [2025-03-10 14:08:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:08:05 - End Time 2025-03-10 14:08:05 [2025-03-10 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650027', 'tblTempUsageDetail_20' ) start [2025-03-10 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650027', 'tblTempUsageDetail_20' ) end [2025-03-10 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650027', 'tblTempVendorCDR_20' ) start [2025-03-10 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650027', 'tblTempVendorCDR_20' ) end [2025-03-10 14:08:21] Production.INFO: ProcessCDR(1,14650027,1,1,2) [2025-03-10 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650027', 'tblTempUsageDetail_20' ) start [2025-03-10 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650027', 'tblTempUsageDetail_20' ) end [2025-03-10 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:08:26] Production.INFO: ==15125== Releasing lock... [2025-03-10 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:08:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:09:05 [end_date_ymd] => 2025-03-10 14:09:05 [RateCDR] => 1 ) [2025-03-10 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:09:05' and `end` < '2025-03-10 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:09:18] Production.INFO: count ==5104 [2025-03-10 14:09:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:09:05 - End Time 2025-03-10 14:09:05 [2025-03-10 14:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650032', 'tblTempUsageDetail_20' ) start [2025-03-10 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650032', 'tblTempUsageDetail_20' ) end [2025-03-10 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650032', 'tblTempVendorCDR_20' ) start [2025-03-10 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650032', 'tblTempVendorCDR_20' ) end [2025-03-10 14:09:21] Production.INFO: ProcessCDR(1,14650032,1,1,2) [2025-03-10 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650032', 'tblTempUsageDetail_20' ) start [2025-03-10 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650032', 'tblTempUsageDetail_20' ) end [2025-03-10 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:09:26] Production.INFO: ==15209== Releasing lock... [2025-03-10 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:09:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:10:07 [end_date_ymd] => 2025-03-10 14:10:07 [RateCDR] => 1 ) [2025-03-10 14: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-03-10 11:10:07' and `end` < '2025-03-10 14: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-03-10 14:10:20] Production.INFO: count ==5090 [2025-03-10 14:10:22] Production.ERROR: pbx CDR StartTime 2025-03-10 11:10:07 - End Time 2025-03-10 14:10:07 [2025-03-10 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650038', 'tblTempUsageDetail_20' ) start [2025-03-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650038', 'tblTempUsageDetail_20' ) end [2025-03-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650038', 'tblTempVendorCDR_20' ) start [2025-03-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650038', 'tblTempVendorCDR_20' ) end [2025-03-10 14:10:22] Production.INFO: ProcessCDR(1,14650038,1,1,2) [2025-03-10 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650038', 'tblTempUsageDetail_20' ) start [2025-03-10 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650038', 'tblTempUsageDetail_20' ) end [2025-03-10 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:10:27] Production.INFO: ==15289== Releasing lock... [2025-03-10 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:10:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:11:05 [end_date_ymd] => 2025-03-10 14:11:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 11:11:05' and `end` < '2025-03-10 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-03-10 14:11:18] Production.INFO: count ==5099 [2025-03-10 14:11:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:11:05 - End Time 2025-03-10 14:11:05 [2025-03-10 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650043', 'tblTempUsageDetail_20' ) start [2025-03-10 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650043', 'tblTempUsageDetail_20' ) end [2025-03-10 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650043', 'tblTempVendorCDR_20' ) start [2025-03-10 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650043', 'tblTempVendorCDR_20' ) end [2025-03-10 14:11:20] Production.INFO: ProcessCDR(1,14650043,1,1,2) [2025-03-10 14:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650043', 'tblTempUsageDetail_20' ) start [2025-03-10 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650043', 'tblTempUsageDetail_20' ) end [2025-03-10 14:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:11:25] Production.INFO: ==15373== Releasing lock... [2025-03-10 14:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:11:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:12:05 [end_date_ymd] => 2025-03-10 14:12:05 [RateCDR] => 1 ) [2025-03-10 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:12:05' and `end` < '2025-03-10 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:12:19] Production.INFO: count ==5107 [2025-03-10 14:12:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:12:05 - End Time 2025-03-10 14:12:05 [2025-03-10 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650048', 'tblTempUsageDetail_20' ) start [2025-03-10 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650048', 'tblTempUsageDetail_20' ) end [2025-03-10 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650048', 'tblTempVendorCDR_20' ) start [2025-03-10 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650048', 'tblTempVendorCDR_20' ) end [2025-03-10 14:12:21] Production.INFO: ProcessCDR(1,14650048,1,1,2) [2025-03-10 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650048', 'tblTempUsageDetail_20' ) start [2025-03-10 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650048', 'tblTempUsageDetail_20' ) end [2025-03-10 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:12:26] Production.INFO: ==15455== Releasing lock... [2025-03-10 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:12:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:13:05 [end_date_ymd] => 2025-03-10 14:13:05 [RateCDR] => 1 ) [2025-03-10 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:13:05' and `end` < '2025-03-10 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:13:18] Production.INFO: count ==5095 [2025-03-10 14:13:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:13:05 - End Time 2025-03-10 14:13:05 [2025-03-10 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650053', 'tblTempUsageDetail_20' ) start [2025-03-10 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650053', 'tblTempUsageDetail_20' ) end [2025-03-10 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650053', 'tblTempVendorCDR_20' ) start [2025-03-10 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650053', 'tblTempVendorCDR_20' ) end [2025-03-10 14:13:20] Production.INFO: ProcessCDR(1,14650053,1,1,2) [2025-03-10 14:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650053', 'tblTempUsageDetail_20' ) start [2025-03-10 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650053', 'tblTempUsageDetail_20' ) end [2025-03-10 14:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:13:25] Production.INFO: ==15534== Releasing lock... [2025-03-10 14:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:13:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:14:06 [end_date_ymd] => 2025-03-10 14:14:06 [RateCDR] => 1 ) [2025-03-10 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:14:06' and `end` < '2025-03-10 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:14:19] Production.INFO: count ==5085 [2025-03-10 14:14:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:14:06 - End Time 2025-03-10 14:14:06 [2025-03-10 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650058', 'tblTempUsageDetail_20' ) start [2025-03-10 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650058', 'tblTempUsageDetail_20' ) end [2025-03-10 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650058', 'tblTempVendorCDR_20' ) start [2025-03-10 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650058', 'tblTempVendorCDR_20' ) end [2025-03-10 14:14:21] Production.INFO: ProcessCDR(1,14650058,1,1,2) [2025-03-10 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650058', 'tblTempUsageDetail_20' ) start [2025-03-10 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650058', 'tblTempUsageDetail_20' ) end [2025-03-10 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:14:26] Production.INFO: ==15613== Releasing lock... [2025-03-10 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:14:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:15:05 [end_date_ymd] => 2025-03-10 14:15:05 [RateCDR] => 1 ) [2025-03-10 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:15:05' and `end` < '2025-03-10 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:15:18] Production.INFO: count ==5087 [2025-03-10 14:15:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:15:05 - End Time 2025-03-10 14:15:05 [2025-03-10 14:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650063', 'tblTempUsageDetail_20' ) start [2025-03-10 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650063', 'tblTempUsageDetail_20' ) end [2025-03-10 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650063', 'tblTempVendorCDR_20' ) start [2025-03-10 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650063', 'tblTempVendorCDR_20' ) end [2025-03-10 14:15:21] Production.INFO: ProcessCDR(1,14650063,1,1,2) [2025-03-10 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650063', 'tblTempUsageDetail_20' ) start [2025-03-10 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650063', 'tblTempUsageDetail_20' ) end [2025-03-10 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:15:26] Production.INFO: ==15696== Releasing lock... [2025-03-10 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:15:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:16:05 [end_date_ymd] => 2025-03-10 14:16:05 [RateCDR] => 1 ) [2025-03-10 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:16:05' and `end` < '2025-03-10 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:16:18] Production.INFO: count ==5092 [2025-03-10 14:16:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:16:05 - End Time 2025-03-10 14:16:05 [2025-03-10 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650068', 'tblTempUsageDetail_20' ) start [2025-03-10 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650068', 'tblTempUsageDetail_20' ) end [2025-03-10 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650068', 'tblTempVendorCDR_20' ) start [2025-03-10 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650068', 'tblTempVendorCDR_20' ) end [2025-03-10 14:16:21] Production.INFO: ProcessCDR(1,14650068,1,1,2) [2025-03-10 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650068', 'tblTempUsageDetail_20' ) start [2025-03-10 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650068', 'tblTempUsageDetail_20' ) end [2025-03-10 14:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:16:25] Production.INFO: ==15779== Releasing lock... [2025-03-10 14:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:16:25] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:17:05 [end_date_ymd] => 2025-03-10 14:17:05 [RateCDR] => 1 ) [2025-03-10 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:17:05' and `end` < '2025-03-10 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:17:18] Production.INFO: count ==5092 [2025-03-10 14:17:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:17:05 - End Time 2025-03-10 14:17:05 [2025-03-10 14:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650073', 'tblTempUsageDetail_20' ) start [2025-03-10 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650073', 'tblTempUsageDetail_20' ) end [2025-03-10 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650073', 'tblTempVendorCDR_20' ) start [2025-03-10 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650073', 'tblTempVendorCDR_20' ) end [2025-03-10 14:17:21] Production.INFO: ProcessCDR(1,14650073,1,1,2) [2025-03-10 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650073', 'tblTempUsageDetail_20' ) start [2025-03-10 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650073', 'tblTempUsageDetail_20' ) end [2025-03-10 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:17:26] Production.INFO: ==15860== Releasing lock... [2025-03-10 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:17:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:18:05 [end_date_ymd] => 2025-03-10 14:18:05 [RateCDR] => 1 ) [2025-03-10 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:18:05' and `end` < '2025-03-10 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:18:18] Production.INFO: count ==5073 [2025-03-10 14:18:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:18:05 - End Time 2025-03-10 14:18:05 [2025-03-10 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650078', 'tblTempUsageDetail_20' ) start [2025-03-10 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650078', 'tblTempUsageDetail_20' ) end [2025-03-10 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650078', 'tblTempVendorCDR_20' ) start [2025-03-10 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650078', 'tblTempVendorCDR_20' ) end [2025-03-10 14:18:21] Production.INFO: ProcessCDR(1,14650078,1,1,2) [2025-03-10 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650078', 'tblTempUsageDetail_20' ) start [2025-03-10 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650078', 'tblTempUsageDetail_20' ) end [2025-03-10 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:18:26] Production.INFO: ==15978== Releasing lock... [2025-03-10 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:18:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:19:04 [end_date_ymd] => 2025-03-10 14:19:04 [RateCDR] => 1 ) [2025-03-10 14:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:19:04' and `end` < '2025-03-10 14:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:19:18] Production.INFO: count ==5074 [2025-03-10 14:19:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:19:04 - End Time 2025-03-10 14:19:04 [2025-03-10 14:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650083', 'tblTempUsageDetail_20' ) start [2025-03-10 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650083', 'tblTempUsageDetail_20' ) end [2025-03-10 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650083', 'tblTempVendorCDR_20' ) start [2025-03-10 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650083', 'tblTempVendorCDR_20' ) end [2025-03-10 14:19:20] Production.INFO: ProcessCDR(1,14650083,1,1,2) [2025-03-10 14:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650083', 'tblTempUsageDetail_20' ) start [2025-03-10 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650083', 'tblTempUsageDetail_20' ) end [2025-03-10 14:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:19:25] Production.INFO: ==16057== Releasing lock... [2025-03-10 14:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:19:25] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:20:07 [end_date_ymd] => 2025-03-10 14:20:07 [RateCDR] => 1 ) [2025-03-10 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-03-10 11:20:07' and `end` < '2025-03-10 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-03-10 14:20:20] Production.INFO: count ==5051 [2025-03-10 14:20:22] Production.ERROR: pbx CDR StartTime 2025-03-10 11:20:07 - End Time 2025-03-10 14:20:07 [2025-03-10 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650089', 'tblTempUsageDetail_20' ) start [2025-03-10 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650089', 'tblTempUsageDetail_20' ) end [2025-03-10 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650089', 'tblTempVendorCDR_20' ) start [2025-03-10 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650089', 'tblTempVendorCDR_20' ) end [2025-03-10 14:20:22] Production.INFO: ProcessCDR(1,14650089,1,1,2) [2025-03-10 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650089', 'tblTempUsageDetail_20' ) start [2025-03-10 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650089', 'tblTempUsageDetail_20' ) end [2025-03-10 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:20:28] Production.INFO: ==16136== Releasing lock... [2025-03-10 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:20:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:21:05 [end_date_ymd] => 2025-03-10 14:21:05 [RateCDR] => 1 ) [2025-03-10 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:21:05' and `end` < '2025-03-10 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:21:19] Production.INFO: count ==5036 [2025-03-10 14:21:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:21:05 - End Time 2025-03-10 14:21:05 [2025-03-10 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650094', 'tblTempUsageDetail_20' ) start [2025-03-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650094', 'tblTempUsageDetail_20' ) end [2025-03-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650094', 'tblTempVendorCDR_20' ) start [2025-03-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650094', 'tblTempVendorCDR_20' ) end [2025-03-10 14:21:21] Production.INFO: ProcessCDR(1,14650094,1,1,2) [2025-03-10 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650094', 'tblTempUsageDetail_20' ) start [2025-03-10 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650094', 'tblTempUsageDetail_20' ) end [2025-03-10 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:21:27] Production.INFO: ==16215== Releasing lock... [2025-03-10 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:21:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:22:06 [end_date_ymd] => 2025-03-10 14:22:06 [RateCDR] => 1 ) [2025-03-10 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:22:06' and `end` < '2025-03-10 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:22:19] Production.INFO: count ==5027 [2025-03-10 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:22:06 - End Time 2025-03-10 14:22:06 [2025-03-10 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650099', 'tblTempUsageDetail_20' ) start [2025-03-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650099', 'tblTempUsageDetail_20' ) end [2025-03-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650099', 'tblTempVendorCDR_20' ) start [2025-03-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650099', 'tblTempVendorCDR_20' ) end [2025-03-10 14:22:21] Production.INFO: ProcessCDR(1,14650099,1,1,2) [2025-03-10 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650099', 'tblTempUsageDetail_20' ) start [2025-03-10 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650099', 'tblTempUsageDetail_20' ) end [2025-03-10 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:22:27] Production.INFO: ==16289== Releasing lock... [2025-03-10 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:22:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:23:06 [end_date_ymd] => 2025-03-10 14:23:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 11:23:06' and `end` < '2025-03-10 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-03-10 14:23:19] Production.INFO: count ==4998 [2025-03-10 14:23:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:23:06 - End Time 2025-03-10 14:23:06 [2025-03-10 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650104', 'tblTempUsageDetail_20' ) start [2025-03-10 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650104', 'tblTempUsageDetail_20' ) end [2025-03-10 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650104', 'tblTempVendorCDR_20' ) start [2025-03-10 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650104', 'tblTempVendorCDR_20' ) end [2025-03-10 14:23:21] Production.INFO: ProcessCDR(1,14650104,1,1,2) [2025-03-10 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650104', 'tblTempUsageDetail_20' ) start [2025-03-10 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650104', 'tblTempUsageDetail_20' ) end [2025-03-10 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:23:27] Production.INFO: ==16366== Releasing lock... [2025-03-10 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:23:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:24:06 [end_date_ymd] => 2025-03-10 14:24:06 [RateCDR] => 1 ) [2025-03-10 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:24:06' and `end` < '2025-03-10 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:24:19] Production.INFO: count ==4983 [2025-03-10 14:24:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:24:06 - End Time 2025-03-10 14:24:06 [2025-03-10 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650109', 'tblTempUsageDetail_20' ) start [2025-03-10 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650109', 'tblTempUsageDetail_20' ) end [2025-03-10 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650109', 'tblTempVendorCDR_20' ) start [2025-03-10 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650109', 'tblTempVendorCDR_20' ) end [2025-03-10 14:24:21] Production.INFO: ProcessCDR(1,14650109,1,1,2) [2025-03-10 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650109', 'tblTempUsageDetail_20' ) start [2025-03-10 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650109', 'tblTempUsageDetail_20' ) end [2025-03-10 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:24:26] Production.INFO: ==16438== Releasing lock... [2025-03-10 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:24:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:25:05 [end_date_ymd] => 2025-03-10 14:25:05 [RateCDR] => 1 ) [2025-03-10 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:25:05' and `end` < '2025-03-10 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:25:19] Production.INFO: count ==4992 [2025-03-10 14:25:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:25:05 - End Time 2025-03-10 14:25:05 [2025-03-10 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650114', 'tblTempUsageDetail_20' ) start [2025-03-10 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650114', 'tblTempUsageDetail_20' ) end [2025-03-10 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650114', 'tblTempVendorCDR_20' ) start [2025-03-10 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650114', 'tblTempVendorCDR_20' ) end [2025-03-10 14:25:21] Production.INFO: ProcessCDR(1,14650114,1,1,2) [2025-03-10 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650114', 'tblTempUsageDetail_20' ) start [2025-03-10 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650114', 'tblTempUsageDetail_20' ) end [2025-03-10 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:25:27] Production.INFO: ==16513== Releasing lock... [2025-03-10 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:25:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:26:06 [end_date_ymd] => 2025-03-10 14:26:06 [RateCDR] => 1 ) [2025-03-10 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:26:06' and `end` < '2025-03-10 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:26:19] Production.INFO: count ==5010 [2025-03-10 14:26:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:26:06 - End Time 2025-03-10 14:26:06 [2025-03-10 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650119', 'tblTempUsageDetail_20' ) start [2025-03-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650119', 'tblTempUsageDetail_20' ) end [2025-03-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650119', 'tblTempVendorCDR_20' ) start [2025-03-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650119', 'tblTempVendorCDR_20' ) end [2025-03-10 14:26:21] Production.INFO: ProcessCDR(1,14650119,1,1,2) [2025-03-10 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650119', 'tblTempUsageDetail_20' ) start [2025-03-10 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650119', 'tblTempUsageDetail_20' ) end [2025-03-10 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:26:28] Production.INFO: ==16588== Releasing lock... [2025-03-10 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:26:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:27:05 [end_date_ymd] => 2025-03-10 14:27:05 [RateCDR] => 1 ) [2025-03-10 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:27:05' and `end` < '2025-03-10 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:27:18] Production.INFO: count ==5000 [2025-03-10 14:27:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:27:05 - End Time 2025-03-10 14:27:05 [2025-03-10 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650124', 'tblTempUsageDetail_20' ) start [2025-03-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650124', 'tblTempUsageDetail_20' ) end [2025-03-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650124', 'tblTempVendorCDR_20' ) start [2025-03-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650124', 'tblTempVendorCDR_20' ) end [2025-03-10 14:27:21] Production.INFO: ProcessCDR(1,14650124,1,1,2) [2025-03-10 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650124', 'tblTempUsageDetail_20' ) start [2025-03-10 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650124', 'tblTempUsageDetail_20' ) end [2025-03-10 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:27:26] Production.INFO: ==16661== Releasing lock... [2025-03-10 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:27:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:28:06 [end_date_ymd] => 2025-03-10 14:28:06 [RateCDR] => 1 ) [2025-03-10 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:28:06' and `end` < '2025-03-10 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:28:19] Production.INFO: count ==4988 [2025-03-10 14:28:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:28:06 - End Time 2025-03-10 14:28:06 [2025-03-10 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650129', 'tblTempUsageDetail_20' ) start [2025-03-10 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650129', 'tblTempUsageDetail_20' ) end [2025-03-10 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650129', 'tblTempVendorCDR_20' ) start [2025-03-10 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650129', 'tblTempVendorCDR_20' ) end [2025-03-10 14:28:21] Production.INFO: ProcessCDR(1,14650129,1,1,2) [2025-03-10 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650129', 'tblTempUsageDetail_20' ) start [2025-03-10 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650129', 'tblTempUsageDetail_20' ) end [2025-03-10 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:28:26] Production.INFO: ==16736== Releasing lock... [2025-03-10 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:28:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:29:05 [end_date_ymd] => 2025-03-10 14:29:05 [RateCDR] => 1 ) [2025-03-10 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:29:05' and `end` < '2025-03-10 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:29:18] Production.INFO: count ==4989 [2025-03-10 14:29:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:29:05 - End Time 2025-03-10 14:29:05 [2025-03-10 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650134', 'tblTempUsageDetail_20' ) start [2025-03-10 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650134', 'tblTempUsageDetail_20' ) end [2025-03-10 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650134', 'tblTempVendorCDR_20' ) start [2025-03-10 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650134', 'tblTempVendorCDR_20' ) end [2025-03-10 14:29:20] Production.INFO: ProcessCDR(1,14650134,1,1,2) [2025-03-10 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650134', 'tblTempUsageDetail_20' ) start [2025-03-10 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650134', 'tblTempUsageDetail_20' ) end [2025-03-10 14:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:29:25] Production.INFO: ==16815== Releasing lock... [2025-03-10 14:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:29:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:30:06 [end_date_ymd] => 2025-03-10 14:30:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 11:30:06' and `end` < '2025-03-10 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-03-10 14:30:19] Production.INFO: count ==5003 [2025-03-10 14:30:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:30:06 - End Time 2025-03-10 14:30:06 [2025-03-10 14:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650140', 'tblTempUsageDetail_20' ) start [2025-03-10 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650140', 'tblTempUsageDetail_20' ) end [2025-03-10 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650140', 'tblTempVendorCDR_20' ) start [2025-03-10 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650140', 'tblTempVendorCDR_20' ) end [2025-03-10 14:30:22] Production.INFO: ProcessCDR(1,14650140,1,1,2) [2025-03-10 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650140', 'tblTempUsageDetail_20' ) start [2025-03-10 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650140', 'tblTempUsageDetail_20' ) end [2025-03-10 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:30:27] Production.INFO: ==16895== Releasing lock... [2025-03-10 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:30:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:31:05 [end_date_ymd] => 2025-03-10 14:31:05 [RateCDR] => 1 ) [2025-03-10 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:31:05' and `end` < '2025-03-10 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:31:18] Production.INFO: count ==5015 [2025-03-10 14:31:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:31:05 - End Time 2025-03-10 14:31:05 [2025-03-10 14:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650145', 'tblTempUsageDetail_20' ) start [2025-03-10 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650145', 'tblTempUsageDetail_20' ) end [2025-03-10 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650145', 'tblTempVendorCDR_20' ) start [2025-03-10 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650145', 'tblTempVendorCDR_20' ) end [2025-03-10 14:31:20] Production.INFO: ProcessCDR(1,14650145,1,1,2) [2025-03-10 14:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650145', 'tblTempUsageDetail_20' ) start [2025-03-10 14:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650145', 'tblTempUsageDetail_20' ) end [2025-03-10 14:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:31:25] Production.INFO: ==16968== Releasing lock... [2025-03-10 14:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:31:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:32:06 [end_date_ymd] => 2025-03-10 14:32:06 [RateCDR] => 1 ) [2025-03-10 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:32:06' and `end` < '2025-03-10 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:32:19] Production.INFO: count ==5051 [2025-03-10 14:32:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:32:06 - End Time 2025-03-10 14:32:06 [2025-03-10 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650150', 'tblTempUsageDetail_20' ) start [2025-03-10 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650150', 'tblTempUsageDetail_20' ) end [2025-03-10 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650150', 'tblTempVendorCDR_20' ) start [2025-03-10 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650150', 'tblTempVendorCDR_20' ) end [2025-03-10 14:32:21] Production.INFO: ProcessCDR(1,14650150,1,1,2) [2025-03-10 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650150', 'tblTempUsageDetail_20' ) start [2025-03-10 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650150', 'tblTempUsageDetail_20' ) end [2025-03-10 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:32:26] Production.INFO: ==17045== Releasing lock... [2025-03-10 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:32:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:33:04 [end_date_ymd] => 2025-03-10 14:33:04 [RateCDR] => 1 ) [2025-03-10 14:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:33:04' and `end` < '2025-03-10 14:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:33:17] Production.INFO: count ==5043 [2025-03-10 14:33:19] Production.ERROR: pbx CDR StartTime 2025-03-10 11:33:04 - End Time 2025-03-10 14:33:04 [2025-03-10 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650155', 'tblTempUsageDetail_20' ) start [2025-03-10 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650155', 'tblTempUsageDetail_20' ) end [2025-03-10 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650155', 'tblTempVendorCDR_20' ) start [2025-03-10 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650155', 'tblTempVendorCDR_20' ) end [2025-03-10 14:33:19] Production.INFO: ProcessCDR(1,14650155,1,1,2) [2025-03-10 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650155', 'tblTempUsageDetail_20' ) start [2025-03-10 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650155', 'tblTempUsageDetail_20' ) end [2025-03-10 14:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:33:24] Production.INFO: ==17118== Releasing lock... [2025-03-10 14:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:33:24] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:34:05 [end_date_ymd] => 2025-03-10 14:34:05 [RateCDR] => 1 ) [2025-03-10 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:34:05' and `end` < '2025-03-10 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:34:18] Production.INFO: count ==5023 [2025-03-10 14:34:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:34:05 - End Time 2025-03-10 14:34:05 [2025-03-10 14:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650160', 'tblTempUsageDetail_20' ) start [2025-03-10 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650160', 'tblTempUsageDetail_20' ) end [2025-03-10 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650160', 'tblTempVendorCDR_20' ) start [2025-03-10 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650160', 'tblTempVendorCDR_20' ) end [2025-03-10 14:34:21] Production.INFO: ProcessCDR(1,14650160,1,1,2) [2025-03-10 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650160', 'tblTempUsageDetail_20' ) start [2025-03-10 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650160', 'tblTempUsageDetail_20' ) end [2025-03-10 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:34:26] Production.INFO: ==17228== Releasing lock... [2025-03-10 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:34:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:35:05 [end_date_ymd] => 2025-03-10 14:35:05 [RateCDR] => 1 ) [2025-03-10 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:35:05' and `end` < '2025-03-10 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:35:18] Production.INFO: count ==5035 [2025-03-10 14:35:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:35:05 - End Time 2025-03-10 14:35:05 [2025-03-10 14:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650165', 'tblTempUsageDetail_20' ) start [2025-03-10 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650165', 'tblTempUsageDetail_20' ) end [2025-03-10 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650165', 'tblTempVendorCDR_20' ) start [2025-03-10 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650165', 'tblTempVendorCDR_20' ) end [2025-03-10 14:35:20] Production.INFO: ProcessCDR(1,14650165,1,1,2) [2025-03-10 14:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650165', 'tblTempUsageDetail_20' ) start [2025-03-10 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650165', 'tblTempUsageDetail_20' ) end [2025-03-10 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:35:26] Production.INFO: ==17298== Releasing lock... [2025-03-10 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:35:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:36:05 [end_date_ymd] => 2025-03-10 14:36:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 11:36:05' and `end` < '2025-03-10 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-03-10 14:36:18] Production.INFO: count ==5021 [2025-03-10 14:36:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:36:05 - End Time 2025-03-10 14:36:05 [2025-03-10 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650170', 'tblTempUsageDetail_20' ) start [2025-03-10 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650170', 'tblTempUsageDetail_20' ) end [2025-03-10 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650170', 'tblTempVendorCDR_20' ) start [2025-03-10 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650170', 'tblTempVendorCDR_20' ) end [2025-03-10 14:36:21] Production.INFO: ProcessCDR(1,14650170,1,1,2) [2025-03-10 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650170', 'tblTempUsageDetail_20' ) start [2025-03-10 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650170', 'tblTempUsageDetail_20' ) end [2025-03-10 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:36:26] Production.INFO: ==17368== Releasing lock... [2025-03-10 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:36:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:37:05 [end_date_ymd] => 2025-03-10 14:37:05 [RateCDR] => 1 ) [2025-03-10 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:37:05' and `end` < '2025-03-10 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:37:18] Production.INFO: count ==5012 [2025-03-10 14:37:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:37:05 - End Time 2025-03-10 14:37:05 [2025-03-10 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650175', 'tblTempUsageDetail_20' ) start [2025-03-10 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650175', 'tblTempUsageDetail_20' ) end [2025-03-10 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650175', 'tblTempVendorCDR_20' ) start [2025-03-10 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650175', 'tblTempVendorCDR_20' ) end [2025-03-10 14:37:20] Production.INFO: ProcessCDR(1,14650175,1,1,2) [2025-03-10 14:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650175', 'tblTempUsageDetail_20' ) start [2025-03-10 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650175', 'tblTempUsageDetail_20' ) end [2025-03-10 14:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:37:25] Production.INFO: ==17440== Releasing lock... [2025-03-10 14:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:37:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:38:06 [end_date_ymd] => 2025-03-10 14:38:06 [RateCDR] => 1 ) [2025-03-10 14:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:38:06' and `end` < '2025-03-10 14:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:38:19] Production.INFO: count ==5004 [2025-03-10 14:38:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:38:06 - End Time 2025-03-10 14:38:06 [2025-03-10 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650180', 'tblTempUsageDetail_20' ) start [2025-03-10 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650180', 'tblTempUsageDetail_20' ) end [2025-03-10 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650180', 'tblTempVendorCDR_20' ) start [2025-03-10 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650180', 'tblTempVendorCDR_20' ) end [2025-03-10 14:38:21] Production.INFO: ProcessCDR(1,14650180,1,1,2) [2025-03-10 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650180', 'tblTempUsageDetail_20' ) start [2025-03-10 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650180', 'tblTempUsageDetail_20' ) end [2025-03-10 14:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:38:25] Production.INFO: ==17512== Releasing lock... [2025-03-10 14:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:38:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:39:05 [end_date_ymd] => 2025-03-10 14:39:05 [RateCDR] => 1 ) [2025-03-10 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:39:05' and `end` < '2025-03-10 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:39:18] Production.INFO: count ==5003 [2025-03-10 14:39:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:39:05 - End Time 2025-03-10 14:39:05 [2025-03-10 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650185', 'tblTempUsageDetail_20' ) start [2025-03-10 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650185', 'tblTempUsageDetail_20' ) end [2025-03-10 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650185', 'tblTempVendorCDR_20' ) start [2025-03-10 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650185', 'tblTempVendorCDR_20' ) end [2025-03-10 14:39:20] Production.INFO: ProcessCDR(1,14650185,1,1,2) [2025-03-10 14:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650185', 'tblTempUsageDetail_20' ) start [2025-03-10 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650185', 'tblTempUsageDetail_20' ) end [2025-03-10 14:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:39:25] Production.INFO: ==17583== Releasing lock... [2025-03-10 14:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:39:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:40:06 [end_date_ymd] => 2025-03-10 14:40:06 [RateCDR] => 1 ) [2025-03-10 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:40:06' and `end` < '2025-03-10 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:40:19] Production.INFO: count ==4999 [2025-03-10 14:40:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:40:06 - End Time 2025-03-10 14:40:06 [2025-03-10 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650191', 'tblTempUsageDetail_20' ) start [2025-03-10 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650191', 'tblTempUsageDetail_20' ) end [2025-03-10 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650191', 'tblTempVendorCDR_20' ) start [2025-03-10 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650191', 'tblTempVendorCDR_20' ) end [2025-03-10 14:40:21] Production.INFO: ProcessCDR(1,14650191,1,1,2) [2025-03-10 14:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650191', 'tblTempUsageDetail_20' ) start [2025-03-10 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650191', 'tblTempUsageDetail_20' ) end [2025-03-10 14:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:40:27] Production.INFO: ==17657== Releasing lock... [2025-03-10 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:40:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:41:06 [end_date_ymd] => 2025-03-10 14:41:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 11:41:06' and `end` < '2025-03-10 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-03-10 14:41:19] Production.INFO: count ==5050 [2025-03-10 14:41:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:41:06 - End Time 2025-03-10 14:41:06 [2025-03-10 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650196', 'tblTempUsageDetail_20' ) start [2025-03-10 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650196', 'tblTempUsageDetail_20' ) end [2025-03-10 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650196', 'tblTempVendorCDR_20' ) start [2025-03-10 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650196', 'tblTempVendorCDR_20' ) end [2025-03-10 14:41:21] Production.INFO: ProcessCDR(1,14650196,1,1,2) [2025-03-10 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650196', 'tblTempUsageDetail_20' ) start [2025-03-10 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650196', 'tblTempUsageDetail_20' ) end [2025-03-10 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:41:26] Production.INFO: ==17731== Releasing lock... [2025-03-10 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:41:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:42:05 [end_date_ymd] => 2025-03-10 14:42:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 11:42:05' and `end` < '2025-03-10 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-03-10 14:42:19] Production.INFO: count ==5049 [2025-03-10 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:42:05 - End Time 2025-03-10 14:42:05 [2025-03-10 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650201', 'tblTempUsageDetail_20' ) start [2025-03-10 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650201', 'tblTempUsageDetail_20' ) end [2025-03-10 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650201', 'tblTempVendorCDR_20' ) start [2025-03-10 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650201', 'tblTempVendorCDR_20' ) end [2025-03-10 14:42:21] Production.INFO: ProcessCDR(1,14650201,1,1,2) [2025-03-10 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650201', 'tblTempUsageDetail_20' ) start [2025-03-10 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650201', 'tblTempUsageDetail_20' ) end [2025-03-10 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:42:26] Production.INFO: ==17800== Releasing lock... [2025-03-10 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:42:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:43:06 [end_date_ymd] => 2025-03-10 14:43:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 11:43:06' and `end` < '2025-03-10 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-03-10 14:43:19] Production.INFO: count ==5061 [2025-03-10 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:43:06 - End Time 2025-03-10 14:43:06 [2025-03-10 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650206', 'tblTempUsageDetail_20' ) start [2025-03-10 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650206', 'tblTempUsageDetail_20' ) end [2025-03-10 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650206', 'tblTempVendorCDR_20' ) start [2025-03-10 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650206', 'tblTempVendorCDR_20' ) end [2025-03-10 14:43:21] Production.INFO: ProcessCDR(1,14650206,1,1,2) [2025-03-10 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650206', 'tblTempUsageDetail_20' ) start [2025-03-10 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650206', 'tblTempUsageDetail_20' ) end [2025-03-10 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:43:26] Production.INFO: ==17872== Releasing lock... [2025-03-10 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:43:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:44:05 [end_date_ymd] => 2025-03-10 14:44:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 11:44:05' and `end` < '2025-03-10 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-03-10 14:44:19] Production.INFO: count ==5062 [2025-03-10 14:44:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:44:05 - End Time 2025-03-10 14:44:05 [2025-03-10 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650211', 'tblTempUsageDetail_20' ) start [2025-03-10 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650211', 'tblTempUsageDetail_20' ) end [2025-03-10 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650211', 'tblTempVendorCDR_20' ) start [2025-03-10 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650211', 'tblTempVendorCDR_20' ) end [2025-03-10 14:44:21] Production.INFO: ProcessCDR(1,14650211,1,1,2) [2025-03-10 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650211', 'tblTempUsageDetail_20' ) start [2025-03-10 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650211', 'tblTempUsageDetail_20' ) end [2025-03-10 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:44:26] Production.INFO: ==17947== Releasing lock... [2025-03-10 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:44:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:45:06 [end_date_ymd] => 2025-03-10 14:45:06 [RateCDR] => 1 ) [2025-03-10 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:45:06' and `end` < '2025-03-10 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:45:19] Production.INFO: count ==5063 [2025-03-10 14:45:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:45:06 - End Time 2025-03-10 14:45:06 [2025-03-10 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650216', 'tblTempUsageDetail_20' ) start [2025-03-10 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650216', 'tblTempUsageDetail_20' ) end [2025-03-10 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650216', 'tblTempVendorCDR_20' ) start [2025-03-10 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650216', 'tblTempVendorCDR_20' ) end [2025-03-10 14:45:22] Production.INFO: ProcessCDR(1,14650216,1,1,2) [2025-03-10 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650216', 'tblTempUsageDetail_20' ) start [2025-03-10 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650216', 'tblTempUsageDetail_20' ) end [2025-03-10 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:45:27] Production.INFO: ==18020== Releasing lock... [2025-03-10 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:45:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:46:05 [end_date_ymd] => 2025-03-10 14:46:05 [RateCDR] => 1 ) [2025-03-10 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:46:05' and `end` < '2025-03-10 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:46:18] Production.INFO: count ==5082 [2025-03-10 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:46:05 - End Time 2025-03-10 14:46:05 [2025-03-10 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650221', 'tblTempUsageDetail_20' ) start [2025-03-10 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650221', 'tblTempUsageDetail_20' ) end [2025-03-10 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650221', 'tblTempVendorCDR_20' ) start [2025-03-10 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650221', 'tblTempVendorCDR_20' ) end [2025-03-10 14:46:21] Production.INFO: ProcessCDR(1,14650221,1,1,2) [2025-03-10 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650221', 'tblTempUsageDetail_20' ) start [2025-03-10 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650221', 'tblTempUsageDetail_20' ) end [2025-03-10 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:46:27] Production.INFO: ==18091== Releasing lock... [2025-03-10 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:46:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:47:06 [end_date_ymd] => 2025-03-10 14:47:06 [RateCDR] => 1 ) [2025-03-10 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:47:06' and `end` < '2025-03-10 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:47:19] Production.INFO: count ==5071 [2025-03-10 14:47:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:47:06 - End Time 2025-03-10 14:47:06 [2025-03-10 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650226', 'tblTempUsageDetail_20' ) start [2025-03-10 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650226', 'tblTempUsageDetail_20' ) end [2025-03-10 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650226', 'tblTempVendorCDR_20' ) start [2025-03-10 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650226', 'tblTempVendorCDR_20' ) end [2025-03-10 14:47:21] Production.INFO: ProcessCDR(1,14650226,1,1,2) [2025-03-10 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650226', 'tblTempUsageDetail_20' ) start [2025-03-10 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650226', 'tblTempUsageDetail_20' ) end [2025-03-10 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:47:27] Production.INFO: ==18164== Releasing lock... [2025-03-10 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:47:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:48:05 [end_date_ymd] => 2025-03-10 14:48:05 [RateCDR] => 1 ) [2025-03-10 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:48:05' and `end` < '2025-03-10 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:48:18] Production.INFO: count ==5072 [2025-03-10 14:48:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:48:05 - End Time 2025-03-10 14:48:05 [2025-03-10 14:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650231', 'tblTempUsageDetail_20' ) start [2025-03-10 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650231', 'tblTempUsageDetail_20' ) end [2025-03-10 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650231', 'tblTempVendorCDR_20' ) start [2025-03-10 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650231', 'tblTempVendorCDR_20' ) end [2025-03-10 14:48:20] Production.INFO: ProcessCDR(1,14650231,1,1,2) [2025-03-10 14:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650231', 'tblTempUsageDetail_20' ) start [2025-03-10 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650231', 'tblTempUsageDetail_20' ) end [2025-03-10 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:48:26] Production.INFO: ==18240== Releasing lock... [2025-03-10 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:48:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:49:06 [end_date_ymd] => 2025-03-10 14:49:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 11:49:06' and `end` < '2025-03-10 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-03-10 14:49:19] Production.INFO: count ==5062 [2025-03-10 14:49:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:49:06 - End Time 2025-03-10 14:49:06 [2025-03-10 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650236', 'tblTempUsageDetail_20' ) start [2025-03-10 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650236', 'tblTempUsageDetail_20' ) end [2025-03-10 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650236', 'tblTempVendorCDR_20' ) start [2025-03-10 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650236', 'tblTempVendorCDR_20' ) end [2025-03-10 14:49:21] Production.INFO: ProcessCDR(1,14650236,1,1,2) [2025-03-10 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650236', 'tblTempUsageDetail_20' ) start [2025-03-10 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650236', 'tblTempUsageDetail_20' ) end [2025-03-10 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:49:27] Production.INFO: ==18352== Releasing lock... [2025-03-10 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:49:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:50:06 [end_date_ymd] => 2025-03-10 14:50:06 [RateCDR] => 1 ) [2025-03-10 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:50:06' and `end` < '2025-03-10 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:50:19] Production.INFO: count ==5073 [2025-03-10 14:50:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:50:06 - End Time 2025-03-10 14:50:06 [2025-03-10 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650242', 'tblTempUsageDetail_20' ) start [2025-03-10 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650242', 'tblTempUsageDetail_20' ) end [2025-03-10 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650242', 'tblTempVendorCDR_20' ) start [2025-03-10 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650242', 'tblTempVendorCDR_20' ) end [2025-03-10 14:50:21] Production.INFO: ProcessCDR(1,14650242,1,1,2) [2025-03-10 14:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650242', 'tblTempUsageDetail_20' ) start [2025-03-10 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650242', 'tblTempUsageDetail_20' ) end [2025-03-10 14:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:50:27] Production.INFO: ==18426== Releasing lock... [2025-03-10 14:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:50:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:51:06 [end_date_ymd] => 2025-03-10 14:51:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 11:51:06' and `end` < '2025-03-10 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-03-10 14:51:19] Production.INFO: count ==5121 [2025-03-10 14:51:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:51:06 - End Time 2025-03-10 14:51:06 [2025-03-10 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650247', 'tblTempUsageDetail_20' ) start [2025-03-10 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650247', 'tblTempUsageDetail_20' ) end [2025-03-10 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650247', 'tblTempVendorCDR_20' ) start [2025-03-10 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650247', 'tblTempVendorCDR_20' ) end [2025-03-10 14:51:21] Production.INFO: ProcessCDR(1,14650247,1,1,2) [2025-03-10 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650247', 'tblTempUsageDetail_20' ) start [2025-03-10 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650247', 'tblTempUsageDetail_20' ) end [2025-03-10 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:51:26] Production.INFO: ==18498== Releasing lock... [2025-03-10 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:51:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:52:06 [end_date_ymd] => 2025-03-10 14:52:06 [RateCDR] => 1 ) [2025-03-10 14:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:52:06' and `end` < '2025-03-10 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:52:19] Production.INFO: count ==5101 [2025-03-10 14:52:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:52:06 - End Time 2025-03-10 14:52:06 [2025-03-10 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650252', 'tblTempUsageDetail_20' ) start [2025-03-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650252', 'tblTempUsageDetail_20' ) end [2025-03-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650252', 'tblTempVendorCDR_20' ) start [2025-03-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650252', 'tblTempVendorCDR_20' ) end [2025-03-10 14:52:21] Production.INFO: ProcessCDR(1,14650252,1,1,2) [2025-03-10 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650252', 'tblTempUsageDetail_20' ) start [2025-03-10 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650252', 'tblTempUsageDetail_20' ) end [2025-03-10 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:52:26] Production.INFO: ==18569== Releasing lock... [2025-03-10 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:52:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:53:05 [end_date_ymd] => 2025-03-10 14:53:05 [RateCDR] => 1 ) [2025-03-10 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:53:05' and `end` < '2025-03-10 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:53:18] Production.INFO: count ==5068 [2025-03-10 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:53:05 - End Time 2025-03-10 14:53:05 [2025-03-10 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650257', 'tblTempUsageDetail_20' ) start [2025-03-10 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650257', 'tblTempUsageDetail_20' ) end [2025-03-10 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650257', 'tblTempVendorCDR_20' ) start [2025-03-10 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650257', 'tblTempVendorCDR_20' ) end [2025-03-10 14:53:21] Production.INFO: ProcessCDR(1,14650257,1,1,2) [2025-03-10 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650257', 'tblTempUsageDetail_20' ) start [2025-03-10 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650257', 'tblTempUsageDetail_20' ) end [2025-03-10 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:53:26] Production.INFO: ==18642== Releasing lock... [2025-03-10 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:53:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:54:05 [end_date_ymd] => 2025-03-10 14:54:05 [RateCDR] => 1 ) [2025-03-10 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:54:05' and `end` < '2025-03-10 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:54:18] Production.INFO: count ==5084 [2025-03-10 14:54:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:54:05 - End Time 2025-03-10 14:54:05 [2025-03-10 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650262', 'tblTempUsageDetail_20' ) start [2025-03-10 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650262', 'tblTempUsageDetail_20' ) end [2025-03-10 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650262', 'tblTempVendorCDR_20' ) start [2025-03-10 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650262', 'tblTempVendorCDR_20' ) end [2025-03-10 14:54:21] Production.INFO: ProcessCDR(1,14650262,1,1,2) [2025-03-10 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650262', 'tblTempUsageDetail_20' ) start [2025-03-10 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650262', 'tblTempUsageDetail_20' ) end [2025-03-10 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:54:26] Production.INFO: ==18714== Releasing lock... [2025-03-10 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:54:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:55:05 [end_date_ymd] => 2025-03-10 14:55:05 [RateCDR] => 1 ) [2025-03-10 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:55:05' and `end` < '2025-03-10 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:55:19] Production.INFO: count ==5098 [2025-03-10 14:55:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:55:05 - End Time 2025-03-10 14:55:05 [2025-03-10 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650267', 'tblTempUsageDetail_20' ) start [2025-03-10 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650267', 'tblTempUsageDetail_20' ) end [2025-03-10 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650267', 'tblTempVendorCDR_20' ) start [2025-03-10 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650267', 'tblTempVendorCDR_20' ) end [2025-03-10 14:55:21] Production.INFO: ProcessCDR(1,14650267,1,1,2) [2025-03-10 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650267', 'tblTempUsageDetail_20' ) start [2025-03-10 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650267', 'tblTempUsageDetail_20' ) end [2025-03-10 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:55:26] Production.INFO: ==18786== Releasing lock... [2025-03-10 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:55:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:56:05 [end_date_ymd] => 2025-03-10 14:56:05 [RateCDR] => 1 ) [2025-03-10 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:56:05' and `end` < '2025-03-10 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:56:18] Production.INFO: count ==5091 [2025-03-10 14:56:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:56:05 - End Time 2025-03-10 14:56:05 [2025-03-10 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650272', 'tblTempUsageDetail_20' ) start [2025-03-10 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650272', 'tblTempUsageDetail_20' ) end [2025-03-10 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650272', 'tblTempVendorCDR_20' ) start [2025-03-10 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650272', 'tblTempVendorCDR_20' ) end [2025-03-10 14:56:21] Production.INFO: ProcessCDR(1,14650272,1,1,2) [2025-03-10 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650272', 'tblTempUsageDetail_20' ) start [2025-03-10 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650272', 'tblTempUsageDetail_20' ) end [2025-03-10 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:56:26] Production.INFO: ==18859== Releasing lock... [2025-03-10 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:56:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:57:05 [end_date_ymd] => 2025-03-10 14:57:05 [RateCDR] => 1 ) [2025-03-10 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:57:05' and `end` < '2025-03-10 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:57:19] Production.INFO: count ==5076 [2025-03-10 14:57:21] Production.ERROR: pbx CDR StartTime 2025-03-10 11:57:05 - End Time 2025-03-10 14:57:05 [2025-03-10 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650277', 'tblTempUsageDetail_20' ) start [2025-03-10 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650277', 'tblTempUsageDetail_20' ) end [2025-03-10 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650277', 'tblTempVendorCDR_20' ) start [2025-03-10 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650277', 'tblTempVendorCDR_20' ) end [2025-03-10 14:57:21] Production.INFO: ProcessCDR(1,14650277,1,1,2) [2025-03-10 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650277', 'tblTempUsageDetail_20' ) start [2025-03-10 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650277', 'tblTempUsageDetail_20' ) end [2025-03-10 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:57:26] Production.INFO: ==18935== Releasing lock... [2025-03-10 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:57:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:58:04 [end_date_ymd] => 2025-03-10 14:58:04 [RateCDR] => 1 ) [2025-03-10 14:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:58:04' and `end` < '2025-03-10 14:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:58:18] Production.INFO: count ==5081 [2025-03-10 14:58:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:58:04 - End Time 2025-03-10 14:58:04 [2025-03-10 14:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650282', 'tblTempUsageDetail_20' ) start [2025-03-10 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650282', 'tblTempUsageDetail_20' ) end [2025-03-10 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650282', 'tblTempVendorCDR_20' ) start [2025-03-10 14:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650282', 'tblTempVendorCDR_20' ) end [2025-03-10 14:58:20] Production.INFO: ProcessCDR(1,14650282,1,1,2) [2025-03-10 14:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650282', 'tblTempUsageDetail_20' ) start [2025-03-10 14:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650282', 'tblTempUsageDetail_20' ) end [2025-03-10 14:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:58:25] Production.INFO: ==19004== Releasing lock... [2025-03-10 14:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:58:25] Production.INFO: 66 MB #Memory Used# [2025-03-10 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 11:59:05 [end_date_ymd] => 2025-03-10 14:59:05 [RateCDR] => 1 ) [2025-03-10 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 11:59:05' and `end` < '2025-03-10 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 14:59:18] Production.INFO: count ==5093 [2025-03-10 14:59:20] Production.ERROR: pbx CDR StartTime 2025-03-10 11:59:05 - End Time 2025-03-10 14:59:05 [2025-03-10 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650287', 'tblTempUsageDetail_20' ) start [2025-03-10 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650287', 'tblTempUsageDetail_20' ) end [2025-03-10 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650287', 'tblTempVendorCDR_20' ) start [2025-03-10 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650287', 'tblTempVendorCDR_20' ) end [2025-03-10 14:59:20] Production.INFO: ProcessCDR(1,14650287,1,1,2) [2025-03-10 14:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650287', 'tblTempUsageDetail_20' ) start [2025-03-10 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650287', 'tblTempUsageDetail_20' ) end [2025-03-10 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 14:59:26] Production.INFO: ==19075== Releasing lock... [2025-03-10 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 14:59:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:00:06 [end_date_ymd] => 2025-03-10 15:00:06 [RateCDR] => 1 ) [2025-03-10 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:00:06' and `end` < '2025-03-10 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:00:19] Production.INFO: count ==5069 [2025-03-10 15:00:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:00:06 - End Time 2025-03-10 15:00:06 [2025-03-10 15:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650293', 'tblTempUsageDetail_20' ) start [2025-03-10 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650293', 'tblTempUsageDetail_20' ) end [2025-03-10 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650293', 'tblTempVendorCDR_20' ) start [2025-03-10 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650293', 'tblTempVendorCDR_20' ) end [2025-03-10 15:00:22] Production.INFO: ProcessCDR(1,14650293,1,1,2) [2025-03-10 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650293', 'tblTempUsageDetail_20' ) start [2025-03-10 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650293', 'tblTempUsageDetail_20' ) end [2025-03-10 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:00:27] Production.INFO: ==19154== Releasing lock... [2025-03-10 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:00:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:01:05 [end_date_ymd] => 2025-03-10 15:01:05 [RateCDR] => 1 ) [2025-03-10 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:01:05' and `end` < '2025-03-10 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:01:19] Production.INFO: count ==5079 [2025-03-10 15:01:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:01:05 - End Time 2025-03-10 15:01:05 [2025-03-10 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650298', 'tblTempUsageDetail_20' ) start [2025-03-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650298', 'tblTempUsageDetail_20' ) end [2025-03-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650298', 'tblTempVendorCDR_20' ) start [2025-03-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650298', 'tblTempVendorCDR_20' ) end [2025-03-10 15:01:21] Production.INFO: ProcessCDR(1,14650298,1,1,2) [2025-03-10 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650298', 'tblTempUsageDetail_20' ) start [2025-03-10 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650298', 'tblTempUsageDetail_20' ) end [2025-03-10 15:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:01:26] Production.INFO: ==19321== Releasing lock... [2025-03-10 15:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:01:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:02:05 [end_date_ymd] => 2025-03-10 15:02:05 [RateCDR] => 1 ) [2025-03-10 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:02:05' and `end` < '2025-03-10 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:02:19] Production.INFO: count ==5087 [2025-03-10 15:02:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:02:05 - End Time 2025-03-10 15:02:05 [2025-03-10 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650303', 'tblTempUsageDetail_20' ) start [2025-03-10 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650303', 'tblTempUsageDetail_20' ) end [2025-03-10 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650303', 'tblTempVendorCDR_20' ) start [2025-03-10 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650303', 'tblTempVendorCDR_20' ) end [2025-03-10 15:02:21] Production.INFO: ProcessCDR(1,14650303,1,1,2) [2025-03-10 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650303', 'tblTempUsageDetail_20' ) start [2025-03-10 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650303', 'tblTempUsageDetail_20' ) end [2025-03-10 15:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:02:27] Production.INFO: ==19391== Releasing lock... [2025-03-10 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:02:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:03:05 [end_date_ymd] => 2025-03-10 15:03:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 12:03:05' and `end` < '2025-03-10 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-03-10 15:03:18] Production.INFO: count ==5105 [2025-03-10 15:03:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:03:05 - End Time 2025-03-10 15:03:05 [2025-03-10 15:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650308', 'tblTempUsageDetail_20' ) start [2025-03-10 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650308', 'tblTempUsageDetail_20' ) end [2025-03-10 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650308', 'tblTempVendorCDR_20' ) start [2025-03-10 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650308', 'tblTempVendorCDR_20' ) end [2025-03-10 15:03:21] Production.INFO: ProcessCDR(1,14650308,1,1,2) [2025-03-10 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650308', 'tblTempUsageDetail_20' ) start [2025-03-10 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650308', 'tblTempUsageDetail_20' ) end [2025-03-10 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:03:26] Production.INFO: ==19460== Releasing lock... [2025-03-10 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:03:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:04:06 [end_date_ymd] => 2025-03-10 15:04:06 [RateCDR] => 1 ) [2025-03-10 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:04:06' and `end` < '2025-03-10 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:04:19] Production.INFO: count ==5107 [2025-03-10 15:04:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:04:06 - End Time 2025-03-10 15:04:06 [2025-03-10 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650313', 'tblTempUsageDetail_20' ) start [2025-03-10 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650313', 'tblTempUsageDetail_20' ) end [2025-03-10 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650313', 'tblTempVendorCDR_20' ) start [2025-03-10 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650313', 'tblTempVendorCDR_20' ) end [2025-03-10 15:04:21] Production.INFO: ProcessCDR(1,14650313,1,1,2) [2025-03-10 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650313', 'tblTempUsageDetail_20' ) start [2025-03-10 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650313', 'tblTempUsageDetail_20' ) end [2025-03-10 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:04:27] Production.INFO: ==19531== Releasing lock... [2025-03-10 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:04:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:05:05 [end_date_ymd] => 2025-03-10 15:05:05 [RateCDR] => 1 ) [2025-03-10 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:05:05' and `end` < '2025-03-10 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:05:18] Production.INFO: count ==5123 [2025-03-10 15:05:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:05:05 - End Time 2025-03-10 15:05:05 [2025-03-10 15:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650318', 'tblTempUsageDetail_20' ) start [2025-03-10 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650318', 'tblTempUsageDetail_20' ) end [2025-03-10 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650318', 'tblTempVendorCDR_20' ) start [2025-03-10 15:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650318', 'tblTempVendorCDR_20' ) end [2025-03-10 15:05:20] Production.INFO: ProcessCDR(1,14650318,1,1,2) [2025-03-10 15:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650318', 'tblTempUsageDetail_20' ) start [2025-03-10 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650318', 'tblTempUsageDetail_20' ) end [2025-03-10 15:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:05:25] Production.INFO: ==19720== Releasing lock... [2025-03-10 15:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:05:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:06:05 [end_date_ymd] => 2025-03-10 15:06:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 12:06:05' and `end` < '2025-03-10 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-03-10 15:06:19] Production.INFO: count ==5144 [2025-03-10 15:06:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:06:05 - End Time 2025-03-10 15:06:05 [2025-03-10 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650323', 'tblTempUsageDetail_20' ) start [2025-03-10 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650323', 'tblTempUsageDetail_20' ) end [2025-03-10 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650323', 'tblTempVendorCDR_20' ) start [2025-03-10 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650323', 'tblTempVendorCDR_20' ) end [2025-03-10 15:06:21] Production.INFO: ProcessCDR(1,14650323,1,1,2) [2025-03-10 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650323', 'tblTempUsageDetail_20' ) start [2025-03-10 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650323', 'tblTempUsageDetail_20' ) end [2025-03-10 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:06:26] Production.INFO: ==19791== Releasing lock... [2025-03-10 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:06:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:07:04 [end_date_ymd] => 2025-03-10 15:07:04 [RateCDR] => 1 ) [2025-03-10 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:07:04' and `end` < '2025-03-10 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:07:18] Production.INFO: count ==5151 [2025-03-10 15:07:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:07:04 - End Time 2025-03-10 15:07:04 [2025-03-10 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650328', 'tblTempUsageDetail_20' ) start [2025-03-10 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650328', 'tblTempUsageDetail_20' ) end [2025-03-10 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650328', 'tblTempVendorCDR_20' ) start [2025-03-10 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650328', 'tblTempVendorCDR_20' ) end [2025-03-10 15:07:20] Production.INFO: ProcessCDR(1,14650328,1,1,2) [2025-03-10 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650328', 'tblTempUsageDetail_20' ) start [2025-03-10 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650328', 'tblTempUsageDetail_20' ) end [2025-03-10 15:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:07:25] Production.INFO: ==19866== Releasing lock... [2025-03-10 15:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:07:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:08:05 [end_date_ymd] => 2025-03-10 15:08:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 12:08:05' and `end` < '2025-03-10 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-03-10 15:08:18] Production.INFO: count ==5157 [2025-03-10 15:08:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:08:05 - End Time 2025-03-10 15:08:05 [2025-03-10 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650333', 'tblTempUsageDetail_20' ) start [2025-03-10 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650333', 'tblTempUsageDetail_20' ) end [2025-03-10 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650333', 'tblTempVendorCDR_20' ) start [2025-03-10 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650333', 'tblTempVendorCDR_20' ) end [2025-03-10 15:08:21] Production.INFO: ProcessCDR(1,14650333,1,1,2) [2025-03-10 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650333', 'tblTempUsageDetail_20' ) start [2025-03-10 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650333', 'tblTempUsageDetail_20' ) end [2025-03-10 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:08:26] Production.INFO: ==20016== Releasing lock... [2025-03-10 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:08:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:09:05 [end_date_ymd] => 2025-03-10 15:09:05 [RateCDR] => 1 ) [2025-03-10 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:09:05' and `end` < '2025-03-10 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:09:18] Production.INFO: count ==5165 [2025-03-10 15:09:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:09:05 - End Time 2025-03-10 15:09:05 [2025-03-10 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650338', 'tblTempUsageDetail_20' ) start [2025-03-10 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650338', 'tblTempUsageDetail_20' ) end [2025-03-10 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650338', 'tblTempVendorCDR_20' ) start [2025-03-10 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650338', 'tblTempVendorCDR_20' ) end [2025-03-10 15:09:21] Production.INFO: ProcessCDR(1,14650338,1,1,2) [2025-03-10 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650338', 'tblTempUsageDetail_20' ) start [2025-03-10 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650338', 'tblTempUsageDetail_20' ) end [2025-03-10 15:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:09:25] Production.INFO: ==20089== Releasing lock... [2025-03-10 15:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:09:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:10:06 [end_date_ymd] => 2025-03-10 15:10:06 [RateCDR] => 1 ) [2025-03-10 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:10:06' and `end` < '2025-03-10 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:10:19] Production.INFO: count ==5168 [2025-03-10 15:10:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:10:06 - End Time 2025-03-10 15:10:06 [2025-03-10 15:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650344', 'tblTempUsageDetail_20' ) start [2025-03-10 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650344', 'tblTempUsageDetail_20' ) end [2025-03-10 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650344', 'tblTempVendorCDR_20' ) start [2025-03-10 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650344', 'tblTempVendorCDR_20' ) end [2025-03-10 15:10:21] Production.INFO: ProcessCDR(1,14650344,1,1,2) [2025-03-10 15:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650344', 'tblTempUsageDetail_20' ) start [2025-03-10 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650344', 'tblTempUsageDetail_20' ) end [2025-03-10 15:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:10:26] Production.INFO: ==20164== Releasing lock... [2025-03-10 15:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:10:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:11:05 [end_date_ymd] => 2025-03-10 15:11:05 [RateCDR] => 1 ) [2025-03-10 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:11:05' and `end` < '2025-03-10 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:11:18] Production.INFO: count ==5180 [2025-03-10 15:11:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:11:05 - End Time 2025-03-10 15:11:05 [2025-03-10 15:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650349', 'tblTempUsageDetail_20' ) start [2025-03-10 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650349', 'tblTempUsageDetail_20' ) end [2025-03-10 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650349', 'tblTempVendorCDR_20' ) start [2025-03-10 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650349', 'tblTempVendorCDR_20' ) end [2025-03-10 15:11:20] Production.INFO: ProcessCDR(1,14650349,1,1,2) [2025-03-10 15:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650349', 'tblTempUsageDetail_20' ) start [2025-03-10 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650349', 'tblTempUsageDetail_20' ) end [2025-03-10 15:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:11:25] Production.INFO: ==20237== Releasing lock... [2025-03-10 15:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:11:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:12:05 [end_date_ymd] => 2025-03-10 15:12:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 12:12:05' and `end` < '2025-03-10 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-03-10 15:12:19] Production.INFO: count ==5167 [2025-03-10 15:12:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:12:05 - End Time 2025-03-10 15:12:05 [2025-03-10 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650354', 'tblTempUsageDetail_20' ) start [2025-03-10 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650354', 'tblTempUsageDetail_20' ) end [2025-03-10 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650354', 'tblTempVendorCDR_20' ) start [2025-03-10 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650354', 'tblTempVendorCDR_20' ) end [2025-03-10 15:12:21] Production.INFO: ProcessCDR(1,14650354,1,1,2) [2025-03-10 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650354', 'tblTempUsageDetail_20' ) start [2025-03-10 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650354', 'tblTempUsageDetail_20' ) end [2025-03-10 15:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:12:26] Production.INFO: ==20386== Releasing lock... [2025-03-10 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:12:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:13:06 [end_date_ymd] => 2025-03-10 15:13:06 [RateCDR] => 1 ) [2025-03-10 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:13:06' and `end` < '2025-03-10 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:13:19] Production.INFO: count ==5170 [2025-03-10 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:13:06 - End Time 2025-03-10 15:13:06 [2025-03-10 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650359', 'tblTempUsageDetail_20' ) start [2025-03-10 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650359', 'tblTempUsageDetail_20' ) end [2025-03-10 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650359', 'tblTempVendorCDR_20' ) start [2025-03-10 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650359', 'tblTempVendorCDR_20' ) end [2025-03-10 15:13:22] Production.INFO: ProcessCDR(1,14650359,1,1,2) [2025-03-10 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650359', 'tblTempUsageDetail_20' ) start [2025-03-10 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650359', 'tblTempUsageDetail_20' ) end [2025-03-10 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:13:27] Production.INFO: ==20458== Releasing lock... [2025-03-10 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:13:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:14:05 [end_date_ymd] => 2025-03-10 15:14:05 [RateCDR] => 1 ) [2025-03-10 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:14:05' and `end` < '2025-03-10 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:14:18] Production.INFO: count ==5175 [2025-03-10 15:14:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:14:05 - End Time 2025-03-10 15:14:05 [2025-03-10 15:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650364', 'tblTempUsageDetail_20' ) start [2025-03-10 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650364', 'tblTempUsageDetail_20' ) end [2025-03-10 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650364', 'tblTempVendorCDR_20' ) start [2025-03-10 15:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650364', 'tblTempVendorCDR_20' ) end [2025-03-10 15:14:20] Production.INFO: ProcessCDR(1,14650364,1,1,2) [2025-03-10 15:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650364', 'tblTempUsageDetail_20' ) start [2025-03-10 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650364', 'tblTempUsageDetail_20' ) end [2025-03-10 15:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:14:25] Production.INFO: ==20528== Releasing lock... [2025-03-10 15:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:14:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:15:05 [end_date_ymd] => 2025-03-10 15:15:05 [RateCDR] => 1 ) [2025-03-10 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:15:05' and `end` < '2025-03-10 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:15:18] Production.INFO: count ==5174 [2025-03-10 15:15:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:15:05 - End Time 2025-03-10 15:15:05 [2025-03-10 15:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650369', 'tblTempUsageDetail_20' ) start [2025-03-10 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650369', 'tblTempUsageDetail_20' ) end [2025-03-10 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650369', 'tblTempVendorCDR_20' ) start [2025-03-10 15:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650369', 'tblTempVendorCDR_20' ) end [2025-03-10 15:15:20] Production.INFO: ProcessCDR(1,14650369,1,1,2) [2025-03-10 15:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650369', 'tblTempUsageDetail_20' ) start [2025-03-10 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650369', 'tblTempUsageDetail_20' ) end [2025-03-10 15:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:15:25] Production.INFO: ==20679== Releasing lock... [2025-03-10 15:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:15:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:16:06 [end_date_ymd] => 2025-03-10 15:16:06 [RateCDR] => 1 ) [2025-03-10 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:16:06' and `end` < '2025-03-10 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:16:19] Production.INFO: count ==5182 [2025-03-10 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:16:06 - End Time 2025-03-10 15:16:06 [2025-03-10 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650374', 'tblTempUsageDetail_20' ) start [2025-03-10 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650374', 'tblTempUsageDetail_20' ) end [2025-03-10 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650374', 'tblTempVendorCDR_20' ) start [2025-03-10 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650374', 'tblTempVendorCDR_20' ) end [2025-03-10 15:16:21] Production.INFO: ProcessCDR(1,14650374,1,1,2) [2025-03-10 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650374', 'tblTempUsageDetail_20' ) start [2025-03-10 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650374', 'tblTempUsageDetail_20' ) end [2025-03-10 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:16:27] Production.INFO: ==20749== Releasing lock... [2025-03-10 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:16:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:17:05 [end_date_ymd] => 2025-03-10 15:17:05 [RateCDR] => 1 ) [2025-03-10 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:17:05' and `end` < '2025-03-10 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:17:18] Production.INFO: count ==5179 [2025-03-10 15:17:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:17:05 - End Time 2025-03-10 15:17:05 [2025-03-10 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650379', 'tblTempUsageDetail_20' ) start [2025-03-10 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650379', 'tblTempUsageDetail_20' ) end [2025-03-10 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650379', 'tblTempVendorCDR_20' ) start [2025-03-10 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650379', 'tblTempVendorCDR_20' ) end [2025-03-10 15:17:20] Production.INFO: ProcessCDR(1,14650379,1,1,2) [2025-03-10 15:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650379', 'tblTempUsageDetail_20' ) start [2025-03-10 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650379', 'tblTempUsageDetail_20' ) end [2025-03-10 15:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:17:25] Production.INFO: ==20819== Releasing lock... [2025-03-10 15:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:17:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:18:05 [end_date_ymd] => 2025-03-10 15:18:05 [RateCDR] => 1 ) [2025-03-10 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:18:05' and `end` < '2025-03-10 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:18:19] Production.INFO: count ==5187 [2025-03-10 15:18:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:18:05 - End Time 2025-03-10 15:18:05 [2025-03-10 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650384', 'tblTempUsageDetail_20' ) start [2025-03-10 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650384', 'tblTempUsageDetail_20' ) end [2025-03-10 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650384', 'tblTempVendorCDR_20' ) start [2025-03-10 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650384', 'tblTempVendorCDR_20' ) end [2025-03-10 15:18:21] Production.INFO: ProcessCDR(1,14650384,1,1,2) [2025-03-10 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650384', 'tblTempUsageDetail_20' ) start [2025-03-10 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650384', 'tblTempUsageDetail_20' ) end [2025-03-10 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:18:27] Production.INFO: ==20890== Releasing lock... [2025-03-10 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:18:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:19:05 [end_date_ymd] => 2025-03-10 15:19:05 [RateCDR] => 1 ) [2025-03-10 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:19:05' and `end` < '2025-03-10 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:19:19] Production.INFO: count ==5178 [2025-03-10 15:19:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:19:05 - End Time 2025-03-10 15:19:05 [2025-03-10 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650389', 'tblTempUsageDetail_20' ) start [2025-03-10 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650389', 'tblTempUsageDetail_20' ) end [2025-03-10 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650389', 'tblTempVendorCDR_20' ) start [2025-03-10 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650389', 'tblTempVendorCDR_20' ) end [2025-03-10 15:19:21] Production.INFO: ProcessCDR(1,14650389,1,1,2) [2025-03-10 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650389', 'tblTempUsageDetail_20' ) start [2025-03-10 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650389', 'tblTempUsageDetail_20' ) end [2025-03-10 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:19:26] Production.INFO: ==20963== Releasing lock... [2025-03-10 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:19:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:20:06 [end_date_ymd] => 2025-03-10 15:20:06 [RateCDR] => 1 ) [2025-03-10 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:20:06' and `end` < '2025-03-10 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:20:19] Production.INFO: count ==5196 [2025-03-10 15:20:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:20:06 - End Time 2025-03-10 15:20:06 [2025-03-10 15:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650394', 'tblTempUsageDetail_20' ) start [2025-03-10 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650394', 'tblTempUsageDetail_20' ) end [2025-03-10 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650394', 'tblTempVendorCDR_20' ) start [2025-03-10 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650394', 'tblTempVendorCDR_20' ) end [2025-03-10 15:20:22] Production.INFO: ProcessCDR(1,14650394,1,1,2) [2025-03-10 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650394', 'tblTempUsageDetail_20' ) start [2025-03-10 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650394', 'tblTempUsageDetail_20' ) end [2025-03-10 15:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:20:26] Production.INFO: ==21076== Releasing lock... [2025-03-10 15:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:20:26] Production.INFO: 67 MB #Memory Used# [2025-03-10 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:21:06 [end_date_ymd] => 2025-03-10 15:21:06 [RateCDR] => 1 ) [2025-03-10 15:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:21:06' and `end` < '2025-03-10 15:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:21:19] Production.INFO: count ==5231 [2025-03-10 15:21:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:21:06 - End Time 2025-03-10 15:21:06 [2025-03-10 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650400', 'tblTempUsageDetail_20' ) start [2025-03-10 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650400', 'tblTempUsageDetail_20' ) end [2025-03-10 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650400', 'tblTempVendorCDR_20' ) start [2025-03-10 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650400', 'tblTempVendorCDR_20' ) end [2025-03-10 15:21:21] Production.INFO: ProcessCDR(1,14650400,1,1,2) [2025-03-10 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650400', 'tblTempUsageDetail_20' ) start [2025-03-10 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650400', 'tblTempUsageDetail_20' ) end [2025-03-10 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:21:27] Production.INFO: ==21149== Releasing lock... [2025-03-10 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:21:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:22:05 [end_date_ymd] => 2025-03-10 15:22:05 [RateCDR] => 1 ) [2025-03-10 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:22:05' and `end` < '2025-03-10 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:22:19] Production.INFO: count ==5245 [2025-03-10 15:22:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:22:05 - End Time 2025-03-10 15:22:05 [2025-03-10 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650405', 'tblTempUsageDetail_20' ) start [2025-03-10 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650405', 'tblTempUsageDetail_20' ) end [2025-03-10 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650405', 'tblTempVendorCDR_20' ) start [2025-03-10 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650405', 'tblTempVendorCDR_20' ) end [2025-03-10 15:22:21] Production.INFO: ProcessCDR(1,14650405,1,1,2) [2025-03-10 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650405', 'tblTempUsageDetail_20' ) start [2025-03-10 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650405', 'tblTempUsageDetail_20' ) end [2025-03-10 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:22:26] Production.INFO: ==21222== Releasing lock... [2025-03-10 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:22:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:23:06 [end_date_ymd] => 2025-03-10 15:23:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 12:23:06' and `end` < '2025-03-10 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-03-10 15:23:19] Production.INFO: count ==5274 [2025-03-10 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:23:06 - End Time 2025-03-10 15:23:06 [2025-03-10 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650410', 'tblTempUsageDetail_20' ) start [2025-03-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650410', 'tblTempUsageDetail_20' ) end [2025-03-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650410', 'tblTempVendorCDR_20' ) start [2025-03-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650410', 'tblTempVendorCDR_20' ) end [2025-03-10 15:23:21] Production.INFO: ProcessCDR(1,14650410,1,1,2) [2025-03-10 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650410', 'tblTempUsageDetail_20' ) start [2025-03-10 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650410', 'tblTempUsageDetail_20' ) end [2025-03-10 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:23:27] Production.INFO: ==21293== Releasing lock... [2025-03-10 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:23:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-10 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:24:05 [end_date_ymd] => 2025-03-10 15:24:05 [RateCDR] => 1 ) [2025-03-10 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:24:05' and `end` < '2025-03-10 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:24:19] Production.INFO: count ==5262 [2025-03-10 15:24:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:24:05 - End Time 2025-03-10 15:24:05 [2025-03-10 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650415', 'tblTempUsageDetail_20' ) start [2025-03-10 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650415', 'tblTempUsageDetail_20' ) end [2025-03-10 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650415', 'tblTempVendorCDR_20' ) start [2025-03-10 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650415', 'tblTempVendorCDR_20' ) end [2025-03-10 15:24:21] Production.INFO: ProcessCDR(1,14650415,1,1,2) [2025-03-10 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650415', 'tblTempUsageDetail_20' ) start [2025-03-10 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650415', 'tblTempUsageDetail_20' ) end [2025-03-10 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:24:26] Production.INFO: ==21369== Releasing lock... [2025-03-10 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:24:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:25:05 [end_date_ymd] => 2025-03-10 15:25:05 [RateCDR] => 1 ) [2025-03-10 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:25:05' and `end` < '2025-03-10 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:25:18] Production.INFO: count ==5262 [2025-03-10 15:25:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:25:05 - End Time 2025-03-10 15:25:05 [2025-03-10 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650420', 'tblTempUsageDetail_20' ) start [2025-03-10 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650420', 'tblTempUsageDetail_20' ) end [2025-03-10 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650420', 'tblTempVendorCDR_20' ) start [2025-03-10 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650420', 'tblTempVendorCDR_20' ) end [2025-03-10 15:25:20] Production.INFO: ProcessCDR(1,14650420,1,1,2) [2025-03-10 15:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650420', 'tblTempUsageDetail_20' ) start [2025-03-10 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650420', 'tblTempUsageDetail_20' ) end [2025-03-10 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:25:25] Production.INFO: ==21441== Releasing lock... [2025-03-10 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:25:25] Production.INFO: 67.5 MB #Memory Used# [2025-03-10 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:26:05 [end_date_ymd] => 2025-03-10 15:26:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 12:26:05' and `end` < '2025-03-10 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-03-10 15:26:18] Production.INFO: count ==5266 [2025-03-10 15:26:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:26:05 - End Time 2025-03-10 15:26:05 [2025-03-10 15:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650425', 'tblTempUsageDetail_20' ) start [2025-03-10 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650425', 'tblTempUsageDetail_20' ) end [2025-03-10 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650425', 'tblTempVendorCDR_20' ) start [2025-03-10 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650425', 'tblTempVendorCDR_20' ) end [2025-03-10 15:26:21] Production.INFO: ProcessCDR(1,14650425,1,1,2) [2025-03-10 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650425', 'tblTempUsageDetail_20' ) start [2025-03-10 15:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650425', 'tblTempUsageDetail_20' ) end [2025-03-10 15:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:26:24] Production.INFO: ==21513== Releasing lock... [2025-03-10 15:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:26:24] Production.INFO: 67.5 MB #Memory Used# [2025-03-10 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:27:04 [end_date_ymd] => 2025-03-10 15:27:04 [RateCDR] => 1 ) [2025-03-10 15:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:27:04' and `end` < '2025-03-10 15:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:27:18] Production.INFO: count ==5262 [2025-03-10 15:27:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:27:04 - End Time 2025-03-10 15:27:04 [2025-03-10 15:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650430', 'tblTempUsageDetail_20' ) start [2025-03-10 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650430', 'tblTempUsageDetail_20' ) end [2025-03-10 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650430', 'tblTempVendorCDR_20' ) start [2025-03-10 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650430', 'tblTempVendorCDR_20' ) end [2025-03-10 15:27:20] Production.INFO: ProcessCDR(1,14650430,1,1,2) [2025-03-10 15:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650430', 'tblTempUsageDetail_20' ) start [2025-03-10 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650430', 'tblTempUsageDetail_20' ) end [2025-03-10 15:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:27:25] Production.INFO: ==21589== Releasing lock... [2025-03-10 15:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:27:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:28:05 [end_date_ymd] => 2025-03-10 15:28:05 [RateCDR] => 1 ) [2025-03-10 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:28:05' and `end` < '2025-03-10 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:28:19] Production.INFO: count ==5234 [2025-03-10 15:28:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:28:05 - End Time 2025-03-10 15:28:05 [2025-03-10 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650435', 'tblTempUsageDetail_20' ) start [2025-03-10 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650435', 'tblTempUsageDetail_20' ) end [2025-03-10 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650435', 'tblTempVendorCDR_20' ) start [2025-03-10 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650435', 'tblTempVendorCDR_20' ) end [2025-03-10 15:28:21] Production.INFO: ProcessCDR(1,14650435,1,1,2) [2025-03-10 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650435', 'tblTempUsageDetail_20' ) start [2025-03-10 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650435', 'tblTempUsageDetail_20' ) end [2025-03-10 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:28:27] Production.INFO: ==21662== Releasing lock... [2025-03-10 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:28:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:29:05 [end_date_ymd] => 2025-03-10 15:29:05 [RateCDR] => 1 ) [2025-03-10 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:29:05' and `end` < '2025-03-10 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:29:18] Production.INFO: count ==5222 [2025-03-10 15:29:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:29:05 - End Time 2025-03-10 15:29:05 [2025-03-10 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650440', 'tblTempUsageDetail_20' ) start [2025-03-10 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650440', 'tblTempUsageDetail_20' ) end [2025-03-10 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650440', 'tblTempVendorCDR_20' ) start [2025-03-10 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650440', 'tblTempVendorCDR_20' ) end [2025-03-10 15:29:21] Production.INFO: ProcessCDR(1,14650440,1,1,2) [2025-03-10 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650440', 'tblTempUsageDetail_20' ) start [2025-03-10 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650440', 'tblTempUsageDetail_20' ) end [2025-03-10 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:29:26] Production.INFO: ==21732== Releasing lock... [2025-03-10 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:29:26] Production.INFO: 67 MB #Memory Used# [2025-03-10 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:30:06 [end_date_ymd] => 2025-03-10 15:30:06 [RateCDR] => 1 ) [2025-03-10 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:30:06' and `end` < '2025-03-10 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:30:20] Production.INFO: count ==5229 [2025-03-10 15:30:22] Production.ERROR: pbx CDR StartTime 2025-03-10 12:30:06 - End Time 2025-03-10 15:30:06 [2025-03-10 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650446', 'tblTempUsageDetail_20' ) start [2025-03-10 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650446', 'tblTempUsageDetail_20' ) end [2025-03-10 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650446', 'tblTempVendorCDR_20' ) start [2025-03-10 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650446', 'tblTempVendorCDR_20' ) end [2025-03-10 15:30:22] Production.INFO: ProcessCDR(1,14650446,1,1,2) [2025-03-10 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650446', 'tblTempUsageDetail_20' ) start [2025-03-10 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650446', 'tblTempUsageDetail_20' ) end [2025-03-10 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:30:28] Production.INFO: ==21809== Releasing lock... [2025-03-10 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:30:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:31:05 [end_date_ymd] => 2025-03-10 15:31:05 [RateCDR] => 1 ) [2025-03-10 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:31:05' and `end` < '2025-03-10 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:31:18] Production.INFO: count ==5286 [2025-03-10 15:31:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:31:05 - End Time 2025-03-10 15:31:05 [2025-03-10 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650451', 'tblTempUsageDetail_20' ) start [2025-03-10 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650451', 'tblTempUsageDetail_20' ) end [2025-03-10 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650451', 'tblTempVendorCDR_20' ) start [2025-03-10 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650451', 'tblTempVendorCDR_20' ) end [2025-03-10 15:31:20] Production.INFO: ProcessCDR(1,14650451,1,1,2) [2025-03-10 15:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650451', 'tblTempUsageDetail_20' ) start [2025-03-10 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650451', 'tblTempUsageDetail_20' ) end [2025-03-10 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:31:26] Production.INFO: ==21880== Releasing lock... [2025-03-10 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:31:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-10 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:32:06 [end_date_ymd] => 2025-03-10 15:32:06 [RateCDR] => 1 ) [2025-03-10 15:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:32:06' and `end` < '2025-03-10 15:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:32:19] Production.INFO: count ==5308 [2025-03-10 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-10 12:32:06 - End Time 2025-03-10 15:32:06 [2025-03-10 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650456', 'tblTempUsageDetail_20' ) start [2025-03-10 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650456', 'tblTempUsageDetail_20' ) end [2025-03-10 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650456', 'tblTempVendorCDR_20' ) start [2025-03-10 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650456', 'tblTempVendorCDR_20' ) end [2025-03-10 15:32:22] Production.INFO: ProcessCDR(1,14650456,1,1,2) [2025-03-10 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650456', 'tblTempUsageDetail_20' ) start [2025-03-10 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650456', 'tblTempUsageDetail_20' ) end [2025-03-10 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:32:27] Production.INFO: ==21951== Releasing lock... [2025-03-10 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:32:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-10 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:33:05 [end_date_ymd] => 2025-03-10 15:33:05 [RateCDR] => 1 ) [2025-03-10 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:33:05' and `end` < '2025-03-10 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:33:20] Production.INFO: count ==5311 [2025-03-10 15:33:22] Production.ERROR: pbx CDR StartTime 2025-03-10 12:33:05 - End Time 2025-03-10 15:33:05 [2025-03-10 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650461', 'tblTempUsageDetail_20' ) start [2025-03-10 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650461', 'tblTempUsageDetail_20' ) end [2025-03-10 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650461', 'tblTempVendorCDR_20' ) start [2025-03-10 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650461', 'tblTempVendorCDR_20' ) end [2025-03-10 15:33:22] Production.INFO: ProcessCDR(1,14650461,1,1,2) [2025-03-10 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650461', 'tblTempUsageDetail_20' ) start [2025-03-10 15:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650461', 'tblTempUsageDetail_20' ) end [2025-03-10 15:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:33:28] Production.INFO: ==22023== Releasing lock... [2025-03-10 15:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:33:28] Production.INFO: 67.75 MB #Memory Used# [2025-03-10 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:34:06 [end_date_ymd] => 2025-03-10 15:34:06 [RateCDR] => 1 ) [2025-03-10 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:34:06' and `end` < '2025-03-10 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:34:21] Production.INFO: count ==5332 [2025-03-10 15:34:23] Production.ERROR: pbx CDR StartTime 2025-03-10 12:34:06 - End Time 2025-03-10 15:34:06 [2025-03-10 15:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650466', 'tblTempUsageDetail_20' ) start [2025-03-10 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650466', 'tblTempUsageDetail_20' ) end [2025-03-10 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650466', 'tblTempVendorCDR_20' ) start [2025-03-10 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650466', 'tblTempVendorCDR_20' ) end [2025-03-10 15:34:23] Production.INFO: ProcessCDR(1,14650466,1,1,2) [2025-03-10 15:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650466', 'tblTempUsageDetail_20' ) start [2025-03-10 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650466', 'tblTempUsageDetail_20' ) end [2025-03-10 15:34:29] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:34:29] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:34:29] Production.INFO: ==22095== Releasing lock... [2025-03-10 15:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:34:29] Production.INFO: 68 MB #Memory Used# [2025-03-10 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:35:05 [end_date_ymd] => 2025-03-10 15:35:05 [RateCDR] => 1 ) [2025-03-10 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:35:05' and `end` < '2025-03-10 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:35:19] Production.INFO: count ==5348 [2025-03-10 15:35:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:35:05 - End Time 2025-03-10 15:35:05 [2025-03-10 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650471', 'tblTempUsageDetail_20' ) start [2025-03-10 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650471', 'tblTempUsageDetail_20' ) end [2025-03-10 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650471', 'tblTempVendorCDR_20' ) start [2025-03-10 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650471', 'tblTempVendorCDR_20' ) end [2025-03-10 15:35:21] Production.INFO: ProcessCDR(1,14650471,1,1,2) [2025-03-10 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650471', 'tblTempUsageDetail_20' ) start [2025-03-10 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650471', 'tblTempUsageDetail_20' ) end [2025-03-10 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:35:27] Production.INFO: ==22218== Releasing lock... [2025-03-10 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:35:27] Production.INFO: 68 MB #Memory Used# [2025-03-10 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:36:06 [end_date_ymd] => 2025-03-10 15:36:06 [RateCDR] => 1 ) [2025-03-10 15:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:36:06' and `end` < '2025-03-10 15:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:36:20] Production.INFO: count ==5362 [2025-03-10 15:36:22] Production.ERROR: pbx CDR StartTime 2025-03-10 12:36:06 - End Time 2025-03-10 15:36:06 [2025-03-10 15:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650476', 'tblTempUsageDetail_20' ) start [2025-03-10 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650476', 'tblTempUsageDetail_20' ) end [2025-03-10 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650476', 'tblTempVendorCDR_20' ) start [2025-03-10 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650476', 'tblTempVendorCDR_20' ) end [2025-03-10 15:36:22] Production.INFO: ProcessCDR(1,14650476,1,1,2) [2025-03-10 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650476', 'tblTempUsageDetail_20' ) start [2025-03-10 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650476', 'tblTempUsageDetail_20' ) end [2025-03-10 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:36:27] Production.INFO: ==22287== Releasing lock... [2025-03-10 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:36:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-10 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:37:05 [end_date_ymd] => 2025-03-10 15:37:05 [RateCDR] => 1 ) [2025-03-10 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:37:05' and `end` < '2025-03-10 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:37:19] Production.INFO: count ==5378 [2025-03-10 15:37:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:37:05 - End Time 2025-03-10 15:37:05 [2025-03-10 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650481', 'tblTempUsageDetail_20' ) start [2025-03-10 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650481', 'tblTempUsageDetail_20' ) end [2025-03-10 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650481', 'tblTempVendorCDR_20' ) start [2025-03-10 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650481', 'tblTempVendorCDR_20' ) end [2025-03-10 15:37:21] Production.INFO: ProcessCDR(1,14650481,1,1,2) [2025-03-10 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650481', 'tblTempUsageDetail_20' ) start [2025-03-10 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650481', 'tblTempUsageDetail_20' ) end [2025-03-10 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:37:26] Production.INFO: ==22361== Releasing lock... [2025-03-10 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:37:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-10 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:38:06 [end_date_ymd] => 2025-03-10 15:38:06 [RateCDR] => 1 ) [2025-03-10 15:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:38:06' and `end` < '2025-03-10 15:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:38:20] Production.INFO: count ==5400 [2025-03-10 15:38:22] Production.ERROR: pbx CDR StartTime 2025-03-10 12:38:06 - End Time 2025-03-10 15:38:06 [2025-03-10 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650486', 'tblTempUsageDetail_20' ) start [2025-03-10 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650486', 'tblTempUsageDetail_20' ) end [2025-03-10 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650486', 'tblTempVendorCDR_20' ) start [2025-03-10 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650486', 'tblTempVendorCDR_20' ) end [2025-03-10 15:38:22] Production.INFO: ProcessCDR(1,14650486,1,1,2) [2025-03-10 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650486', 'tblTempUsageDetail_20' ) start [2025-03-10 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650486', 'tblTempUsageDetail_20' ) end [2025-03-10 15:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:38:28] Production.INFO: ==22437== Releasing lock... [2025-03-10 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:38:28] Production.INFO: 68.5 MB #Memory Used# [2025-03-10 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:39:05 [end_date_ymd] => 2025-03-10 15:39:05 [RateCDR] => 1 ) [2025-03-10 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:39:05' and `end` < '2025-03-10 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:39:18] Production.INFO: count ==5406 [2025-03-10 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:39:05 - End Time 2025-03-10 15:39:05 [2025-03-10 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650491', 'tblTempUsageDetail_20' ) start [2025-03-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650491', 'tblTempUsageDetail_20' ) end [2025-03-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650491', 'tblTempVendorCDR_20' ) start [2025-03-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650491', 'tblTempVendorCDR_20' ) end [2025-03-10 15:39:21] Production.INFO: ProcessCDR(1,14650491,1,1,2) [2025-03-10 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650491', 'tblTempUsageDetail_20' ) start [2025-03-10 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650491', 'tblTempUsageDetail_20' ) end [2025-03-10 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:39:27] Production.INFO: ==22513== Releasing lock... [2025-03-10 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:39:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-10 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:40:06 [end_date_ymd] => 2025-03-10 15:40:06 [RateCDR] => 1 ) [2025-03-10 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:40:06' and `end` < '2025-03-10 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:40:20] Production.INFO: count ==5464 [2025-03-10 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-10 12:40:06 - End Time 2025-03-10 15:40:06 [2025-03-10 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650497', 'tblTempUsageDetail_20' ) start [2025-03-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650497', 'tblTempUsageDetail_20' ) end [2025-03-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650497', 'tblTempVendorCDR_20' ) start [2025-03-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650497', 'tblTempVendorCDR_20' ) end [2025-03-10 15:40:22] Production.INFO: ProcessCDR(1,14650497,1,1,2) [2025-03-10 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650497', 'tblTempUsageDetail_20' ) start [2025-03-10 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650497', 'tblTempUsageDetail_20' ) end [2025-03-10 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:40:27] Production.INFO: ==22634== Releasing lock... [2025-03-10 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:40:27] Production.INFO: 69 MB #Memory Used# [2025-03-10 15:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:41:04 [end_date_ymd] => 2025-03-10 15:41:04 [RateCDR] => 1 ) [2025-03-10 15:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:41:04' and `end` < '2025-03-10 15:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:41:18] Production.INFO: count ==5494 [2025-03-10 15:41:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:41:04 - End Time 2025-03-10 15:41:04 [2025-03-10 15:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650502', 'tblTempUsageDetail_20' ) start [2025-03-10 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650502', 'tblTempUsageDetail_20' ) end [2025-03-10 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650502', 'tblTempVendorCDR_20' ) start [2025-03-10 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650502', 'tblTempVendorCDR_20' ) end [2025-03-10 15:41:21] Production.INFO: ProcessCDR(1,14650502,1,1,2) [2025-03-10 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650502', 'tblTempUsageDetail_20' ) start [2025-03-10 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650502', 'tblTempUsageDetail_20' ) end [2025-03-10 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:41:26] Production.INFO: ==22736== Releasing lock... [2025-03-10 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:41:26] Production.INFO: 69 MB #Memory Used# [2025-03-10 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:42:05 [end_date_ymd] => 2025-03-10 15:42:05 [RateCDR] => 1 ) [2025-03-10 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:42:05' and `end` < '2025-03-10 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:42:19] Production.INFO: count ==5538 [2025-03-10 15:42:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:42:05 - End Time 2025-03-10 15:42:05 [2025-03-10 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650507', 'tblTempUsageDetail_20' ) start [2025-03-10 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650507', 'tblTempUsageDetail_20' ) end [2025-03-10 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650507', 'tblTempVendorCDR_20' ) start [2025-03-10 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650507', 'tblTempVendorCDR_20' ) end [2025-03-10 15:42:21] Production.INFO: ProcessCDR(1,14650507,1,1,2) [2025-03-10 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650507', 'tblTempUsageDetail_20' ) start [2025-03-10 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650507', 'tblTempUsageDetail_20' ) end [2025-03-10 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:42:26] Production.INFO: ==22807== Releasing lock... [2025-03-10 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:42:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-10 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:43:05 [end_date_ymd] => 2025-03-10 15:43:05 [RateCDR] => 1 ) [2025-03-10 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:43:05' and `end` < '2025-03-10 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:43:19] Production.INFO: count ==5534 [2025-03-10 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:43:05 - End Time 2025-03-10 15:43:05 [2025-03-10 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650512', 'tblTempUsageDetail_20' ) start [2025-03-10 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650512', 'tblTempUsageDetail_20' ) end [2025-03-10 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650512', 'tblTempVendorCDR_20' ) start [2025-03-10 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650512', 'tblTempVendorCDR_20' ) end [2025-03-10 15:43:21] Production.INFO: ProcessCDR(1,14650512,1,1,2) [2025-03-10 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650512', 'tblTempUsageDetail_20' ) start [2025-03-10 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650512', 'tblTempUsageDetail_20' ) end [2025-03-10 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:43:27] Production.INFO: ==22878== Releasing lock... [2025-03-10 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:43:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-10 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:44:05 [end_date_ymd] => 2025-03-10 15:44:05 [RateCDR] => 1 ) [2025-03-10 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:44:05' and `end` < '2025-03-10 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:44:19] Production.INFO: count ==5493 [2025-03-10 15:44:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:44:05 - End Time 2025-03-10 15:44:05 [2025-03-10 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650517', 'tblTempUsageDetail_20' ) start [2025-03-10 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650517', 'tblTempUsageDetail_20' ) end [2025-03-10 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650517', 'tblTempVendorCDR_20' ) start [2025-03-10 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650517', 'tblTempVendorCDR_20' ) end [2025-03-10 15:44:21] Production.INFO: ProcessCDR(1,14650517,1,1,2) [2025-03-10 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650517', 'tblTempUsageDetail_20' ) start [2025-03-10 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650517', 'tblTempUsageDetail_20' ) end [2025-03-10 15:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:44:27] Production.INFO: ==22951== Releasing lock... [2025-03-10 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:44:27] Production.INFO: 69 MB #Memory Used# [2025-03-10 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:45:05 [end_date_ymd] => 2025-03-10 15:45:05 [RateCDR] => 1 ) [2025-03-10 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:45:05' and `end` < '2025-03-10 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:45:19] Production.INFO: count ==5505 [2025-03-10 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:45:05 - End Time 2025-03-10 15:45:05 [2025-03-10 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650522', 'tblTempUsageDetail_20' ) start [2025-03-10 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650522', 'tblTempUsageDetail_20' ) end [2025-03-10 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650522', 'tblTempVendorCDR_20' ) start [2025-03-10 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650522', 'tblTempVendorCDR_20' ) end [2025-03-10 15:45:21] Production.INFO: ProcessCDR(1,14650522,1,1,2) [2025-03-10 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650522', 'tblTempUsageDetail_20' ) start [2025-03-10 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650522', 'tblTempUsageDetail_20' ) end [2025-03-10 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:45:27] Production.INFO: ==23023== Releasing lock... [2025-03-10 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:45:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-10 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:46:06 [end_date_ymd] => 2025-03-10 15:46:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 12:46:06' and `end` < '2025-03-10 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-03-10 15:46:19] Production.INFO: count ==5486 [2025-03-10 15:46:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:46:06 - End Time 2025-03-10 15:46:06 [2025-03-10 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650527', 'tblTempUsageDetail_20' ) start [2025-03-10 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650527', 'tblTempUsageDetail_20' ) end [2025-03-10 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650527', 'tblTempVendorCDR_20' ) start [2025-03-10 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650527', 'tblTempVendorCDR_20' ) end [2025-03-10 15:46:21] Production.INFO: ProcessCDR(1,14650527,1,1,2) [2025-03-10 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650527', 'tblTempUsageDetail_20' ) start [2025-03-10 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650527', 'tblTempUsageDetail_20' ) end [2025-03-10 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:46:26] Production.INFO: ==23102== Releasing lock... [2025-03-10 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:46:26] Production.INFO: 69 MB #Memory Used# [2025-03-10 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:47:05 [end_date_ymd] => 2025-03-10 15:47:05 [RateCDR] => 1 ) [2025-03-10 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:47:05' and `end` < '2025-03-10 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:47:18] Production.INFO: count ==5445 [2025-03-10 15:47:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:47:05 - End Time 2025-03-10 15:47:05 [2025-03-10 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650532', 'tblTempUsageDetail_20' ) start [2025-03-10 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650532', 'tblTempUsageDetail_20' ) end [2025-03-10 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650532', 'tblTempVendorCDR_20' ) start [2025-03-10 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650532', 'tblTempVendorCDR_20' ) end [2025-03-10 15:47:21] Production.INFO: ProcessCDR(1,14650532,1,1,2) [2025-03-10 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650532', 'tblTempUsageDetail_20' ) start [2025-03-10 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650532', 'tblTempUsageDetail_20' ) end [2025-03-10 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:47:26] Production.INFO: ==23173== Releasing lock... [2025-03-10 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:47:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-10 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:48:05 [end_date_ymd] => 2025-03-10 15:48:05 [RateCDR] => 1 ) [2025-03-10 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:48:05' and `end` < '2025-03-10 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:48:19] Production.INFO: count ==5464 [2025-03-10 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:48:05 - End Time 2025-03-10 15:48:05 [2025-03-10 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650537', 'tblTempUsageDetail_20' ) start [2025-03-10 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650537', 'tblTempUsageDetail_20' ) end [2025-03-10 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650537', 'tblTempVendorCDR_20' ) start [2025-03-10 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650537', 'tblTempVendorCDR_20' ) end [2025-03-10 15:48:21] Production.INFO: ProcessCDR(1,14650537,1,1,2) [2025-03-10 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650537', 'tblTempUsageDetail_20' ) start [2025-03-10 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650537', 'tblTempUsageDetail_20' ) end [2025-03-10 15:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:48:26] Production.INFO: ==23245== Releasing lock... [2025-03-10 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:48:26] Production.INFO: 69 MB #Memory Used# [2025-03-10 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:49:05 [end_date_ymd] => 2025-03-10 15:49:05 [RateCDR] => 1 ) [2025-03-10 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:49:05' and `end` < '2025-03-10 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:49:18] Production.INFO: count ==5458 [2025-03-10 15:49:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:49:05 - End Time 2025-03-10 15:49:05 [2025-03-10 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650542', 'tblTempUsageDetail_20' ) start [2025-03-10 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650542', 'tblTempUsageDetail_20' ) end [2025-03-10 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650542', 'tblTempVendorCDR_20' ) start [2025-03-10 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650542', 'tblTempVendorCDR_20' ) end [2025-03-10 15:49:21] Production.INFO: ProcessCDR(1,14650542,1,1,2) [2025-03-10 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650542', 'tblTempUsageDetail_20' ) start [2025-03-10 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650542', 'tblTempUsageDetail_20' ) end [2025-03-10 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:49:26] Production.INFO: ==23319== Releasing lock... [2025-03-10 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:49:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-10 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:50:06 [end_date_ymd] => 2025-03-10 15:50:06 [RateCDR] => 1 ) [2025-03-10 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:50:06' and `end` < '2025-03-10 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:50:19] Production.INFO: count ==5462 [2025-03-10 15:50:22] Production.ERROR: pbx CDR StartTime 2025-03-10 12:50:06 - End Time 2025-03-10 15:50:06 [2025-03-10 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650547', 'tblTempUsageDetail_20' ) start [2025-03-10 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650547', 'tblTempUsageDetail_20' ) end [2025-03-10 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650547', 'tblTempVendorCDR_20' ) start [2025-03-10 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650547', 'tblTempVendorCDR_20' ) end [2025-03-10 15:50:22] Production.INFO: ProcessCDR(1,14650547,1,1,2) [2025-03-10 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650547', 'tblTempUsageDetail_20' ) start [2025-03-10 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650547', 'tblTempUsageDetail_20' ) end [2025-03-10 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:50:27] Production.INFO: ==23391== Releasing lock... [2025-03-10 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:50:27] Production.INFO: 69 MB #Memory Used# [2025-03-10 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:51:05 [end_date_ymd] => 2025-03-10 15:51:05 [RateCDR] => 1 ) [2025-03-10 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:51:05' and `end` < '2025-03-10 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:51:18] Production.INFO: count ==5530 [2025-03-10 15:51:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:51:05 - End Time 2025-03-10 15:51:05 [2025-03-10 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650553', 'tblTempUsageDetail_20' ) start [2025-03-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650553', 'tblTempUsageDetail_20' ) end [2025-03-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650553', 'tblTempVendorCDR_20' ) start [2025-03-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650553', 'tblTempVendorCDR_20' ) end [2025-03-10 15:51:21] Production.INFO: ProcessCDR(1,14650553,1,1,2) [2025-03-10 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650553', 'tblTempUsageDetail_20' ) start [2025-03-10 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650553', 'tblTempUsageDetail_20' ) end [2025-03-10 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:51:27] Production.INFO: ==23508== Releasing lock... [2025-03-10 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:51:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-10 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:52:06 [end_date_ymd] => 2025-03-10 15:52:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 12:52:06' and `end` < '2025-03-10 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-03-10 15:52:19] Production.INFO: count ==5579 [2025-03-10 15:52:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:52:06 - End Time 2025-03-10 15:52:06 [2025-03-10 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650558', 'tblTempUsageDetail_20' ) start [2025-03-10 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650558', 'tblTempUsageDetail_20' ) end [2025-03-10 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650558', 'tblTempVendorCDR_20' ) start [2025-03-10 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650558', 'tblTempVendorCDR_20' ) end [2025-03-10 15:52:21] Production.INFO: ProcessCDR(1,14650558,1,1,2) [2025-03-10 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650558', 'tblTempUsageDetail_20' ) start [2025-03-10 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650558', 'tblTempUsageDetail_20' ) end [2025-03-10 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:52:27] Production.INFO: ==23579== Releasing lock... [2025-03-10 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:52:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:53:05 [end_date_ymd] => 2025-03-10 15:53:05 [RateCDR] => 1 ) [2025-03-10 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:53:05' and `end` < '2025-03-10 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:53:18] Production.INFO: count ==5581 [2025-03-10 15:53:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:53:05 - End Time 2025-03-10 15:53:05 [2025-03-10 15:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650563', 'tblTempUsageDetail_20' ) start [2025-03-10 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650563', 'tblTempUsageDetail_20' ) end [2025-03-10 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650563', 'tblTempVendorCDR_20' ) start [2025-03-10 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650563', 'tblTempVendorCDR_20' ) end [2025-03-10 15:53:21] Production.INFO: ProcessCDR(1,14650563,1,1,2) [2025-03-10 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650563', 'tblTempUsageDetail_20' ) start [2025-03-10 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650563', 'tblTempUsageDetail_20' ) end [2025-03-10 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:53:26] Production.INFO: ==23650== Releasing lock... [2025-03-10 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:53:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:54:05 [end_date_ymd] => 2025-03-10 15:54:05 [RateCDR] => 1 ) [2025-03-10 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:54:05' and `end` < '2025-03-10 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:54:18] Production.INFO: count ==5580 [2025-03-10 15:54:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:54:05 - End Time 2025-03-10 15:54:05 [2025-03-10 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650568', 'tblTempUsageDetail_20' ) start [2025-03-10 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650568', 'tblTempUsageDetail_20' ) end [2025-03-10 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650568', 'tblTempVendorCDR_20' ) start [2025-03-10 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650568', 'tblTempVendorCDR_20' ) end [2025-03-10 15:54:21] Production.INFO: ProcessCDR(1,14650568,1,1,2) [2025-03-10 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650568', 'tblTempUsageDetail_20' ) start [2025-03-10 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650568', 'tblTempUsageDetail_20' ) end [2025-03-10 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:54:26] Production.INFO: ==23723== Releasing lock... [2025-03-10 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:54:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:55:05 [end_date_ymd] => 2025-03-10 15:55:05 [RateCDR] => 1 ) [2025-03-10 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:55:05' and `end` < '2025-03-10 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:55:18] Production.INFO: count ==5575 [2025-03-10 15:55:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:55:05 - End Time 2025-03-10 15:55:05 [2025-03-10 15:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650571', 'tblTempUsageDetail_20' ) start [2025-03-10 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650571', 'tblTempUsageDetail_20' ) end [2025-03-10 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650571', 'tblTempVendorCDR_20' ) start [2025-03-10 15:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650571', 'tblTempVendorCDR_20' ) end [2025-03-10 15:55:20] Production.INFO: ProcessCDR(1,14650571,1,1,2) [2025-03-10 15:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650571', 'tblTempUsageDetail_20' ) start [2025-03-10 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650571', 'tblTempUsageDetail_20' ) end [2025-03-10 15:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:55:25] Production.INFO: ==23797== Releasing lock... [2025-03-10 15:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:55:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:56:06 [end_date_ymd] => 2025-03-10 15:56:06 [RateCDR] => 1 ) [2025-03-10 15:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:56:06' and `end` < '2025-03-10 15:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:56:19] Production.INFO: count ==5571 [2025-03-10 15:56:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:56:06 - End Time 2025-03-10 15:56:06 [2025-03-10 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650578', 'tblTempUsageDetail_20' ) start [2025-03-10 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650578', 'tblTempUsageDetail_20' ) end [2025-03-10 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650578', 'tblTempVendorCDR_20' ) start [2025-03-10 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650578', 'tblTempVendorCDR_20' ) end [2025-03-10 15:56:21] Production.INFO: ProcessCDR(1,14650578,1,1,2) [2025-03-10 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650578', 'tblTempUsageDetail_20' ) start [2025-03-10 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650578', 'tblTempUsageDetail_20' ) end [2025-03-10 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:56:27] Production.INFO: ==23872== Releasing lock... [2025-03-10 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:56:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:57:05 [end_date_ymd] => 2025-03-10 15:57:05 [RateCDR] => 1 ) [2025-03-10 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:57:05' and `end` < '2025-03-10 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:57:18] Production.INFO: count ==5573 [2025-03-10 15:57:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:57:05 - End Time 2025-03-10 15:57:05 [2025-03-10 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650583', 'tblTempUsageDetail_20' ) start [2025-03-10 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650583', 'tblTempUsageDetail_20' ) end [2025-03-10 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650583', 'tblTempVendorCDR_20' ) start [2025-03-10 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650583', 'tblTempVendorCDR_20' ) end [2025-03-10 15:57:21] Production.INFO: ProcessCDR(1,14650583,1,1,2) [2025-03-10 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650583', 'tblTempUsageDetail_20' ) start [2025-03-10 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650583', 'tblTempUsageDetail_20' ) end [2025-03-10 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:57:26] Production.INFO: ==23942== Releasing lock... [2025-03-10 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:57:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:58:06 [end_date_ymd] => 2025-03-10 15:58:06 [RateCDR] => 1 ) [2025-03-10 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:58:06' and `end` < '2025-03-10 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:58:19] Production.INFO: count ==5577 [2025-03-10 15:58:21] Production.ERROR: pbx CDR StartTime 2025-03-10 12:58:06 - End Time 2025-03-10 15:58:06 [2025-03-10 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650588', 'tblTempUsageDetail_20' ) start [2025-03-10 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650588', 'tblTempUsageDetail_20' ) end [2025-03-10 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650588', 'tblTempVendorCDR_20' ) start [2025-03-10 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650588', 'tblTempVendorCDR_20' ) end [2025-03-10 15:58:21] Production.INFO: ProcessCDR(1,14650588,1,1,2) [2025-03-10 15:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650588', 'tblTempUsageDetail_20' ) start [2025-03-10 15:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650588', 'tblTempUsageDetail_20' ) end [2025-03-10 15:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:58:26] Production.INFO: ==24011== Releasing lock... [2025-03-10 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:58:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 12:59:05 [end_date_ymd] => 2025-03-10 15:59:05 [RateCDR] => 1 ) [2025-03-10 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 12:59:05' and `end` < '2025-03-10 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 15:59:18] Production.INFO: count ==5587 [2025-03-10 15:59:20] Production.ERROR: pbx CDR StartTime 2025-03-10 12:59:05 - End Time 2025-03-10 15:59:05 [2025-03-10 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650593', 'tblTempUsageDetail_20' ) start [2025-03-10 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650593', 'tblTempUsageDetail_20' ) end [2025-03-10 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650593', 'tblTempVendorCDR_20' ) start [2025-03-10 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650593', 'tblTempVendorCDR_20' ) end [2025-03-10 15:59:20] Production.INFO: ProcessCDR(1,14650593,1,1,2) [2025-03-10 15:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650593', 'tblTempUsageDetail_20' ) start [2025-03-10 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650593', 'tblTempUsageDetail_20' ) end [2025-03-10 15:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 15:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 15:59:25] Production.INFO: ==24080== Releasing lock... [2025-03-10 15:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 15:59:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:00:06 [end_date_ymd] => 2025-03-10 16:00:06 [RateCDR] => 1 ) [2025-03-10 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:00:06' and `end` < '2025-03-10 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:00:19] Production.INFO: count ==5601 [2025-03-10 16:00:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:00:06 - End Time 2025-03-10 16:00:06 [2025-03-10 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650599', 'tblTempUsageDetail_20' ) start [2025-03-10 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650599', 'tblTempUsageDetail_20' ) end [2025-03-10 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650599', 'tblTempVendorCDR_20' ) start [2025-03-10 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650599', 'tblTempVendorCDR_20' ) end [2025-03-10 16:00:22] Production.INFO: ProcessCDR(1,14650599,1,1,2) [2025-03-10 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650599', 'tblTempUsageDetail_20' ) start [2025-03-10 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650599', 'tblTempUsageDetail_20' ) end [2025-03-10 16:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:00:26] Production.INFO: ==24154== Releasing lock... [2025-03-10 16:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:00:26] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:01:04 [end_date_ymd] => 2025-03-10 16:01:04 [RateCDR] => 1 ) [2025-03-10 16:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:01:04' and `end` < '2025-03-10 16:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:01:18] Production.INFO: count ==5605 [2025-03-10 16:01:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:01:04 - End Time 2025-03-10 16:01:04 [2025-03-10 16:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650604', 'tblTempUsageDetail_20' ) start [2025-03-10 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650604', 'tblTempUsageDetail_20' ) end [2025-03-10 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650604', 'tblTempVendorCDR_20' ) start [2025-03-10 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650604', 'tblTempVendorCDR_20' ) end [2025-03-10 16:01:21] Production.INFO: ProcessCDR(1,14650604,1,1,2) [2025-03-10 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650604', 'tblTempUsageDetail_20' ) start [2025-03-10 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650604', 'tblTempUsageDetail_20' ) end [2025-03-10 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:01:26] Production.INFO: ==24239== Releasing lock... [2025-03-10 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:01:26] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:02:06 [end_date_ymd] => 2025-03-10 16:02:06 [RateCDR] => 1 ) [2025-03-10 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:02:06' and `end` < '2025-03-10 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:02:19] Production.INFO: count ==5608 [2025-03-10 16:02:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:02:06 - End Time 2025-03-10 16:02:06 [2025-03-10 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650609', 'tblTempUsageDetail_20' ) start [2025-03-10 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650609', 'tblTempUsageDetail_20' ) end [2025-03-10 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650609', 'tblTempVendorCDR_20' ) start [2025-03-10 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650609', 'tblTempVendorCDR_20' ) end [2025-03-10 16:02:21] Production.INFO: ProcessCDR(1,14650609,1,1,2) [2025-03-10 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650609', 'tblTempUsageDetail_20' ) start [2025-03-10 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650609', 'tblTempUsageDetail_20' ) end [2025-03-10 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:02:26] Production.INFO: ==24313== Releasing lock... [2025-03-10 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:02:26] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:03:05 [end_date_ymd] => 2025-03-10 16:03:05 [RateCDR] => 1 ) [2025-03-10 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:03:05' and `end` < '2025-03-10 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:03:18] Production.INFO: count ==5608 [2025-03-10 16:03:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:03:05 - End Time 2025-03-10 16:03:05 [2025-03-10 16:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650614', 'tblTempUsageDetail_20' ) start [2025-03-10 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650614', 'tblTempUsageDetail_20' ) end [2025-03-10 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650614', 'tblTempVendorCDR_20' ) start [2025-03-10 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650614', 'tblTempVendorCDR_20' ) end [2025-03-10 16:03:20] Production.INFO: ProcessCDR(1,14650614,1,1,2) [2025-03-10 16:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650614', 'tblTempUsageDetail_20' ) start [2025-03-10 16:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650614', 'tblTempUsageDetail_20' ) end [2025-03-10 16:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:03:25] Production.INFO: ==24388== Releasing lock... [2025-03-10 16:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:03:25] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:04:05 [end_date_ymd] => 2025-03-10 16:04:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:04:05' and `end` < '2025-03-10 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-03-10 16:04:19] Production.INFO: count ==5613 [2025-03-10 16:04:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:04:05 - End Time 2025-03-10 16:04:05 [2025-03-10 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650619', 'tblTempUsageDetail_20' ) start [2025-03-10 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650619', 'tblTempUsageDetail_20' ) end [2025-03-10 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650619', 'tblTempVendorCDR_20' ) start [2025-03-10 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650619', 'tblTempVendorCDR_20' ) end [2025-03-10 16:04:21] Production.INFO: ProcessCDR(1,14650619,1,1,2) [2025-03-10 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650619', 'tblTempUsageDetail_20' ) start [2025-03-10 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650619', 'tblTempUsageDetail_20' ) end [2025-03-10 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:04:26] Production.INFO: ==24467== Releasing lock... [2025-03-10 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:04:26] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:05:05 [end_date_ymd] => 2025-03-10 16:05:05 [RateCDR] => 1 ) [2025-03-10 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:05:05' and `end` < '2025-03-10 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:05:18] Production.INFO: count ==5608 [2025-03-10 16:05:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:05:05 - End Time 2025-03-10 16:05:05 [2025-03-10 16:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650624', 'tblTempUsageDetail_20' ) start [2025-03-10 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650624', 'tblTempUsageDetail_20' ) end [2025-03-10 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650624', 'tblTempVendorCDR_20' ) start [2025-03-10 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650624', 'tblTempVendorCDR_20' ) end [2025-03-10 16:05:20] Production.INFO: ProcessCDR(1,14650624,1,1,2) [2025-03-10 16:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650624', 'tblTempUsageDetail_20' ) start [2025-03-10 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650624', 'tblTempUsageDetail_20' ) end [2025-03-10 16:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:05:25] Production.INFO: ==24543== Releasing lock... [2025-03-10 16:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:05:25] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:06:05 [end_date_ymd] => 2025-03-10 16:06:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:06:05' and `end` < '2025-03-10 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-03-10 16:06:19] Production.INFO: count ==5604 [2025-03-10 16:06:22] Production.ERROR: pbx CDR StartTime 2025-03-10 13:06:05 - End Time 2025-03-10 16:06:05 [2025-03-10 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650629', 'tblTempUsageDetail_20' ) start [2025-03-10 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650629', 'tblTempUsageDetail_20' ) end [2025-03-10 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650629', 'tblTempVendorCDR_20' ) start [2025-03-10 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650629', 'tblTempVendorCDR_20' ) end [2025-03-10 16:06:22] Production.INFO: ProcessCDR(1,14650629,1,1,2) [2025-03-10 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650629', 'tblTempUsageDetail_20' ) start [2025-03-10 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650629', 'tblTempUsageDetail_20' ) end [2025-03-10 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:06:27] Production.INFO: ==24658== Releasing lock... [2025-03-10 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:06:27] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:07:06 [end_date_ymd] => 2025-03-10 16:07:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:07:06' and `end` < '2025-03-10 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-03-10 16:07:19] Production.INFO: count ==5580 [2025-03-10 16:07:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:07:06 - End Time 2025-03-10 16:07:06 [2025-03-10 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650634', 'tblTempUsageDetail_20' ) start [2025-03-10 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650634', 'tblTempUsageDetail_20' ) end [2025-03-10 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650634', 'tblTempVendorCDR_20' ) start [2025-03-10 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650634', 'tblTempVendorCDR_20' ) end [2025-03-10 16:07:21] Production.INFO: ProcessCDR(1,14650634,1,1,2) [2025-03-10 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650634', 'tblTempUsageDetail_20' ) start [2025-03-10 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650634', 'tblTempUsageDetail_20' ) end [2025-03-10 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:07:26] Production.INFO: ==24731== Releasing lock... [2025-03-10 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:07:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:08:05 [end_date_ymd] => 2025-03-10 16:08:05 [RateCDR] => 1 ) [2025-03-10 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:08:05' and `end` < '2025-03-10 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:08:19] Production.INFO: count ==5573 [2025-03-10 16:08:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:08:05 - End Time 2025-03-10 16:08:05 [2025-03-10 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650639', 'tblTempUsageDetail_20' ) start [2025-03-10 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650639', 'tblTempUsageDetail_20' ) end [2025-03-10 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650639', 'tblTempVendorCDR_20' ) start [2025-03-10 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650639', 'tblTempVendorCDR_20' ) end [2025-03-10 16:08:21] Production.INFO: ProcessCDR(1,14650639,1,1,2) [2025-03-10 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650639', 'tblTempUsageDetail_20' ) start [2025-03-10 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650639', 'tblTempUsageDetail_20' ) end [2025-03-10 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:08:26] Production.INFO: ==24807== Releasing lock... [2025-03-10 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:08:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:09:06 [end_date_ymd] => 2025-03-10 16:09:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:09:06' and `end` < '2025-03-10 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-03-10 16:09:19] Production.INFO: count ==5555 [2025-03-10 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:09:06 - End Time 2025-03-10 16:09:06 [2025-03-10 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650644', 'tblTempUsageDetail_20' ) start [2025-03-10 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650644', 'tblTempUsageDetail_20' ) end [2025-03-10 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650644', 'tblTempVendorCDR_20' ) start [2025-03-10 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650644', 'tblTempVendorCDR_20' ) end [2025-03-10 16:09:21] Production.INFO: ProcessCDR(1,14650644,1,1,2) [2025-03-10 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650644', 'tblTempUsageDetail_20' ) start [2025-03-10 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650644', 'tblTempUsageDetail_20' ) end [2025-03-10 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:09:26] Production.INFO: ==24886== Releasing lock... [2025-03-10 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:09:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-10 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:10:06 [end_date_ymd] => 2025-03-10 16:10:06 [RateCDR] => 1 ) [2025-03-10 16: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-03-10 13:10:06' and `end` < '2025-03-10 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:10:20] Production.INFO: count ==5546 [2025-03-10 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-10 13:10:06 - End Time 2025-03-10 16:10:06 [2025-03-10 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650650', 'tblTempUsageDetail_20' ) start [2025-03-10 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650650', 'tblTempUsageDetail_20' ) end [2025-03-10 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650650', 'tblTempVendorCDR_20' ) start [2025-03-10 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650650', 'tblTempVendorCDR_20' ) end [2025-03-10 16:10:22] Production.INFO: ProcessCDR(1,14650650,1,1,2) [2025-03-10 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650650', 'tblTempUsageDetail_20' ) start [2025-03-10 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650650', 'tblTempUsageDetail_20' ) end [2025-03-10 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:10:27] Production.INFO: ==24964== Releasing lock... [2025-03-10 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:10:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-10 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:11:06 [end_date_ymd] => 2025-03-10 16:11:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:11:06' and `end` < '2025-03-10 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-03-10 16:11:19] Production.INFO: count ==5574 [2025-03-10 16:11:22] Production.ERROR: pbx CDR StartTime 2025-03-10 13:11:06 - End Time 2025-03-10 16:11:06 [2025-03-10 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650655', 'tblTempUsageDetail_20' ) start [2025-03-10 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650655', 'tblTempUsageDetail_20' ) end [2025-03-10 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650655', 'tblTempVendorCDR_20' ) start [2025-03-10 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650655', 'tblTempVendorCDR_20' ) end [2025-03-10 16:11:22] Production.INFO: ProcessCDR(1,14650655,1,1,2) [2025-03-10 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650655', 'tblTempUsageDetail_20' ) start [2025-03-10 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650655', 'tblTempUsageDetail_20' ) end [2025-03-10 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:11:27] Production.INFO: ==25045== Releasing lock... [2025-03-10 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:11:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:12:05 [end_date_ymd] => 2025-03-10 16:12:05 [RateCDR] => 1 ) [2025-03-10 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:12:05' and `end` < '2025-03-10 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:12:19] Production.INFO: count ==5559 [2025-03-10 16:12:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:12:05 - End Time 2025-03-10 16:12:05 [2025-03-10 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650660', 'tblTempUsageDetail_20' ) start [2025-03-10 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650660', 'tblTempUsageDetail_20' ) end [2025-03-10 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650660', 'tblTempVendorCDR_20' ) start [2025-03-10 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650660', 'tblTempVendorCDR_20' ) end [2025-03-10 16:12:21] Production.INFO: ProcessCDR(1,14650660,1,1,2) [2025-03-10 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650660', 'tblTempUsageDetail_20' ) start [2025-03-10 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650660', 'tblTempUsageDetail_20' ) end [2025-03-10 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:12:26] Production.INFO: ==25122== Releasing lock... [2025-03-10 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:12:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-10 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:13:05 [end_date_ymd] => 2025-03-10 16:13:05 [RateCDR] => 1 ) [2025-03-10 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:13:05' and `end` < '2025-03-10 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:13:18] Production.INFO: count ==5571 [2025-03-10 16:13:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:13:05 - End Time 2025-03-10 16:13:05 [2025-03-10 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650665', 'tblTempUsageDetail_20' ) start [2025-03-10 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650665', 'tblTempUsageDetail_20' ) end [2025-03-10 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650665', 'tblTempVendorCDR_20' ) start [2025-03-10 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650665', 'tblTempVendorCDR_20' ) end [2025-03-10 16:13:21] Production.INFO: ProcessCDR(1,14650665,1,1,2) [2025-03-10 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650665', 'tblTempUsageDetail_20' ) start [2025-03-10 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650665', 'tblTempUsageDetail_20' ) end [2025-03-10 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:13:26] Production.INFO: ==25198== Releasing lock... [2025-03-10 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:13:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:14:05 [end_date_ymd] => 2025-03-10 16:14:05 [RateCDR] => 1 ) [2025-03-10 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:14:05' and `end` < '2025-03-10 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:14:18] Production.INFO: count ==5578 [2025-03-10 16:14:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:14:05 - End Time 2025-03-10 16:14:05 [2025-03-10 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650670', 'tblTempUsageDetail_20' ) start [2025-03-10 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650670', 'tblTempUsageDetail_20' ) end [2025-03-10 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650670', 'tblTempVendorCDR_20' ) start [2025-03-10 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650670', 'tblTempVendorCDR_20' ) end [2025-03-10 16:14:20] Production.INFO: ProcessCDR(1,14650670,1,1,2) [2025-03-10 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650670', 'tblTempUsageDetail_20' ) start [2025-03-10 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650670', 'tblTempUsageDetail_20' ) end [2025-03-10 16:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:14:25] Production.INFO: ==25275== Releasing lock... [2025-03-10 16:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:14:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:15:05 [end_date_ymd] => 2025-03-10 16:15:05 [RateCDR] => 1 ) [2025-03-10 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:15:05' and `end` < '2025-03-10 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:15:19] Production.INFO: count ==5600 [2025-03-10 16:15:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:15:05 - End Time 2025-03-10 16:15:05 [2025-03-10 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650675', 'tblTempUsageDetail_20' ) start [2025-03-10 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650675', 'tblTempUsageDetail_20' ) end [2025-03-10 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650675', 'tblTempVendorCDR_20' ) start [2025-03-10 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650675', 'tblTempVendorCDR_20' ) end [2025-03-10 16:15:21] Production.INFO: ProcessCDR(1,14650675,1,1,2) [2025-03-10 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650675', 'tblTempUsageDetail_20' ) start [2025-03-10 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650675', 'tblTempUsageDetail_20' ) end [2025-03-10 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:15:26] Production.INFO: ==25354== Releasing lock... [2025-03-10 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:15:26] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:16:05 [end_date_ymd] => 2025-03-10 16:16:05 [RateCDR] => 1 ) [2025-03-10 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:16:05' and `end` < '2025-03-10 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:16:18] Production.INFO: count ==5591 [2025-03-10 16:16:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:16:05 - End Time 2025-03-10 16:16:05 [2025-03-10 16:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650680', 'tblTempUsageDetail_20' ) start [2025-03-10 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650680', 'tblTempUsageDetail_20' ) end [2025-03-10 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650680', 'tblTempVendorCDR_20' ) start [2025-03-10 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650680', 'tblTempVendorCDR_20' ) end [2025-03-10 16:16:21] Production.INFO: ProcessCDR(1,14650680,1,1,2) [2025-03-10 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650680', 'tblTempUsageDetail_20' ) start [2025-03-10 16:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650680', 'tblTempUsageDetail_20' ) end [2025-03-10 16:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:16:24] Production.INFO: ==25429== Releasing lock... [2025-03-10 16:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:16:24] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:17:05 [end_date_ymd] => 2025-03-10 16:17:05 [RateCDR] => 1 ) [2025-03-10 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:17:05' and `end` < '2025-03-10 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:17:19] Production.INFO: count ==5594 [2025-03-10 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:17:05 - End Time 2025-03-10 16:17:05 [2025-03-10 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650685', 'tblTempUsageDetail_20' ) start [2025-03-10 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650685', 'tblTempUsageDetail_20' ) end [2025-03-10 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650685', 'tblTempVendorCDR_20' ) start [2025-03-10 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650685', 'tblTempVendorCDR_20' ) end [2025-03-10 16:17:21] Production.INFO: ProcessCDR(1,14650685,1,1,2) [2025-03-10 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650685', 'tblTempUsageDetail_20' ) start [2025-03-10 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650685', 'tblTempUsageDetail_20' ) end [2025-03-10 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:17:26] Production.INFO: ==25508== Releasing lock... [2025-03-10 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:17:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:18:04 [end_date_ymd] => 2025-03-10 16:18:04 [RateCDR] => 1 ) [2025-03-10 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:18:04' and `end` < '2025-03-10 16:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:18:18] Production.INFO: count ==5589 [2025-03-10 16:18:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:18:04 - End Time 2025-03-10 16:18:04 [2025-03-10 16:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650690', 'tblTempUsageDetail_20' ) start [2025-03-10 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650690', 'tblTempUsageDetail_20' ) end [2025-03-10 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650690', 'tblTempVendorCDR_20' ) start [2025-03-10 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650690', 'tblTempVendorCDR_20' ) end [2025-03-10 16:18:21] Production.INFO: ProcessCDR(1,14650690,1,1,2) [2025-03-10 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650690', 'tblTempUsageDetail_20' ) start [2025-03-10 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650690', 'tblTempUsageDetail_20' ) end [2025-03-10 16:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:18:25] Production.INFO: ==25591== Releasing lock... [2025-03-10 16:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:18:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:19:05 [end_date_ymd] => 2025-03-10 16:19:05 [RateCDR] => 1 ) [2025-03-10 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:19:05' and `end` < '2025-03-10 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:19:19] Production.INFO: count ==5596 [2025-03-10 16:19:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:19:05 - End Time 2025-03-10 16:19:05 [2025-03-10 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650695', 'tblTempUsageDetail_20' ) start [2025-03-10 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650695', 'tblTempUsageDetail_20' ) end [2025-03-10 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650695', 'tblTempVendorCDR_20' ) start [2025-03-10 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650695', 'tblTempVendorCDR_20' ) end [2025-03-10 16:19:21] Production.INFO: ProcessCDR(1,14650695,1,1,2) [2025-03-10 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650695', 'tblTempUsageDetail_20' ) start [2025-03-10 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650695', 'tblTempUsageDetail_20' ) end [2025-03-10 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:19:26] Production.INFO: ==25673== Releasing lock... [2025-03-10 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:19:26] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:20:05 [end_date_ymd] => 2025-03-10 16:20:05 [RateCDR] => 1 ) [2025-03-10 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:20:05' and `end` < '2025-03-10 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:20:19] Production.INFO: count ==5582 [2025-03-10 16:20:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:20:05 - End Time 2025-03-10 16:20:05 [2025-03-10 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650701', 'tblTempUsageDetail_20' ) start [2025-03-10 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650701', 'tblTempUsageDetail_20' ) end [2025-03-10 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650701', 'tblTempVendorCDR_20' ) start [2025-03-10 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650701', 'tblTempVendorCDR_20' ) end [2025-03-10 16:20:21] Production.INFO: ProcessCDR(1,14650701,1,1,2) [2025-03-10 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650701', 'tblTempUsageDetail_20' ) start [2025-03-10 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650701', 'tblTempUsageDetail_20' ) end [2025-03-10 16:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:20:26] Production.INFO: ==25755== Releasing lock... [2025-03-10 16:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:20:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:21:05 [end_date_ymd] => 2025-03-10 16:21:05 [RateCDR] => 1 ) [2025-03-10 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:21:05' and `end` < '2025-03-10 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:21:19] Production.INFO: count ==5573 [2025-03-10 16:21:22] Production.ERROR: pbx CDR StartTime 2025-03-10 13:21:05 - End Time 2025-03-10 16:21:05 [2025-03-10 16:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650706', 'tblTempUsageDetail_20' ) start [2025-03-10 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650706', 'tblTempUsageDetail_20' ) end [2025-03-10 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650706', 'tblTempVendorCDR_20' ) start [2025-03-10 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650706', 'tblTempVendorCDR_20' ) end [2025-03-10 16:21:22] Production.INFO: ProcessCDR(1,14650706,1,1,2) [2025-03-10 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650706', 'tblTempUsageDetail_20' ) start [2025-03-10 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650706', 'tblTempUsageDetail_20' ) end [2025-03-10 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:21:26] Production.INFO: ==25838== Releasing lock... [2025-03-10 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:21:26] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 16:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:22:04 [end_date_ymd] => 2025-03-10 16:22:04 [RateCDR] => 1 ) [2025-03-10 16:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:22:04' and `end` < '2025-03-10 16:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:22:18] Production.INFO: count ==5600 [2025-03-10 16:22:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:22:04 - End Time 2025-03-10 16:22:04 [2025-03-10 16:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650711', 'tblTempUsageDetail_20' ) start [2025-03-10 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650711', 'tblTempUsageDetail_20' ) end [2025-03-10 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650711', 'tblTempVendorCDR_20' ) start [2025-03-10 16:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650711', 'tblTempVendorCDR_20' ) end [2025-03-10 16:22:20] Production.INFO: ProcessCDR(1,14650711,1,1,2) [2025-03-10 16:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650711', 'tblTempUsageDetail_20' ) start [2025-03-10 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650711', 'tblTempUsageDetail_20' ) end [2025-03-10 16:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:22:26] Production.INFO: ==25953== Releasing lock... [2025-03-10 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:22:26] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:23:05 [end_date_ymd] => 2025-03-10 16:23:05 [RateCDR] => 1 ) [2025-03-10 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:23:05' and `end` < '2025-03-10 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:23:18] Production.INFO: count ==5620 [2025-03-10 16:23:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:23:05 - End Time 2025-03-10 16:23:05 [2025-03-10 16:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650716', 'tblTempUsageDetail_20' ) start [2025-03-10 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650716', 'tblTempUsageDetail_20' ) end [2025-03-10 16:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650716', 'tblTempVendorCDR_20' ) start [2025-03-10 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650716', 'tblTempVendorCDR_20' ) end [2025-03-10 16:23:21] Production.INFO: ProcessCDR(1,14650716,1,1,2) [2025-03-10 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650716', 'tblTempUsageDetail_20' ) start [2025-03-10 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650716', 'tblTempUsageDetail_20' ) end [2025-03-10 16:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:23:25] Production.INFO: ==26036== Releasing lock... [2025-03-10 16:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:23:25] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:24:05 [end_date_ymd] => 2025-03-10 16:24:05 [RateCDR] => 1 ) [2025-03-10 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:24:05' and `end` < '2025-03-10 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:24:19] Production.INFO: count ==5625 [2025-03-10 16:24:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:24:05 - End Time 2025-03-10 16:24:05 [2025-03-10 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650721', 'tblTempUsageDetail_20' ) start [2025-03-10 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650721', 'tblTempUsageDetail_20' ) end [2025-03-10 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650721', 'tblTempVendorCDR_20' ) start [2025-03-10 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650721', 'tblTempVendorCDR_20' ) end [2025-03-10 16:24:21] Production.INFO: ProcessCDR(1,14650721,1,1,2) [2025-03-10 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650721', 'tblTempUsageDetail_20' ) start [2025-03-10 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650721', 'tblTempUsageDetail_20' ) end [2025-03-10 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:24:27] Production.INFO: ==26119== Releasing lock... [2025-03-10 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:24:27] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:25:05 [end_date_ymd] => 2025-03-10 16:25:05 [RateCDR] => 1 ) [2025-03-10 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:25:05' and `end` < '2025-03-10 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:25:18] Production.INFO: count ==5636 [2025-03-10 16:25:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:25:05 - End Time 2025-03-10 16:25:05 [2025-03-10 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650726', 'tblTempUsageDetail_20' ) start [2025-03-10 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650726', 'tblTempUsageDetail_20' ) end [2025-03-10 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650726', 'tblTempVendorCDR_20' ) start [2025-03-10 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650726', 'tblTempVendorCDR_20' ) end [2025-03-10 16:25:20] Production.INFO: ProcessCDR(1,14650726,1,1,2) [2025-03-10 16:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650726', 'tblTempUsageDetail_20' ) start [2025-03-10 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650726', 'tblTempUsageDetail_20' ) end [2025-03-10 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:25:25] Production.INFO: ==26207== Releasing lock... [2025-03-10 16:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:25:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-10 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:26:05 [end_date_ymd] => 2025-03-10 16:26:05 [RateCDR] => 1 ) [2025-03-10 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:26:05' and `end` < '2025-03-10 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:26:19] Production.INFO: count ==5629 [2025-03-10 16:26:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:26:05 - End Time 2025-03-10 16:26:05 [2025-03-10 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650731', 'tblTempUsageDetail_20' ) start [2025-03-10 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650731', 'tblTempUsageDetail_20' ) end [2025-03-10 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650731', 'tblTempVendorCDR_20' ) start [2025-03-10 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650731', 'tblTempVendorCDR_20' ) end [2025-03-10 16:26:21] Production.INFO: ProcessCDR(1,14650731,1,1,2) [2025-03-10 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650731', 'tblTempUsageDetail_20' ) start [2025-03-10 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650731', 'tblTempUsageDetail_20' ) end [2025-03-10 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:26:26] Production.INFO: ==26287== Releasing lock... [2025-03-10 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:26:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-10 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:27:05 [end_date_ymd] => 2025-03-10 16:27:05 [RateCDR] => 1 ) [2025-03-10 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:27:05' and `end` < '2025-03-10 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:27:18] Production.INFO: count ==5626 [2025-03-10 16:27:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:27:05 - End Time 2025-03-10 16:27:05 [2025-03-10 16:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650736', 'tblTempUsageDetail_20' ) start [2025-03-10 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650736', 'tblTempUsageDetail_20' ) end [2025-03-10 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650736', 'tblTempVendorCDR_20' ) start [2025-03-10 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650736', 'tblTempVendorCDR_20' ) end [2025-03-10 16:27:21] Production.INFO: ProcessCDR(1,14650736,1,1,2) [2025-03-10 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650736', 'tblTempUsageDetail_20' ) start [2025-03-10 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650736', 'tblTempUsageDetail_20' ) end [2025-03-10 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:27:26] Production.INFO: ==26370== Releasing lock... [2025-03-10 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:27:26] Production.INFO: 70 MB #Memory Used# [2025-03-10 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:28:05 [end_date_ymd] => 2025-03-10 16:28:05 [RateCDR] => 1 ) [2025-03-10 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:28:05' and `end` < '2025-03-10 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:28:19] Production.INFO: count ==5632 [2025-03-10 16:28:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:28:05 - End Time 2025-03-10 16:28:05 [2025-03-10 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650741', 'tblTempUsageDetail_20' ) start [2025-03-10 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650741', 'tblTempUsageDetail_20' ) end [2025-03-10 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650741', 'tblTempVendorCDR_20' ) start [2025-03-10 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650741', 'tblTempVendorCDR_20' ) end [2025-03-10 16:28:21] Production.INFO: ProcessCDR(1,14650741,1,1,2) [2025-03-10 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650741', 'tblTempUsageDetail_20' ) start [2025-03-10 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650741', 'tblTempUsageDetail_20' ) end [2025-03-10 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:28:26] Production.INFO: ==26455== Releasing lock... [2025-03-10 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:28:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-10 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:29:05 [end_date_ymd] => 2025-03-10 16:29:05 [RateCDR] => 1 ) [2025-03-10 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:29:05' and `end` < '2025-03-10 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:29:18] Production.INFO: count ==5628 [2025-03-10 16:29:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:29:05 - End Time 2025-03-10 16:29:05 [2025-03-10 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650746', 'tblTempUsageDetail_20' ) start [2025-03-10 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650746', 'tblTempUsageDetail_20' ) end [2025-03-10 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650746', 'tblTempVendorCDR_20' ) start [2025-03-10 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650746', 'tblTempVendorCDR_20' ) end [2025-03-10 16:29:21] Production.INFO: ProcessCDR(1,14650746,1,1,2) [2025-03-10 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650746', 'tblTempUsageDetail_20' ) start [2025-03-10 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650746', 'tblTempUsageDetail_20' ) end [2025-03-10 16:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:29:25] Production.INFO: ==26534== Releasing lock... [2025-03-10 16:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:29:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-10 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:30:06 [end_date_ymd] => 2025-03-10 16:30:06 [RateCDR] => 1 ) [2025-03-10 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:30:06' and `end` < '2025-03-10 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:30:19] Production.INFO: count ==5636 [2025-03-10 16:30:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:30:06 - End Time 2025-03-10 16:30:06 [2025-03-10 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650752', 'tblTempUsageDetail_20' ) start [2025-03-10 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650752', 'tblTempUsageDetail_20' ) end [2025-03-10 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650752', 'tblTempVendorCDR_20' ) start [2025-03-10 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650752', 'tblTempVendorCDR_20' ) end [2025-03-10 16:30:22] Production.INFO: ProcessCDR(1,14650752,1,1,2) [2025-03-10 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650752', 'tblTempUsageDetail_20' ) start [2025-03-10 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650752', 'tblTempUsageDetail_20' ) end [2025-03-10 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:30:27] Production.INFO: ==26623== Releasing lock... [2025-03-10 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:30:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-10 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:31:05 [end_date_ymd] => 2025-03-10 16:31:05 [RateCDR] => 1 ) [2025-03-10 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:31:05' and `end` < '2025-03-10 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:31:18] Production.INFO: count ==5662 [2025-03-10 16:31:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:31:05 - End Time 2025-03-10 16:31:05 [2025-03-10 16:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650757', 'tblTempUsageDetail_20' ) start [2025-03-10 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650757', 'tblTempUsageDetail_20' ) end [2025-03-10 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650757', 'tblTempVendorCDR_20' ) start [2025-03-10 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650757', 'tblTempVendorCDR_20' ) end [2025-03-10 16:31:20] Production.INFO: ProcessCDR(1,14650757,1,1,2) [2025-03-10 16:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650757', 'tblTempUsageDetail_20' ) start [2025-03-10 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650757', 'tblTempUsageDetail_20' ) end [2025-03-10 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:31:26] Production.INFO: ==26704== Releasing lock... [2025-03-10 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:31:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-10 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:32:06 [end_date_ymd] => 2025-03-10 16:32:06 [RateCDR] => 1 ) [2025-03-10 16:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:32:06' and `end` < '2025-03-10 16:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:32:19] Production.INFO: count ==5670 [2025-03-10 16:32:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:32:06 - End Time 2025-03-10 16:32:06 [2025-03-10 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650762', 'tblTempUsageDetail_20' ) start [2025-03-10 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650762', 'tblTempUsageDetail_20' ) end [2025-03-10 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650762', 'tblTempVendorCDR_20' ) start [2025-03-10 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650762', 'tblTempVendorCDR_20' ) end [2025-03-10 16:32:21] Production.INFO: ProcessCDR(1,14650762,1,1,2) [2025-03-10 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650762', 'tblTempUsageDetail_20' ) start [2025-03-10 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650762', 'tblTempUsageDetail_20' ) end [2025-03-10 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:32:27] Production.INFO: ==26789== Releasing lock... [2025-03-10 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:32:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-10 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:33:05 [end_date_ymd] => 2025-03-10 16:33:05 [RateCDR] => 1 ) [2025-03-10 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:33:05' and `end` < '2025-03-10 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:33:19] Production.INFO: count ==5680 [2025-03-10 16:33:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:33:05 - End Time 2025-03-10 16:33:05 [2025-03-10 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650767', 'tblTempUsageDetail_20' ) start [2025-03-10 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650767', 'tblTempUsageDetail_20' ) end [2025-03-10 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650767', 'tblTempVendorCDR_20' ) start [2025-03-10 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650767', 'tblTempVendorCDR_20' ) end [2025-03-10 16:33:21] Production.INFO: ProcessCDR(1,14650767,1,1,2) [2025-03-10 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650767', 'tblTempUsageDetail_20' ) start [2025-03-10 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650767', 'tblTempUsageDetail_20' ) end [2025-03-10 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:33:27] Production.INFO: ==26867== Releasing lock... [2025-03-10 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:33:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-10 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:34:05 [end_date_ymd] => 2025-03-10 16:34:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:34:05' and `end` < '2025-03-10 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-03-10 16:34:18] Production.INFO: count ==5679 [2025-03-10 16:34:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:34:05 - End Time 2025-03-10 16:34:05 [2025-03-10 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650772', 'tblTempUsageDetail_20' ) start [2025-03-10 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650772', 'tblTempUsageDetail_20' ) end [2025-03-10 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650772', 'tblTempVendorCDR_20' ) start [2025-03-10 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650772', 'tblTempVendorCDR_20' ) end [2025-03-10 16:34:21] Production.INFO: ProcessCDR(1,14650772,1,1,2) [2025-03-10 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650772', 'tblTempUsageDetail_20' ) start [2025-03-10 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650772', 'tblTempUsageDetail_20' ) end [2025-03-10 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:34:26] Production.INFO: ==26948== Releasing lock... [2025-03-10 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:34:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-10 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:35:05 [end_date_ymd] => 2025-03-10 16:35:05 [RateCDR] => 1 ) [2025-03-10 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:35:05' and `end` < '2025-03-10 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:35:19] Production.INFO: count ==5680 [2025-03-10 16:35:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:35:05 - End Time 2025-03-10 16:35:05 [2025-03-10 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650777', 'tblTempUsageDetail_20' ) start [2025-03-10 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650777', 'tblTempUsageDetail_20' ) end [2025-03-10 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650777', 'tblTempVendorCDR_20' ) start [2025-03-10 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650777', 'tblTempVendorCDR_20' ) end [2025-03-10 16:35:21] Production.INFO: ProcessCDR(1,14650777,1,1,2) [2025-03-10 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650777', 'tblTempUsageDetail_20' ) start [2025-03-10 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650777', 'tblTempUsageDetail_20' ) end [2025-03-10 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:35:26] Production.INFO: ==27027== Releasing lock... [2025-03-10 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:35:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-10 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:36:05 [end_date_ymd] => 2025-03-10 16:36:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:36:05' and `end` < '2025-03-10 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-03-10 16:36:18] Production.INFO: count ==5675 [2025-03-10 16:36:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:36:05 - End Time 2025-03-10 16:36:05 [2025-03-10 16:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650782', 'tblTempUsageDetail_20' ) start [2025-03-10 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650782', 'tblTempUsageDetail_20' ) end [2025-03-10 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650782', 'tblTempVendorCDR_20' ) start [2025-03-10 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650782', 'tblTempVendorCDR_20' ) end [2025-03-10 16:36:20] Production.INFO: ProcessCDR(1,14650782,1,1,2) [2025-03-10 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650782', 'tblTempUsageDetail_20' ) start [2025-03-10 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650782', 'tblTempUsageDetail_20' ) end [2025-03-10 16:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:36:25] Production.INFO: ==27113== Releasing lock... [2025-03-10 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:36:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-10 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:37:05 [end_date_ymd] => 2025-03-10 16:37:05 [RateCDR] => 1 ) [2025-03-10 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:37:05' and `end` < '2025-03-10 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:37:18] Production.INFO: count ==5671 [2025-03-10 16:37:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:37:05 - End Time 2025-03-10 16:37:05 [2025-03-10 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650787', 'tblTempUsageDetail_20' ) start [2025-03-10 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650787', 'tblTempUsageDetail_20' ) end [2025-03-10 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650787', 'tblTempVendorCDR_20' ) start [2025-03-10 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650787', 'tblTempVendorCDR_20' ) end [2025-03-10 16:37:21] Production.INFO: ProcessCDR(1,14650787,1,1,2) [2025-03-10 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650787', 'tblTempUsageDetail_20' ) start [2025-03-10 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650787', 'tblTempUsageDetail_20' ) end [2025-03-10 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:37:26] Production.INFO: ==27231== Releasing lock... [2025-03-10 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:37:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-10 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:38:06 [end_date_ymd] => 2025-03-10 16:38:06 [RateCDR] => 1 ) [2025-03-10 16:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:38:06' and `end` < '2025-03-10 16:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:38:19] Production.INFO: count ==5674 [2025-03-10 16:38:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:38:06 - End Time 2025-03-10 16:38:06 [2025-03-10 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650792', 'tblTempUsageDetail_20' ) start [2025-03-10 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650792', 'tblTempUsageDetail_20' ) end [2025-03-10 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650792', 'tblTempVendorCDR_20' ) start [2025-03-10 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650792', 'tblTempVendorCDR_20' ) end [2025-03-10 16:38:21] Production.INFO: ProcessCDR(1,14650792,1,1,2) [2025-03-10 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650792', 'tblTempUsageDetail_20' ) start [2025-03-10 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650792', 'tblTempUsageDetail_20' ) end [2025-03-10 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:38:26] Production.INFO: ==27339== Releasing lock... [2025-03-10 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:38:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-10 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:39:05 [end_date_ymd] => 2025-03-10 16:39:05 [RateCDR] => 1 ) [2025-03-10 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:39:05' and `end` < '2025-03-10 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:39:18] Production.INFO: count ==5672 [2025-03-10 16:39:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:39:05 - End Time 2025-03-10 16:39:05 [2025-03-10 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650797', 'tblTempUsageDetail_20' ) start [2025-03-10 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650797', 'tblTempUsageDetail_20' ) end [2025-03-10 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650797', 'tblTempVendorCDR_20' ) start [2025-03-10 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650797', 'tblTempVendorCDR_20' ) end [2025-03-10 16:39:21] Production.INFO: ProcessCDR(1,14650797,1,1,2) [2025-03-10 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650797', 'tblTempUsageDetail_20' ) start [2025-03-10 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650797', 'tblTempUsageDetail_20' ) end [2025-03-10 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:39:26] Production.INFO: ==27422== Releasing lock... [2025-03-10 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:39:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-10 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:40:06 [end_date_ymd] => 2025-03-10 16:40:06 [RateCDR] => 1 ) [2025-03-10 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:40:06' and `end` < '2025-03-10 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:40:20] Production.INFO: count ==5700 [2025-03-10 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-10 13:40:06 - End Time 2025-03-10 16:40:06 [2025-03-10 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650802', 'tblTempUsageDetail_20' ) start [2025-03-10 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650802', 'tblTempUsageDetail_20' ) end [2025-03-10 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650802', 'tblTempVendorCDR_20' ) start [2025-03-10 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650802', 'tblTempVendorCDR_20' ) end [2025-03-10 16:40:22] Production.INFO: ProcessCDR(1,14650802,1,1,2) [2025-03-10 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650802', 'tblTempUsageDetail_20' ) start [2025-03-10 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650802', 'tblTempUsageDetail_20' ) end [2025-03-10 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:40:27] Production.INFO: ==27505== Releasing lock... [2025-03-10 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:40:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-10 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:41:05 [end_date_ymd] => 2025-03-10 16:41:05 [RateCDR] => 1 ) [2025-03-10 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:41:05' and `end` < '2025-03-10 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:41:18] Production.INFO: count ==5716 [2025-03-10 16:41:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:41:05 - End Time 2025-03-10 16:41:05 [2025-03-10 16:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650808', 'tblTempUsageDetail_20' ) start [2025-03-10 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650808', 'tblTempUsageDetail_20' ) end [2025-03-10 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650808', 'tblTempVendorCDR_20' ) start [2025-03-10 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650808', 'tblTempVendorCDR_20' ) end [2025-03-10 16:41:21] Production.INFO: ProcessCDR(1,14650808,1,1,2) [2025-03-10 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650808', 'tblTempUsageDetail_20' ) start [2025-03-10 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650808', 'tblTempUsageDetail_20' ) end [2025-03-10 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:41:26] Production.INFO: ==27585== Releasing lock... [2025-03-10 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:41:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-10 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:42:06 [end_date_ymd] => 2025-03-10 16:42:06 [RateCDR] => 1 ) [2025-03-10 16:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:42:06' and `end` < '2025-03-10 16:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:42:19] Production.INFO: count ==5744 [2025-03-10 16:42:22] Production.ERROR: pbx CDR StartTime 2025-03-10 13:42:06 - End Time 2025-03-10 16:42:06 [2025-03-10 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650813', 'tblTempUsageDetail_20' ) start [2025-03-10 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650813', 'tblTempUsageDetail_20' ) end [2025-03-10 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650813', 'tblTempVendorCDR_20' ) start [2025-03-10 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650813', 'tblTempVendorCDR_20' ) end [2025-03-10 16:42:22] Production.INFO: ProcessCDR(1,14650813,1,1,2) [2025-03-10 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650813', 'tblTempUsageDetail_20' ) start [2025-03-10 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650813', 'tblTempUsageDetail_20' ) end [2025-03-10 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:42:27] Production.INFO: ==27665== Releasing lock... [2025-03-10 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:42:27] Production.INFO: 71 MB #Memory Used# [2025-03-10 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:43:05 [end_date_ymd] => 2025-03-10 16:43:05 [RateCDR] => 1 ) [2025-03-10 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:43:05' and `end` < '2025-03-10 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:43:18] Production.INFO: count ==5752 [2025-03-10 16:43:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:43:05 - End Time 2025-03-10 16:43:05 [2025-03-10 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650818', 'tblTempUsageDetail_20' ) start [2025-03-10 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650818', 'tblTempUsageDetail_20' ) end [2025-03-10 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650818', 'tblTempVendorCDR_20' ) start [2025-03-10 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650818', 'tblTempVendorCDR_20' ) end [2025-03-10 16:43:21] Production.INFO: ProcessCDR(1,14650818,1,1,2) [2025-03-10 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650818', 'tblTempUsageDetail_20' ) start [2025-03-10 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650818', 'tblTempUsageDetail_20' ) end [2025-03-10 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:43:26] Production.INFO: ==27740== Releasing lock... [2025-03-10 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:43:26] Production.INFO: 71 MB #Memory Used# [2025-03-10 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:44:05 [end_date_ymd] => 2025-03-10 16:44:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:44:05' and `end` < '2025-03-10 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-03-10 16:44:19] Production.INFO: count ==5761 [2025-03-10 16:44:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:44:05 - End Time 2025-03-10 16:44:05 [2025-03-10 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650823', 'tblTempUsageDetail_20' ) start [2025-03-10 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650823', 'tblTempUsageDetail_20' ) end [2025-03-10 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650823', 'tblTempVendorCDR_20' ) start [2025-03-10 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650823', 'tblTempVendorCDR_20' ) end [2025-03-10 16:44:21] Production.INFO: ProcessCDR(1,14650823,1,1,2) [2025-03-10 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650823', 'tblTempUsageDetail_20' ) start [2025-03-10 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650823', 'tblTempUsageDetail_20' ) end [2025-03-10 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:44:26] Production.INFO: ==27825== Releasing lock... [2025-03-10 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:44:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-10 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:45:05 [end_date_ymd] => 2025-03-10 16:45:05 [RateCDR] => 1 ) [2025-03-10 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:45:05' and `end` < '2025-03-10 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:45:18] Production.INFO: count ==5753 [2025-03-10 16:45:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:45:05 - End Time 2025-03-10 16:45:05 [2025-03-10 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650828', 'tblTempUsageDetail_20' ) start [2025-03-10 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650828', 'tblTempUsageDetail_20' ) end [2025-03-10 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650828', 'tblTempVendorCDR_20' ) start [2025-03-10 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650828', 'tblTempVendorCDR_20' ) end [2025-03-10 16:45:21] Production.INFO: ProcessCDR(1,14650828,1,1,2) [2025-03-10 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650828', 'tblTempUsageDetail_20' ) start [2025-03-10 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650828', 'tblTempUsageDetail_20' ) end [2025-03-10 16:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:45:24] Production.INFO: ==27906== Releasing lock... [2025-03-10 16:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:45:24] Production.INFO: 71 MB #Memory Used# [2025-03-10 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:46:06 [end_date_ymd] => 2025-03-10 16:46:06 [RateCDR] => 1 ) [2025-03-10 16:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:46:06' and `end` < '2025-03-10 16:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:46:19] Production.INFO: count ==5752 [2025-03-10 16:46:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:46:06 - End Time 2025-03-10 16:46:06 [2025-03-10 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650833', 'tblTempUsageDetail_20' ) start [2025-03-10 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650833', 'tblTempUsageDetail_20' ) end [2025-03-10 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650833', 'tblTempVendorCDR_20' ) start [2025-03-10 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650833', 'tblTempVendorCDR_20' ) end [2025-03-10 16:46:22] Production.INFO: ProcessCDR(1,14650833,1,1,2) [2025-03-10 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650833', 'tblTempUsageDetail_20' ) start [2025-03-10 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650833', 'tblTempUsageDetail_20' ) end [2025-03-10 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:46:27] Production.INFO: ==27988== Releasing lock... [2025-03-10 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:46:27] Production.INFO: 71 MB #Memory Used# [2025-03-10 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:47:05 [end_date_ymd] => 2025-03-10 16:47:05 [RateCDR] => 1 ) [2025-03-10 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:47:05' and `end` < '2025-03-10 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:47:19] Production.INFO: count ==5756 [2025-03-10 16:47:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:47:05 - End Time 2025-03-10 16:47:05 [2025-03-10 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650838', 'tblTempUsageDetail_20' ) start [2025-03-10 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650838', 'tblTempUsageDetail_20' ) end [2025-03-10 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650838', 'tblTempVendorCDR_20' ) start [2025-03-10 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650838', 'tblTempVendorCDR_20' ) end [2025-03-10 16:47:21] Production.INFO: ProcessCDR(1,14650838,1,1,2) [2025-03-10 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650838', 'tblTempUsageDetail_20' ) start [2025-03-10 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650838', 'tblTempUsageDetail_20' ) end [2025-03-10 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:47:26] Production.INFO: ==28067== Releasing lock... [2025-03-10 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:47:26] Production.INFO: 71 MB #Memory Used# [2025-03-10 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:48:06 [end_date_ymd] => 2025-03-10 16:48:06 [RateCDR] => 1 ) [2025-03-10 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:48:06' and `end` < '2025-03-10 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:48:19] Production.INFO: count ==5743 [2025-03-10 16:48:22] Production.ERROR: pbx CDR StartTime 2025-03-10 13:48:06 - End Time 2025-03-10 16:48:06 [2025-03-10 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650843', 'tblTempUsageDetail_20' ) start [2025-03-10 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650843', 'tblTempUsageDetail_20' ) end [2025-03-10 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650843', 'tblTempVendorCDR_20' ) start [2025-03-10 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650843', 'tblTempVendorCDR_20' ) end [2025-03-10 16:48:22] Production.INFO: ProcessCDR(1,14650843,1,1,2) [2025-03-10 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650843', 'tblTempUsageDetail_20' ) start [2025-03-10 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650843', 'tblTempUsageDetail_20' ) end [2025-03-10 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:48:27] Production.INFO: ==28143== Releasing lock... [2025-03-10 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:48:27] Production.INFO: 71 MB #Memory Used# [2025-03-10 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:49:05 [end_date_ymd] => 2025-03-10 16:49:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:49:05' and `end` < '2025-03-10 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:49:18] Production.INFO: count ==5751 [2025-03-10 16:49:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:49:05 - End Time 2025-03-10 16:49:05 [2025-03-10 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650848', 'tblTempUsageDetail_20' ) start [2025-03-10 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650848', 'tblTempUsageDetail_20' ) end [2025-03-10 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650848', 'tblTempVendorCDR_20' ) start [2025-03-10 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650848', 'tblTempVendorCDR_20' ) end [2025-03-10 16:49:21] Production.INFO: ProcessCDR(1,14650848,1,1,2) [2025-03-10 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650848', 'tblTempUsageDetail_20' ) start [2025-03-10 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650848', 'tblTempUsageDetail_20' ) end [2025-03-10 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:49:26] Production.INFO: ==28218== Releasing lock... [2025-03-10 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:49:26] Production.INFO: 71 MB #Memory Used# [2025-03-10 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:50:07 [end_date_ymd] => 2025-03-10 16:50:07 [RateCDR] => 1 ) [2025-03-10 16:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:50:07' and `end` < '2025-03-10 16:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:50:20] Production.INFO: count ==5765 [2025-03-10 16:50:22] Production.ERROR: pbx CDR StartTime 2025-03-10 13:50:07 - End Time 2025-03-10 16:50:07 [2025-03-10 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650854', 'tblTempUsageDetail_20' ) start [2025-03-10 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650854', 'tblTempUsageDetail_20' ) end [2025-03-10 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650854', 'tblTempVendorCDR_20' ) start [2025-03-10 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650854', 'tblTempVendorCDR_20' ) end [2025-03-10 16:50:22] Production.INFO: ProcessCDR(1,14650854,1,1,2) [2025-03-10 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650854', 'tblTempUsageDetail_20' ) start [2025-03-10 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650854', 'tblTempUsageDetail_20' ) end [2025-03-10 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:50:28] Production.INFO: ==28297== Releasing lock... [2025-03-10 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:50:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-10 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:51:05 [end_date_ymd] => 2025-03-10 16:51:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:51:05' and `end` < '2025-03-10 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-03-10 16:51:18] Production.INFO: count ==5778 [2025-03-10 16:51:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:51:05 - End Time 2025-03-10 16:51:05 [2025-03-10 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650859', 'tblTempUsageDetail_20' ) start [2025-03-10 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650859', 'tblTempUsageDetail_20' ) end [2025-03-10 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650859', 'tblTempVendorCDR_20' ) start [2025-03-10 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650859', 'tblTempVendorCDR_20' ) end [2025-03-10 16:51:20] Production.INFO: ProcessCDR(1,14650859,1,1,2) [2025-03-10 16:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650859', 'tblTempUsageDetail_20' ) start [2025-03-10 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650859', 'tblTempUsageDetail_20' ) end [2025-03-10 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:51:26] Production.INFO: ==28377== Releasing lock... [2025-03-10 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:51:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-10 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:52:05 [end_date_ymd] => 2025-03-10 16:52:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:52:05' and `end` < '2025-03-10 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-03-10 16:52:18] Production.INFO: count ==5788 [2025-03-10 16:52:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:52:05 - End Time 2025-03-10 16:52:05 [2025-03-10 16:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650864', 'tblTempUsageDetail_20' ) start [2025-03-10 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650864', 'tblTempUsageDetail_20' ) end [2025-03-10 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650864', 'tblTempVendorCDR_20' ) start [2025-03-10 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650864', 'tblTempVendorCDR_20' ) end [2025-03-10 16:52:20] Production.INFO: ProcessCDR(1,14650864,1,1,2) [2025-03-10 16:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650864', 'tblTempUsageDetail_20' ) start [2025-03-10 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650864', 'tblTempUsageDetail_20' ) end [2025-03-10 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:52:25] Production.INFO: ==28455== Releasing lock... [2025-03-10 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:52:25] Production.INFO: 71.25 MB #Memory Used# [2025-03-10 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:53:05 [end_date_ymd] => 2025-03-10 16:53:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:53:05' and `end` < '2025-03-10 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-03-10 16:53:18] Production.INFO: count ==5784 [2025-03-10 16:53:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:53:05 - End Time 2025-03-10 16:53:05 [2025-03-10 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650869', 'tblTempUsageDetail_20' ) start [2025-03-10 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650869', 'tblTempUsageDetail_20' ) end [2025-03-10 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650869', 'tblTempVendorCDR_20' ) start [2025-03-10 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650869', 'tblTempVendorCDR_20' ) end [2025-03-10 16:53:20] Production.INFO: ProcessCDR(1,14650869,1,1,2) [2025-03-10 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650869', 'tblTempUsageDetail_20' ) start [2025-03-10 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650869', 'tblTempUsageDetail_20' ) end [2025-03-10 16:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:53:25] Production.INFO: ==28569== Releasing lock... [2025-03-10 16:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:53:25] Production.INFO: 71.25 MB #Memory Used# [2025-03-10 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:54:06 [end_date_ymd] => 2025-03-10 16:54:06 [RateCDR] => 1 ) [2025-03-10 16:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:54:06' and `end` < '2025-03-10 16:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:54:19] Production.INFO: count ==5786 [2025-03-10 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:54:06 - End Time 2025-03-10 16:54:06 [2025-03-10 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650874', 'tblTempUsageDetail_20' ) start [2025-03-10 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650874', 'tblTempUsageDetail_20' ) end [2025-03-10 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650874', 'tblTempVendorCDR_20' ) start [2025-03-10 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650874', 'tblTempVendorCDR_20' ) end [2025-03-10 16:54:21] Production.INFO: ProcessCDR(1,14650874,1,1,2) [2025-03-10 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650874', 'tblTempUsageDetail_20' ) start [2025-03-10 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650874', 'tblTempUsageDetail_20' ) end [2025-03-10 16:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:54:26] Production.INFO: ==28648== Releasing lock... [2025-03-10 16:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:54:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-10 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:55:05 [end_date_ymd] => 2025-03-10 16:55:05 [RateCDR] => 1 ) [2025-03-10 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:55:05' and `end` < '2025-03-10 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:55:18] Production.INFO: count ==5788 [2025-03-10 16:55:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:55:05 - End Time 2025-03-10 16:55:05 [2025-03-10 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650879', 'tblTempUsageDetail_20' ) start [2025-03-10 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650879', 'tblTempUsageDetail_20' ) end [2025-03-10 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650879', 'tblTempVendorCDR_20' ) start [2025-03-10 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650879', 'tblTempVendorCDR_20' ) end [2025-03-10 16:55:20] Production.INFO: ProcessCDR(1,14650879,1,1,2) [2025-03-10 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650879', 'tblTempUsageDetail_20' ) start [2025-03-10 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650879', 'tblTempUsageDetail_20' ) end [2025-03-10 16:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:55:25] Production.INFO: ==28724== Releasing lock... [2025-03-10 16:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:55:25] Production.INFO: 71.25 MB #Memory Used# [2025-03-10 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:56:06 [end_date_ymd] => 2025-03-10 16:56:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 13:56:06' and `end` < '2025-03-10 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-03-10 16:56:19] Production.INFO: count ==5796 [2025-03-10 16:56:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:56:06 - End Time 2025-03-10 16:56:06 [2025-03-10 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650884', 'tblTempUsageDetail_20' ) start [2025-03-10 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650884', 'tblTempUsageDetail_20' ) end [2025-03-10 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650884', 'tblTempVendorCDR_20' ) start [2025-03-10 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650884', 'tblTempVendorCDR_20' ) end [2025-03-10 16:56:21] Production.INFO: ProcessCDR(1,14650884,1,1,2) [2025-03-10 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650884', 'tblTempUsageDetail_20' ) start [2025-03-10 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650884', 'tblTempUsageDetail_20' ) end [2025-03-10 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:56:27] Production.INFO: ==28806== Releasing lock... [2025-03-10 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:56:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-10 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:57:05 [end_date_ymd] => 2025-03-10 16:57:05 [RateCDR] => 1 ) [2025-03-10 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:57:05' and `end` < '2025-03-10 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:57:18] Production.INFO: count ==5796 [2025-03-10 16:57:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:57:05 - End Time 2025-03-10 16:57:05 [2025-03-10 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650889', 'tblTempUsageDetail_20' ) start [2025-03-10 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650889', 'tblTempUsageDetail_20' ) end [2025-03-10 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650889', 'tblTempVendorCDR_20' ) start [2025-03-10 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650889', 'tblTempVendorCDR_20' ) end [2025-03-10 16:57:20] Production.INFO: ProcessCDR(1,14650889,1,1,2) [2025-03-10 16:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650889', 'tblTempUsageDetail_20' ) start [2025-03-10 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650889', 'tblTempUsageDetail_20' ) end [2025-03-10 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:57:26] Production.INFO: ==28882== Releasing lock... [2025-03-10 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:57:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-10 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:58:05 [end_date_ymd] => 2025-03-10 16:58:05 [RateCDR] => 1 ) [2025-03-10 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:58:05' and `end` < '2025-03-10 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:58:18] Production.INFO: count ==5806 [2025-03-10 16:58:21] Production.ERROR: pbx CDR StartTime 2025-03-10 13:58:05 - End Time 2025-03-10 16:58:05 [2025-03-10 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650894', 'tblTempUsageDetail_20' ) start [2025-03-10 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650894', 'tblTempUsageDetail_20' ) end [2025-03-10 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650894', 'tblTempVendorCDR_20' ) start [2025-03-10 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650894', 'tblTempVendorCDR_20' ) end [2025-03-10 16:58:21] Production.INFO: ProcessCDR(1,14650894,1,1,2) [2025-03-10 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650894', 'tblTempUsageDetail_20' ) start [2025-03-10 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650894', 'tblTempUsageDetail_20' ) end [2025-03-10 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:58:26] Production.INFO: ==28959== Releasing lock... [2025-03-10 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:58:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-10 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 13:59:05 [end_date_ymd] => 2025-03-10 16:59:05 [RateCDR] => 1 ) [2025-03-10 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 13:59:05' and `end` < '2025-03-10 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 16:59:18] Production.INFO: count ==5835 [2025-03-10 16:59:20] Production.ERROR: pbx CDR StartTime 2025-03-10 13:59:05 - End Time 2025-03-10 16:59:05 [2025-03-10 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650899', 'tblTempUsageDetail_20' ) start [2025-03-10 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650899', 'tblTempUsageDetail_20' ) end [2025-03-10 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650899', 'tblTempVendorCDR_20' ) start [2025-03-10 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650899', 'tblTempVendorCDR_20' ) end [2025-03-10 16:59:20] Production.INFO: ProcessCDR(1,14650899,1,1,2) [2025-03-10 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650899', 'tblTempUsageDetail_20' ) start [2025-03-10 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650899', 'tblTempUsageDetail_20' ) end [2025-03-10 16:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 16:59:26] Production.INFO: ==29033== Releasing lock... [2025-03-10 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 16:59:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-10 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:00:06 [end_date_ymd] => 2025-03-10 17:00:06 [RateCDR] => 1 ) [2025-03-10 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:00:06' and `end` < '2025-03-10 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:00:19] Production.INFO: count ==5827 [2025-03-10 17:00:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:00:06 - End Time 2025-03-10 17:00:06 [2025-03-10 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650904', 'tblTempUsageDetail_20' ) start [2025-03-10 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650904', 'tblTempUsageDetail_20' ) end [2025-03-10 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650904', 'tblTempVendorCDR_20' ) start [2025-03-10 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650904', 'tblTempVendorCDR_20' ) end [2025-03-10 17:00:21] Production.INFO: ProcessCDR(1,14650904,1,1,2) [2025-03-10 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650904', 'tblTempUsageDetail_20' ) start [2025-03-10 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650904', 'tblTempUsageDetail_20' ) end [2025-03-10 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:00:26] Production.INFO: ==29119== Releasing lock... [2025-03-10 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:00:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-10 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:01:06 [end_date_ymd] => 2025-03-10 17:01:06 [RateCDR] => 1 ) [2025-03-10 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:01:06' and `end` < '2025-03-10 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:01:19] Production.INFO: count ==5752 [2025-03-10 17:01:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:01:06 - End Time 2025-03-10 17:01:06 [2025-03-10 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650910', 'tblTempUsageDetail_20' ) start [2025-03-10 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650910', 'tblTempUsageDetail_20' ) end [2025-03-10 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650910', 'tblTempVendorCDR_20' ) start [2025-03-10 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650910', 'tblTempVendorCDR_20' ) end [2025-03-10 17:01:21] Production.INFO: ProcessCDR(1,14650910,1,1,2) [2025-03-10 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650910', 'tblTempUsageDetail_20' ) start [2025-03-10 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650910', 'tblTempUsageDetail_20' ) end [2025-03-10 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:01:26] Production.INFO: ==29211== Releasing lock... [2025-03-10 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:01:26] Production.INFO: 71 MB #Memory Used# [2025-03-10 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:02:05 [end_date_ymd] => 2025-03-10 17:02:05 [RateCDR] => 1 ) [2025-03-10 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:02:05' and `end` < '2025-03-10 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:02:18] Production.INFO: count ==5753 [2025-03-10 17:02:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:02:05 - End Time 2025-03-10 17:02:05 [2025-03-10 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650915', 'tblTempUsageDetail_20' ) start [2025-03-10 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650915', 'tblTempUsageDetail_20' ) end [2025-03-10 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650915', 'tblTempVendorCDR_20' ) start [2025-03-10 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650915', 'tblTempVendorCDR_20' ) end [2025-03-10 17:02:21] Production.INFO: ProcessCDR(1,14650915,1,1,2) [2025-03-10 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650915', 'tblTempUsageDetail_20' ) start [2025-03-10 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650915', 'tblTempUsageDetail_20' ) end [2025-03-10 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:02:26] Production.INFO: ==29286== Releasing lock... [2025-03-10 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:02:26] Production.INFO: 71 MB #Memory Used# [2025-03-10 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:03:05 [end_date_ymd] => 2025-03-10 17:03:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:03:05' and `end` < '2025-03-10 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-03-10 17:03:18] Production.INFO: count ==5747 [2025-03-10 17:03:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:03:05 - End Time 2025-03-10 17:03:05 [2025-03-10 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650920', 'tblTempUsageDetail_20' ) start [2025-03-10 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650920', 'tblTempUsageDetail_20' ) end [2025-03-10 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650920', 'tblTempVendorCDR_20' ) start [2025-03-10 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650920', 'tblTempVendorCDR_20' ) end [2025-03-10 17:03:21] Production.INFO: ProcessCDR(1,14650920,1,1,2) [2025-03-10 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650920', 'tblTempUsageDetail_20' ) start [2025-03-10 17:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650920', 'tblTempUsageDetail_20' ) end [2025-03-10 17:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:03:25] Production.INFO: ==29362== Releasing lock... [2025-03-10 17:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:03:25] Production.INFO: 71 MB #Memory Used# [2025-03-10 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:04:06 [end_date_ymd] => 2025-03-10 17:04:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:04:06' and `end` < '2025-03-10 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-03-10 17:04:19] Production.INFO: count ==5751 [2025-03-10 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:04:06 - End Time 2025-03-10 17:04:06 [2025-03-10 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650925', 'tblTempUsageDetail_20' ) start [2025-03-10 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650925', 'tblTempUsageDetail_20' ) end [2025-03-10 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650925', 'tblTempVendorCDR_20' ) start [2025-03-10 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650925', 'tblTempVendorCDR_20' ) end [2025-03-10 17:04:21] Production.INFO: ProcessCDR(1,14650925,1,1,2) [2025-03-10 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650925', 'tblTempUsageDetail_20' ) start [2025-03-10 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650925', 'tblTempUsageDetail_20' ) end [2025-03-10 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:04:26] Production.INFO: ==29442== Releasing lock... [2025-03-10 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:04:26] Production.INFO: 71 MB #Memory Used# [2025-03-10 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:05:05 [end_date_ymd] => 2025-03-10 17:05:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:05:05' and `end` < '2025-03-10 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-03-10 17:05:18] Production.INFO: count ==5749 [2025-03-10 17:05:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:05:05 - End Time 2025-03-10 17:05:05 [2025-03-10 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650930', 'tblTempUsageDetail_20' ) start [2025-03-10 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650930', 'tblTempUsageDetail_20' ) end [2025-03-10 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650930', 'tblTempVendorCDR_20' ) start [2025-03-10 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650930', 'tblTempVendorCDR_20' ) end [2025-03-10 17:05:20] Production.INFO: ProcessCDR(1,14650930,1,1,2) [2025-03-10 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650930', 'tblTempUsageDetail_20' ) start [2025-03-10 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650930', 'tblTempUsageDetail_20' ) end [2025-03-10 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:05:25] Production.INFO: ==29517== Releasing lock... [2025-03-10 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:05:25] Production.INFO: 71 MB #Memory Used# [2025-03-10 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:06:05 [end_date_ymd] => 2025-03-10 17:06:05 [RateCDR] => 1 ) [2025-03-10 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:06:05' and `end` < '2025-03-10 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:06:18] Production.INFO: count ==5709 [2025-03-10 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:06:05 - End Time 2025-03-10 17:06:05 [2025-03-10 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650935', 'tblTempUsageDetail_20' ) start [2025-03-10 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650935', 'tblTempUsageDetail_20' ) end [2025-03-10 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650935', 'tblTempVendorCDR_20' ) start [2025-03-10 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650935', 'tblTempVendorCDR_20' ) end [2025-03-10 17:06:21] Production.INFO: ProcessCDR(1,14650935,1,1,2) [2025-03-10 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650935', 'tblTempUsageDetail_20' ) start [2025-03-10 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650935', 'tblTempUsageDetail_20' ) end [2025-03-10 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:06:25] Production.INFO: ==29594== Releasing lock... [2025-03-10 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:06:25] Production.INFO: 70.75 MB #Memory Used# [2025-03-10 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:07:05 [end_date_ymd] => 2025-03-10 17:07:05 [RateCDR] => 1 ) [2025-03-10 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:07:05' and `end` < '2025-03-10 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:07:18] Production.INFO: count ==5691 [2025-03-10 17:07:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:07:05 - End Time 2025-03-10 17:07:05 [2025-03-10 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650940', 'tblTempUsageDetail_20' ) start [2025-03-10 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650940', 'tblTempUsageDetail_20' ) end [2025-03-10 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650940', 'tblTempVendorCDR_20' ) start [2025-03-10 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650940', 'tblTempVendorCDR_20' ) end [2025-03-10 17:07:21] Production.INFO: ProcessCDR(1,14650940,1,1,2) [2025-03-10 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650940', 'tblTempUsageDetail_20' ) start [2025-03-10 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650940', 'tblTempUsageDetail_20' ) end [2025-03-10 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:07:25] Production.INFO: ==29667== Releasing lock... [2025-03-10 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:07:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-10 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:08:05 [end_date_ymd] => 2025-03-10 17:08:05 [RateCDR] => 1 ) [2025-03-10 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:08:05' and `end` < '2025-03-10 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:08:18] Production.INFO: count ==5670 [2025-03-10 17:08:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:08:05 - End Time 2025-03-10 17:08:05 [2025-03-10 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650945', 'tblTempUsageDetail_20' ) start [2025-03-10 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650945', 'tblTempUsageDetail_20' ) end [2025-03-10 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650945', 'tblTempVendorCDR_20' ) start [2025-03-10 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650945', 'tblTempVendorCDR_20' ) end [2025-03-10 17:08:20] Production.INFO: ProcessCDR(1,14650945,1,1,2) [2025-03-10 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650945', 'tblTempUsageDetail_20' ) start [2025-03-10 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650945', 'tblTempUsageDetail_20' ) end [2025-03-10 17:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:08:25] Production.INFO: ==29783== Releasing lock... [2025-03-10 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:08:25] Production.INFO: 70.5 MB #Memory Used# [2025-03-10 17:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:09:04 [end_date_ymd] => 2025-03-10 17:09:04 [RateCDR] => 1 ) [2025-03-10 17:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:09:04' and `end` < '2025-03-10 17:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:09:17] Production.INFO: count ==5660 [2025-03-10 17:09:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:09:04 - End Time 2025-03-10 17:09:04 [2025-03-10 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650950', 'tblTempUsageDetail_20' ) start [2025-03-10 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650950', 'tblTempUsageDetail_20' ) end [2025-03-10 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650950', 'tblTempVendorCDR_20' ) start [2025-03-10 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650950', 'tblTempVendorCDR_20' ) end [2025-03-10 17:09:20] Production.INFO: ProcessCDR(1,14650950,1,1,2) [2025-03-10 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650950', 'tblTempUsageDetail_20' ) start [2025-03-10 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650950', 'tblTempUsageDetail_20' ) end [2025-03-10 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:09:25] Production.INFO: ==29858== Releasing lock... [2025-03-10 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:09:25] Production.INFO: 70.25 MB #Memory Used# [2025-03-10 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:10:06 [end_date_ymd] => 2025-03-10 17:10:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:10:06' and `end` < '2025-03-10 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-03-10 17:10:19] Production.INFO: count ==5652 [2025-03-10 17:10:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:10:06 - End Time 2025-03-10 17:10:06 [2025-03-10 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650956', 'tblTempUsageDetail_20' ) start [2025-03-10 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650956', 'tblTempUsageDetail_20' ) end [2025-03-10 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650956', 'tblTempVendorCDR_20' ) start [2025-03-10 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650956', 'tblTempVendorCDR_20' ) end [2025-03-10 17:10:21] Production.INFO: ProcessCDR(1,14650956,1,1,2) [2025-03-10 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650956', 'tblTempUsageDetail_20' ) start [2025-03-10 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650956', 'tblTempUsageDetail_20' ) end [2025-03-10 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:10:26] Production.INFO: ==29933== Releasing lock... [2025-03-10 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:10:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-10 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:11:05 [end_date_ymd] => 2025-03-10 17:11:05 [RateCDR] => 1 ) [2025-03-10 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:11:05' and `end` < '2025-03-10 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:11:18] Production.INFO: count ==5580 [2025-03-10 17:11:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:11:05 - End Time 2025-03-10 17:11:05 [2025-03-10 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650961', 'tblTempUsageDetail_20' ) start [2025-03-10 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650961', 'tblTempUsageDetail_20' ) end [2025-03-10 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650961', 'tblTempVendorCDR_20' ) start [2025-03-10 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650961', 'tblTempVendorCDR_20' ) end [2025-03-10 17:11:20] Production.INFO: ProcessCDR(1,14650961,1,1,2) [2025-03-10 17:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650961', 'tblTempUsageDetail_20' ) start [2025-03-10 17:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650961', 'tblTempUsageDetail_20' ) end [2025-03-10 17:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:11:25] Production.INFO: ==30014== Releasing lock... [2025-03-10 17:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:11:25] Production.INFO: 69.75 MB #Memory Used# [2025-03-10 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:12:05 [end_date_ymd] => 2025-03-10 17:12:05 [RateCDR] => 1 ) [2025-03-10 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:12:05' and `end` < '2025-03-10 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:12:18] Production.INFO: count ==5545 [2025-03-10 17:12:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:12:05 - End Time 2025-03-10 17:12:05 [2025-03-10 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650966', 'tblTempUsageDetail_20' ) start [2025-03-10 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650966', 'tblTempUsageDetail_20' ) end [2025-03-10 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650966', 'tblTempVendorCDR_20' ) start [2025-03-10 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650966', 'tblTempVendorCDR_20' ) end [2025-03-10 17:12:21] Production.INFO: ProcessCDR(1,14650966,1,1,2) [2025-03-10 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650966', 'tblTempUsageDetail_20' ) start [2025-03-10 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650966', 'tblTempUsageDetail_20' ) end [2025-03-10 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:12:26] Production.INFO: ==30089== Releasing lock... [2025-03-10 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:12:26] Production.INFO: 69.5 MB #Memory Used# [2025-03-10 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:13:05 [end_date_ymd] => 2025-03-10 17:13:05 [RateCDR] => 1 ) [2025-03-10 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:13:05' and `end` < '2025-03-10 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:13:18] Production.INFO: count ==5546 [2025-03-10 17:13:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:13:05 - End Time 2025-03-10 17:13:05 [2025-03-10 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650971', 'tblTempUsageDetail_20' ) start [2025-03-10 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650971', 'tblTempUsageDetail_20' ) end [2025-03-10 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650971', 'tblTempVendorCDR_20' ) start [2025-03-10 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650971', 'tblTempVendorCDR_20' ) end [2025-03-10 17:13:20] Production.INFO: ProcessCDR(1,14650971,1,1,2) [2025-03-10 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650971', 'tblTempUsageDetail_20' ) start [2025-03-10 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650971', 'tblTempUsageDetail_20' ) end [2025-03-10 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:13:25] Production.INFO: ==30169== Releasing lock... [2025-03-10 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:13:25] Production.INFO: 69.5 MB #Memory Used# [2025-03-10 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:14:05 [end_date_ymd] => 2025-03-10 17:14:05 [RateCDR] => 1 ) [2025-03-10 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:14:05' and `end` < '2025-03-10 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:14:18] Production.INFO: count ==5552 [2025-03-10 17:14:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:14:05 - End Time 2025-03-10 17:14:05 [2025-03-10 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650976', 'tblTempUsageDetail_20' ) start [2025-03-10 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650976', 'tblTempUsageDetail_20' ) end [2025-03-10 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650976', 'tblTempVendorCDR_20' ) start [2025-03-10 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650976', 'tblTempVendorCDR_20' ) end [2025-03-10 17:14:20] Production.INFO: ProcessCDR(1,14650976,1,1,2) [2025-03-10 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650976', 'tblTempUsageDetail_20' ) start [2025-03-10 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650976', 'tblTempUsageDetail_20' ) end [2025-03-10 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:14:25] Production.INFO: ==30245== Releasing lock... [2025-03-10 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:14:25] Production.INFO: 69.5 MB #Memory Used# [2025-03-10 17:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:15:04 [end_date_ymd] => 2025-03-10 17:15:04 [RateCDR] => 1 ) [2025-03-10 17:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:15:04' and `end` < '2025-03-10 17:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:15:17] Production.INFO: count ==5526 [2025-03-10 17:15:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:15:04 - End Time 2025-03-10 17:15:04 [2025-03-10 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650981', 'tblTempUsageDetail_20' ) start [2025-03-10 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650981', 'tblTempUsageDetail_20' ) end [2025-03-10 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650981', 'tblTempVendorCDR_20' ) start [2025-03-10 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650981', 'tblTempVendorCDR_20' ) end [2025-03-10 17:15:20] Production.INFO: ProcessCDR(1,14650981,1,1,2) [2025-03-10 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650981', 'tblTempUsageDetail_20' ) start [2025-03-10 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650981', 'tblTempUsageDetail_20' ) end [2025-03-10 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:15:25] Production.INFO: ==30319== Releasing lock... [2025-03-10 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:15:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-10 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:16:05 [end_date_ymd] => 2025-03-10 17:16:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:16:05' and `end` < '2025-03-10 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-03-10 17:16:18] Production.INFO: count ==5493 [2025-03-10 17:16:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:16:05 - End Time 2025-03-10 17:16:05 [2025-03-10 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650986', 'tblTempUsageDetail_20' ) start [2025-03-10 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650986', 'tblTempUsageDetail_20' ) end [2025-03-10 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650986', 'tblTempVendorCDR_20' ) start [2025-03-10 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650986', 'tblTempVendorCDR_20' ) end [2025-03-10 17:16:20] Production.INFO: ProcessCDR(1,14650986,1,1,2) [2025-03-10 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650986', 'tblTempUsageDetail_20' ) start [2025-03-10 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650986', 'tblTempUsageDetail_20' ) end [2025-03-10 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:16:25] Production.INFO: ==30395== Releasing lock... [2025-03-10 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:16:25] Production.INFO: 69 MB #Memory Used# [2025-03-10 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:17:06 [end_date_ymd] => 2025-03-10 17:17:06 [RateCDR] => 1 ) [2025-03-10 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:17:06' and `end` < '2025-03-10 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:17:19] Production.INFO: count ==5485 [2025-03-10 17:17:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:17:06 - End Time 2025-03-10 17:17:06 [2025-03-10 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650991', 'tblTempUsageDetail_20' ) start [2025-03-10 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650991', 'tblTempUsageDetail_20' ) end [2025-03-10 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650991', 'tblTempVendorCDR_20' ) start [2025-03-10 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650991', 'tblTempVendorCDR_20' ) end [2025-03-10 17:17:21] Production.INFO: ProcessCDR(1,14650991,1,1,2) [2025-03-10 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650991', 'tblTempUsageDetail_20' ) start [2025-03-10 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650991', 'tblTempUsageDetail_20' ) end [2025-03-10 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:17:26] Production.INFO: ==30472== Releasing lock... [2025-03-10 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:17:26] Production.INFO: 69 MB #Memory Used# [2025-03-10 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:18:05 [end_date_ymd] => 2025-03-10 17:18:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:18:05' and `end` < '2025-03-10 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-03-10 17:18:18] Production.INFO: count ==5485 [2025-03-10 17:18:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:18:05 - End Time 2025-03-10 17:18:05 [2025-03-10 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650996', 'tblTempUsageDetail_20' ) start [2025-03-10 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14650996', 'tblTempUsageDetail_20' ) end [2025-03-10 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650996', 'tblTempVendorCDR_20' ) start [2025-03-10 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14650996', 'tblTempVendorCDR_20' ) end [2025-03-10 17:18:20] Production.INFO: ProcessCDR(1,14650996,1,1,2) [2025-03-10 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14650996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14650996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14650996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14650996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650996', 'tblTempUsageDetail_20' ) start [2025-03-10 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14650996', 'tblTempUsageDetail_20' ) end [2025-03-10 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:18:25] Production.INFO: ==30557== Releasing lock... [2025-03-10 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:18:25] Production.INFO: 69 MB #Memory Used# [2025-03-10 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:19:05 [end_date_ymd] => 2025-03-10 17:19:05 [RateCDR] => 1 ) [2025-03-10 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:19:05' and `end` < '2025-03-10 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:19:18] Production.INFO: count ==5488 [2025-03-10 17:19:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:19:05 - End Time 2025-03-10 17:19:05 [2025-03-10 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651001', 'tblTempUsageDetail_20' ) start [2025-03-10 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651001', 'tblTempUsageDetail_20' ) end [2025-03-10 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651001', 'tblTempVendorCDR_20' ) start [2025-03-10 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651001', 'tblTempVendorCDR_20' ) end [2025-03-10 17:19:21] Production.INFO: ProcessCDR(1,14651001,1,1,2) [2025-03-10 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651001', 'tblTempUsageDetail_20' ) start [2025-03-10 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651001', 'tblTempUsageDetail_20' ) end [2025-03-10 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:19:25] Production.INFO: ==30630== Releasing lock... [2025-03-10 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:19:25] Production.INFO: 69 MB #Memory Used# [2025-03-10 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:20:06 [end_date_ymd] => 2025-03-10 17:20:06 [RateCDR] => 1 ) [2025-03-10 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:20:06' and `end` < '2025-03-10 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:20:19] Production.INFO: count ==5485 [2025-03-10 17:20:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:20:06 - End Time 2025-03-10 17:20:06 [2025-03-10 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651007', 'tblTempUsageDetail_20' ) start [2025-03-10 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651007', 'tblTempUsageDetail_20' ) end [2025-03-10 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651007', 'tblTempVendorCDR_20' ) start [2025-03-10 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651007', 'tblTempVendorCDR_20' ) end [2025-03-10 17:20:21] Production.INFO: ProcessCDR(1,14651007,1,1,2) [2025-03-10 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651007', 'tblTempUsageDetail_20' ) start [2025-03-10 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651007', 'tblTempUsageDetail_20' ) end [2025-03-10 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:20:26] Production.INFO: ==30704== Releasing lock... [2025-03-10 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:20:26] Production.INFO: 69 MB #Memory Used# [2025-03-10 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:21:05 [end_date_ymd] => 2025-03-10 17:21:05 [RateCDR] => 1 ) [2025-03-10 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:21:05' and `end` < '2025-03-10 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:21:18] Production.INFO: count ==5442 [2025-03-10 17:21:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:21:05 - End Time 2025-03-10 17:21:05 [2025-03-10 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651012', 'tblTempUsageDetail_20' ) start [2025-03-10 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651012', 'tblTempUsageDetail_20' ) end [2025-03-10 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651012', 'tblTempVendorCDR_20' ) start [2025-03-10 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651012', 'tblTempVendorCDR_20' ) end [2025-03-10 17:21:21] Production.INFO: ProcessCDR(1,14651012,1,1,2) [2025-03-10 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651012', 'tblTempUsageDetail_20' ) start [2025-03-10 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651012', 'tblTempUsageDetail_20' ) end [2025-03-10 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:21:26] Production.INFO: ==30785== Releasing lock... [2025-03-10 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:21:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-10 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:22:05 [end_date_ymd] => 2025-03-10 17:22:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:22:05' and `end` < '2025-03-10 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-03-10 17:22:18] Production.INFO: count ==5423 [2025-03-10 17:22:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:22:05 - End Time 2025-03-10 17:22:05 [2025-03-10 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651017', 'tblTempUsageDetail_20' ) start [2025-03-10 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651017', 'tblTempUsageDetail_20' ) end [2025-03-10 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651017', 'tblTempVendorCDR_20' ) start [2025-03-10 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651017', 'tblTempVendorCDR_20' ) end [2025-03-10 17:22:20] Production.INFO: ProcessCDR(1,14651017,1,1,2) [2025-03-10 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651017', 'tblTempUsageDetail_20' ) start [2025-03-10 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651017', 'tblTempUsageDetail_20' ) end [2025-03-10 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:22:25] Production.INFO: ==30865== Releasing lock... [2025-03-10 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:22:25] Production.INFO: 68.5 MB #Memory Used# [2025-03-10 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:23:05 [end_date_ymd] => 2025-03-10 17:23:05 [RateCDR] => 1 ) [2025-03-10 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:23:05' and `end` < '2025-03-10 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:23:18] Production.INFO: count ==5402 [2025-03-10 17:23:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:23:05 - End Time 2025-03-10 17:23:05 [2025-03-10 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651022', 'tblTempUsageDetail_20' ) start [2025-03-10 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651022', 'tblTempUsageDetail_20' ) end [2025-03-10 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651022', 'tblTempVendorCDR_20' ) start [2025-03-10 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651022', 'tblTempVendorCDR_20' ) end [2025-03-10 17:23:20] Production.INFO: ProcessCDR(1,14651022,1,1,2) [2025-03-10 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651022', 'tblTempUsageDetail_20' ) start [2025-03-10 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651022', 'tblTempUsageDetail_20' ) end [2025-03-10 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:23:26] Production.INFO: ==30943== Releasing lock... [2025-03-10 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:23:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-10 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:24:05 [end_date_ymd] => 2025-03-10 17:24:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:24:05' and `end` < '2025-03-10 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-03-10 17:24:18] Production.INFO: count ==5375 [2025-03-10 17:24:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:24:05 - End Time 2025-03-10 17:24:05 [2025-03-10 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651027', 'tblTempUsageDetail_20' ) start [2025-03-10 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651027', 'tblTempUsageDetail_20' ) end [2025-03-10 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651027', 'tblTempVendorCDR_20' ) start [2025-03-10 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651027', 'tblTempVendorCDR_20' ) end [2025-03-10 17:24:21] Production.INFO: ProcessCDR(1,14651027,1,1,2) [2025-03-10 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651027', 'tblTempUsageDetail_20' ) start [2025-03-10 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651027', 'tblTempUsageDetail_20' ) end [2025-03-10 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:24:25] Production.INFO: ==31060== Releasing lock... [2025-03-10 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:24:25] Production.INFO: 68.25 MB #Memory Used# [2025-03-10 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:25:05 [end_date_ymd] => 2025-03-10 17:25:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:25:05' and `end` < '2025-03-10 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-03-10 17:25:18] Production.INFO: count ==5355 [2025-03-10 17:25:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:25:05 - End Time 2025-03-10 17:25:05 [2025-03-10 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651032', 'tblTempUsageDetail_20' ) start [2025-03-10 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651032', 'tblTempUsageDetail_20' ) end [2025-03-10 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651032', 'tblTempVendorCDR_20' ) start [2025-03-10 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651032', 'tblTempVendorCDR_20' ) end [2025-03-10 17:25:20] Production.INFO: ProcessCDR(1,14651032,1,1,2) [2025-03-10 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651032', 'tblTempUsageDetail_20' ) start [2025-03-10 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651032', 'tblTempUsageDetail_20' ) end [2025-03-10 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:25:25] Production.INFO: ==31143== Releasing lock... [2025-03-10 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:25:25] Production.INFO: 68 MB #Memory Used# [2025-03-10 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:26:05 [end_date_ymd] => 2025-03-10 17:26:05 [RateCDR] => 1 ) [2025-03-10 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:26:05' and `end` < '2025-03-10 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:26:18] Production.INFO: count ==5314 [2025-03-10 17:26:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:26:05 - End Time 2025-03-10 17:26:05 [2025-03-10 17:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651037', 'tblTempUsageDetail_20' ) start [2025-03-10 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651037', 'tblTempUsageDetail_20' ) end [2025-03-10 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651037', 'tblTempVendorCDR_20' ) start [2025-03-10 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651037', 'tblTempVendorCDR_20' ) end [2025-03-10 17:26:20] Production.INFO: ProcessCDR(1,14651037,1,1,2) [2025-03-10 17:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651037', 'tblTempUsageDetail_20' ) start [2025-03-10 17:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651037', 'tblTempUsageDetail_20' ) end [2025-03-10 17:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:26:25] Production.INFO: ==31218== Releasing lock... [2025-03-10 17:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:26:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-10 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:27:05 [end_date_ymd] => 2025-03-10 17:27:05 [RateCDR] => 1 ) [2025-03-10 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:27:05' and `end` < '2025-03-10 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:27:18] Production.INFO: count ==5296 [2025-03-10 17:27:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:27:05 - End Time 2025-03-10 17:27:05 [2025-03-10 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651042', 'tblTempUsageDetail_20' ) start [2025-03-10 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651042', 'tblTempUsageDetail_20' ) end [2025-03-10 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651042', 'tblTempVendorCDR_20' ) start [2025-03-10 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651042', 'tblTempVendorCDR_20' ) end [2025-03-10 17:27:20] Production.INFO: ProcessCDR(1,14651042,1,1,2) [2025-03-10 17:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651042', 'tblTempUsageDetail_20' ) start [2025-03-10 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651042', 'tblTempUsageDetail_20' ) end [2025-03-10 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:27:25] Production.INFO: ==31297== Releasing lock... [2025-03-10 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:27:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-10 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:28:05 [end_date_ymd] => 2025-03-10 17:28:05 [RateCDR] => 1 ) [2025-03-10 17:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:28:05' and `end` < '2025-03-10 17:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:28:17] Production.INFO: count ==5297 [2025-03-10 17:28:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:28:05 - End Time 2025-03-10 17:28:05 [2025-03-10 17:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651047', 'tblTempUsageDetail_20' ) start [2025-03-10 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651047', 'tblTempUsageDetail_20' ) end [2025-03-10 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651047', 'tblTempVendorCDR_20' ) start [2025-03-10 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651047', 'tblTempVendorCDR_20' ) end [2025-03-10 17:28:20] Production.INFO: ProcessCDR(1,14651047,1,1,2) [2025-03-10 17:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651047', 'tblTempUsageDetail_20' ) start [2025-03-10 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651047', 'tblTempUsageDetail_20' ) end [2025-03-10 17:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:28:25] Production.INFO: ==31376== Releasing lock... [2025-03-10 17:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:28:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-10 17:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:29:06 [end_date_ymd] => 2025-03-10 17:29:06 [RateCDR] => 1 ) [2025-03-10 17:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:29:06' and `end` < '2025-03-10 17:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:29:19] Production.INFO: count ==5274 [2025-03-10 17:29:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:29:06 - End Time 2025-03-10 17:29:06 [2025-03-10 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651052', 'tblTempUsageDetail_20' ) start [2025-03-10 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651052', 'tblTempUsageDetail_20' ) end [2025-03-10 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651052', 'tblTempVendorCDR_20' ) start [2025-03-10 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651052', 'tblTempVendorCDR_20' ) end [2025-03-10 17:29:21] Production.INFO: ProcessCDR(1,14651052,1,1,2) [2025-03-10 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651052', 'tblTempUsageDetail_20' ) start [2025-03-10 17:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651052', 'tblTempUsageDetail_20' ) end [2025-03-10 17:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:29:26] Production.INFO: ==31471== Releasing lock... [2025-03-10 17:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:29:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-10 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:30:06 [end_date_ymd] => 2025-03-10 17:30:06 [RateCDR] => 1 ) [2025-03-10 17:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:30:06' and `end` < '2025-03-10 17:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:30:19] Production.INFO: count ==5247 [2025-03-10 17:30:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:30:06 - End Time 2025-03-10 17:30:06 [2025-03-10 17:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651058', 'tblTempUsageDetail_20' ) start [2025-03-10 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651058', 'tblTempUsageDetail_20' ) end [2025-03-10 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651058', 'tblTempVendorCDR_20' ) start [2025-03-10 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651058', 'tblTempVendorCDR_20' ) end [2025-03-10 17:30:22] Production.INFO: ProcessCDR(1,14651058,1,1,2) [2025-03-10 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651058', 'tblTempUsageDetail_20' ) start [2025-03-10 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651058', 'tblTempUsageDetail_20' ) end [2025-03-10 17:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:30:25] Production.INFO: ==31562== Releasing lock... [2025-03-10 17:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:30:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-10 17:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:31:06 [end_date_ymd] => 2025-03-10 17:31:06 [RateCDR] => 1 ) [2025-03-10 17:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:31:06' and `end` < '2025-03-10 17:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:31:19] Production.INFO: count ==5170 [2025-03-10 17:31:22] Production.ERROR: pbx CDR StartTime 2025-03-10 14:31:06 - End Time 2025-03-10 17:31:06 [2025-03-10 17:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651063', 'tblTempUsageDetail_20' ) start [2025-03-10 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651063', 'tblTempUsageDetail_20' ) end [2025-03-10 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651063', 'tblTempVendorCDR_20' ) start [2025-03-10 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651063', 'tblTempVendorCDR_20' ) end [2025-03-10 17:31:22] Production.INFO: ProcessCDR(1,14651063,1,1,2) [2025-03-10 17:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651063', 'tblTempUsageDetail_20' ) start [2025-03-10 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651063', 'tblTempUsageDetail_20' ) end [2025-03-10 17:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:31:27] Production.INFO: ==31660== Releasing lock... [2025-03-10 17:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:31:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-10 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:32:06 [end_date_ymd] => 2025-03-10 17:32:06 [RateCDR] => 1 ) [2025-03-10 17:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:32:06' and `end` < '2025-03-10 17:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:32:19] Production.INFO: count ==5127 [2025-03-10 17:32:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:32:06 - End Time 2025-03-10 17:32:06 [2025-03-10 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651068', 'tblTempUsageDetail_20' ) start [2025-03-10 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651068', 'tblTempUsageDetail_20' ) end [2025-03-10 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651068', 'tblTempVendorCDR_20' ) start [2025-03-10 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651068', 'tblTempVendorCDR_20' ) end [2025-03-10 17:32:21] Production.INFO: ProcessCDR(1,14651068,1,1,2) [2025-03-10 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651068', 'tblTempUsageDetail_20' ) start [2025-03-10 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651068', 'tblTempUsageDetail_20' ) end [2025-03-10 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:32:27] Production.INFO: ==31746== Releasing lock... [2025-03-10 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:32:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-10 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:33:06 [end_date_ymd] => 2025-03-10 17:33:06 [RateCDR] => 1 ) [2025-03-10 17:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:33:06' and `end` < '2025-03-10 17:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:33:19] Production.INFO: count ==5118 [2025-03-10 17:33:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:33:06 - End Time 2025-03-10 17:33:06 [2025-03-10 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651073', 'tblTempUsageDetail_20' ) start [2025-03-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651073', 'tblTempUsageDetail_20' ) end [2025-03-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651073', 'tblTempVendorCDR_20' ) start [2025-03-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651073', 'tblTempVendorCDR_20' ) end [2025-03-10 17:33:21] Production.INFO: ProcessCDR(1,14651073,1,1,2) [2025-03-10 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651073', 'tblTempUsageDetail_20' ) start [2025-03-10 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651073', 'tblTempUsageDetail_20' ) end [2025-03-10 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:33:27] Production.INFO: ==31842== Releasing lock... [2025-03-10 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:33:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:34:05 [end_date_ymd] => 2025-03-10 17:34:05 [RateCDR] => 1 ) [2025-03-10 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:34:05' and `end` < '2025-03-10 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:34:18] Production.INFO: count ==5105 [2025-03-10 17:34:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:34:05 - End Time 2025-03-10 17:34:05 [2025-03-10 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651078', 'tblTempUsageDetail_20' ) start [2025-03-10 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651078', 'tblTempUsageDetail_20' ) end [2025-03-10 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651078', 'tblTempVendorCDR_20' ) start [2025-03-10 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651078', 'tblTempVendorCDR_20' ) end [2025-03-10 17:34:21] Production.INFO: ProcessCDR(1,14651078,1,1,2) [2025-03-10 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651078', 'tblTempUsageDetail_20' ) start [2025-03-10 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651078', 'tblTempUsageDetail_20' ) end [2025-03-10 17:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:34:26] Production.INFO: ==31928== Releasing lock... [2025-03-10 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:34:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-10 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:35:05 [end_date_ymd] => 2025-03-10 17:35:05 [RateCDR] => 1 ) [2025-03-10 17:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:35:05' and `end` < '2025-03-10 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:35:19] Production.INFO: count ==5081 [2025-03-10 17:35:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:35:05 - End Time 2025-03-10 17:35:05 [2025-03-10 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651083', 'tblTempUsageDetail_20' ) start [2025-03-10 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651083', 'tblTempUsageDetail_20' ) end [2025-03-10 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651083', 'tblTempVendorCDR_20' ) start [2025-03-10 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651083', 'tblTempVendorCDR_20' ) end [2025-03-10 17:35:21] Production.INFO: ProcessCDR(1,14651083,1,1,2) [2025-03-10 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651083', 'tblTempUsageDetail_20' ) start [2025-03-10 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651083', 'tblTempUsageDetail_20' ) end [2025-03-10 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:35:26] Production.INFO: ==32025== Releasing lock... [2025-03-10 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:35:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:36:05 [end_date_ymd] => 2025-03-10 17:36:05 [RateCDR] => 1 ) [2025-03-10 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:36:05' and `end` < '2025-03-10 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:36:18] Production.INFO: count ==5076 [2025-03-10 17:36:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:36:05 - End Time 2025-03-10 17:36:05 [2025-03-10 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651088', 'tblTempUsageDetail_20' ) start [2025-03-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651088', 'tblTempUsageDetail_20' ) end [2025-03-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651088', 'tblTempVendorCDR_20' ) start [2025-03-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651088', 'tblTempVendorCDR_20' ) end [2025-03-10 17:36:21] Production.INFO: ProcessCDR(1,14651088,1,1,2) [2025-03-10 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651088', 'tblTempUsageDetail_20' ) start [2025-03-10 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651088', 'tblTempUsageDetail_20' ) end [2025-03-10 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:36:26] Production.INFO: ==32119== Releasing lock... [2025-03-10 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:36:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:37:05 [end_date_ymd] => 2025-03-10 17:37:05 [RateCDR] => 1 ) [2025-03-10 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:37:05' and `end` < '2025-03-10 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:37:18] Production.INFO: count ==5081 [2025-03-10 17:37:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:37:05 - End Time 2025-03-10 17:37:05 [2025-03-10 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651093', 'tblTempUsageDetail_20' ) start [2025-03-10 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651093', 'tblTempUsageDetail_20' ) end [2025-03-10 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651093', 'tblTempVendorCDR_20' ) start [2025-03-10 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651093', 'tblTempVendorCDR_20' ) end [2025-03-10 17:37:21] Production.INFO: ProcessCDR(1,14651093,1,1,2) [2025-03-10 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651093', 'tblTempUsageDetail_20' ) start [2025-03-10 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651093', 'tblTempUsageDetail_20' ) end [2025-03-10 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:37:26] Production.INFO: ==32213== Releasing lock... [2025-03-10 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:37:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:38:05 [end_date_ymd] => 2025-03-10 17:38:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:38:05' and `end` < '2025-03-10 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-03-10 17:38:18] Production.INFO: count ==5068 [2025-03-10 17:38:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:38:05 - End Time 2025-03-10 17:38:05 [2025-03-10 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651098', 'tblTempUsageDetail_20' ) start [2025-03-10 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651098', 'tblTempUsageDetail_20' ) end [2025-03-10 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651098', 'tblTempVendorCDR_20' ) start [2025-03-10 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651098', 'tblTempVendorCDR_20' ) end [2025-03-10 17:38:20] Production.INFO: ProcessCDR(1,14651098,1,1,2) [2025-03-10 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651098', 'tblTempUsageDetail_20' ) start [2025-03-10 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651098', 'tblTempUsageDetail_20' ) end [2025-03-10 17:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:38:23] Production.INFO: ==32302== Releasing lock... [2025-03-10 17:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:38:23] Production.INFO: 66 MB #Memory Used# [2025-03-10 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:39:06 [end_date_ymd] => 2025-03-10 17:39:06 [RateCDR] => 1 ) [2025-03-10 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:39:06' and `end` < '2025-03-10 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:39:19] Production.INFO: count ==5062 [2025-03-10 17:39:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:39:06 - End Time 2025-03-10 17:39:06 [2025-03-10 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651103', 'tblTempUsageDetail_20' ) start [2025-03-10 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651103', 'tblTempUsageDetail_20' ) end [2025-03-10 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651103', 'tblTempVendorCDR_20' ) start [2025-03-10 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651103', 'tblTempVendorCDR_20' ) end [2025-03-10 17:39:21] Production.INFO: ProcessCDR(1,14651103,1,1,2) [2025-03-10 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651103', 'tblTempUsageDetail_20' ) start [2025-03-10 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651103', 'tblTempUsageDetail_20' ) end [2025-03-10 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:39:26] Production.INFO: ==32432== Releasing lock... [2025-03-10 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:39:26] Production.INFO: 66 MB #Memory Used# [2025-03-10 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:40:06 [end_date_ymd] => 2025-03-10 17:40:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:40:06' and `end` < '2025-03-10 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-03-10 17:40:19] Production.INFO: count ==5074 [2025-03-10 17:40:22] Production.ERROR: pbx CDR StartTime 2025-03-10 14:40:06 - End Time 2025-03-10 17:40:06 [2025-03-10 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651108', 'tblTempUsageDetail_20' ) start [2025-03-10 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651108', 'tblTempUsageDetail_20' ) end [2025-03-10 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651108', 'tblTempVendorCDR_20' ) start [2025-03-10 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651108', 'tblTempVendorCDR_20' ) end [2025-03-10 17:40:22] Production.INFO: ProcessCDR(1,14651108,1,1,2) [2025-03-10 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651108', 'tblTempUsageDetail_20' ) start [2025-03-10 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651108', 'tblTempUsageDetail_20' ) end [2025-03-10 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:40:27] Production.INFO: ==32525== Releasing lock... [2025-03-10 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:40:27] Production.INFO: 66 MB #Memory Used# [2025-03-10 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:41:05 [end_date_ymd] => 2025-03-10 17:41:05 [RateCDR] => 1 ) [2025-03-10 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:41:05' and `end` < '2025-03-10 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:41:18] Production.INFO: count ==5030 [2025-03-10 17:41:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:41:05 - End Time 2025-03-10 17:41:05 [2025-03-10 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651114', 'tblTempUsageDetail_20' ) start [2025-03-10 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651114', 'tblTempUsageDetail_20' ) end [2025-03-10 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651114', 'tblTempVendorCDR_20' ) start [2025-03-10 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651114', 'tblTempVendorCDR_20' ) end [2025-03-10 17:41:20] Production.INFO: ProcessCDR(1,14651114,1,1,2) [2025-03-10 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651114', 'tblTempUsageDetail_20' ) start [2025-03-10 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651114', 'tblTempUsageDetail_20' ) end [2025-03-10 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:41:25] Production.INFO: ==32620== Releasing lock... [2025-03-10 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:41:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-10 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:42:06 [end_date_ymd] => 2025-03-10 17:42:06 [RateCDR] => 1 ) [2025-03-10 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:42:06' and `end` < '2025-03-10 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:42:18] Production.INFO: count ==5017 [2025-03-10 17:42:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:42:06 - End Time 2025-03-10 17:42:06 [2025-03-10 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651119', 'tblTempUsageDetail_20' ) start [2025-03-10 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651119', 'tblTempUsageDetail_20' ) end [2025-03-10 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651119', 'tblTempVendorCDR_20' ) start [2025-03-10 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651119', 'tblTempVendorCDR_20' ) end [2025-03-10 17:42:21] Production.INFO: ProcessCDR(1,14651119,1,1,2) [2025-03-10 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651119', 'tblTempUsageDetail_20' ) start [2025-03-10 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651119', 'tblTempUsageDetail_20' ) end [2025-03-10 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:42:26] Production.INFO: ==32718== Releasing lock... [2025-03-10 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:42:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-10 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:43:06 [end_date_ymd] => 2025-03-10 17:43:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:43:06' and `end` < '2025-03-10 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-03-10 17:43:19] Production.INFO: count ==4988 [2025-03-10 17:43:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:43:06 - End Time 2025-03-10 17:43:06 [2025-03-10 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651124', 'tblTempUsageDetail_20' ) start [2025-03-10 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651124', 'tblTempUsageDetail_20' ) end [2025-03-10 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651124', 'tblTempVendorCDR_20' ) start [2025-03-10 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651124', 'tblTempVendorCDR_20' ) end [2025-03-10 17:43:21] Production.INFO: ProcessCDR(1,14651124,1,1,2) [2025-03-10 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651124', 'tblTempUsageDetail_20' ) start [2025-03-10 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651124', 'tblTempUsageDetail_20' ) end [2025-03-10 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:43:27] Production.INFO: ==355== Releasing lock... [2025-03-10 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:43:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:44:05 [end_date_ymd] => 2025-03-10 17:44:05 [RateCDR] => 1 ) [2025-03-10 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:44:05' and `end` < '2025-03-10 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:44:18] Production.INFO: count ==4993 [2025-03-10 17:44:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:44:05 - End Time 2025-03-10 17:44:05 [2025-03-10 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651129', 'tblTempUsageDetail_20' ) start [2025-03-10 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651129', 'tblTempUsageDetail_20' ) end [2025-03-10 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651129', 'tblTempVendorCDR_20' ) start [2025-03-10 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651129', 'tblTempVendorCDR_20' ) end [2025-03-10 17:44:20] Production.INFO: ProcessCDR(1,14651129,1,1,2) [2025-03-10 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651129', 'tblTempUsageDetail_20' ) start [2025-03-10 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651129', 'tblTempUsageDetail_20' ) end [2025-03-10 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:44:24] Production.INFO: ==448== Releasing lock... [2025-03-10 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:44:24] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:45:05 [end_date_ymd] => 2025-03-10 17:45:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:45:05' and `end` < '2025-03-10 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-03-10 17:45:18] Production.INFO: count ==4961 [2025-03-10 17:45:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:45:05 - End Time 2025-03-10 17:45:05 [2025-03-10 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651134', 'tblTempUsageDetail_20' ) start [2025-03-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651134', 'tblTempUsageDetail_20' ) end [2025-03-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651134', 'tblTempVendorCDR_20' ) start [2025-03-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651134', 'tblTempVendorCDR_20' ) end [2025-03-10 17:45:20] Production.INFO: ProcessCDR(1,14651134,1,1,2) [2025-03-10 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651134', 'tblTempUsageDetail_20' ) start [2025-03-10 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651134', 'tblTempUsageDetail_20' ) end [2025-03-10 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:45:25] Production.INFO: ==537== Releasing lock... [2025-03-10 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:45:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-10 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:46:05 [end_date_ymd] => 2025-03-10 17:46:05 [RateCDR] => 1 ) [2025-03-10 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:46:05' and `end` < '2025-03-10 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:46:18] Production.INFO: count ==4951 [2025-03-10 17:46:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:46:05 - End Time 2025-03-10 17:46:05 [2025-03-10 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651139', 'tblTempUsageDetail_20' ) start [2025-03-10 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651139', 'tblTempUsageDetail_20' ) end [2025-03-10 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651139', 'tblTempVendorCDR_20' ) start [2025-03-10 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651139', 'tblTempVendorCDR_20' ) end [2025-03-10 17:46:20] Production.INFO: ProcessCDR(1,14651139,1,1,2) [2025-03-10 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651139', 'tblTempUsageDetail_20' ) start [2025-03-10 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651139', 'tblTempUsageDetail_20' ) end [2025-03-10 17:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:46:23] Production.INFO: ==637== Releasing lock... [2025-03-10 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:46:23] Production.INFO: 65 MB #Memory Used# [2025-03-10 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:47:05 [end_date_ymd] => 2025-03-10 17:47:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:47:05' and `end` < '2025-03-10 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-03-10 17:47:18] Production.INFO: count ==4926 [2025-03-10 17:47:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:47:05 - End Time 2025-03-10 17:47:05 [2025-03-10 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651144', 'tblTempUsageDetail_20' ) start [2025-03-10 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651144', 'tblTempUsageDetail_20' ) end [2025-03-10 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651144', 'tblTempVendorCDR_20' ) start [2025-03-10 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651144', 'tblTempVendorCDR_20' ) end [2025-03-10 17:47:20] Production.INFO: ProcessCDR(1,14651144,1,1,2) [2025-03-10 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651144', 'tblTempUsageDetail_20' ) start [2025-03-10 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651144', 'tblTempUsageDetail_20' ) end [2025-03-10 17:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:47:24] Production.INFO: ==754== Releasing lock... [2025-03-10 17:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:47:24] Production.INFO: 64.75 MB #Memory Used# [2025-03-10 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:48:05 [end_date_ymd] => 2025-03-10 17:48:05 [RateCDR] => 1 ) [2025-03-10 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:48:05' and `end` < '2025-03-10 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:48:18] Production.INFO: count ==4917 [2025-03-10 17:48:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:48:05 - End Time 2025-03-10 17:48:05 [2025-03-10 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651149', 'tblTempUsageDetail_20' ) start [2025-03-10 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651149', 'tblTempUsageDetail_20' ) end [2025-03-10 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651149', 'tblTempVendorCDR_20' ) start [2025-03-10 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651149', 'tblTempVendorCDR_20' ) end [2025-03-10 17:48:20] Production.INFO: ProcessCDR(1,14651149,1,1,2) [2025-03-10 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651149', 'tblTempUsageDetail_20' ) start [2025-03-10 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651149', 'tblTempUsageDetail_20' ) end [2025-03-10 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:48:24] Production.INFO: ==873== Releasing lock... [2025-03-10 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:48:24] Production.INFO: 64.75 MB #Memory Used# [2025-03-10 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:49:05 [end_date_ymd] => 2025-03-10 17:49:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:49:05' and `end` < '2025-03-10 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-03-10 17:49:18] Production.INFO: count ==4920 [2025-03-10 17:49:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:49:05 - End Time 2025-03-10 17:49:05 [2025-03-10 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651154', 'tblTempUsageDetail_20' ) start [2025-03-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651154', 'tblTempUsageDetail_20' ) end [2025-03-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651154', 'tblTempVendorCDR_20' ) start [2025-03-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651154', 'tblTempVendorCDR_20' ) end [2025-03-10 17:49:20] Production.INFO: ProcessCDR(1,14651154,1,1,2) [2025-03-10 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651154', 'tblTempUsageDetail_20' ) start [2025-03-10 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651154', 'tblTempUsageDetail_20' ) end [2025-03-10 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:49:25] Production.INFO: ==1004== Releasing lock... [2025-03-10 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:49:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-10 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:50:06 [end_date_ymd] => 2025-03-10 17:50:06 [RateCDR] => 1 ) [2025-03-10 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:50:06' and `end` < '2025-03-10 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:50:19] Production.INFO: count ==4909 [2025-03-10 17:50:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:50:06 - End Time 2025-03-10 17:50:06 [2025-03-10 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651160', 'tblTempUsageDetail_20' ) start [2025-03-10 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651160', 'tblTempUsageDetail_20' ) end [2025-03-10 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651160', 'tblTempVendorCDR_20' ) start [2025-03-10 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651160', 'tblTempVendorCDR_20' ) end [2025-03-10 17:50:21] Production.INFO: ProcessCDR(1,14651160,1,1,2) [2025-03-10 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651160', 'tblTempUsageDetail_20' ) start [2025-03-10 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651160', 'tblTempUsageDetail_20' ) end [2025-03-10 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:50:26] Production.INFO: ==1141== Releasing lock... [2025-03-10 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:50:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-10 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:51:06 [end_date_ymd] => 2025-03-10 17:51:06 [RateCDR] => 1 ) [2025-03-10 17:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:51:06' and `end` < '2025-03-10 17:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:51:18] Production.INFO: count ==4849 [2025-03-10 17:51:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:51:06 - End Time 2025-03-10 17:51:06 [2025-03-10 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651165', 'tblTempUsageDetail_20' ) start [2025-03-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651165', 'tblTempUsageDetail_20' ) end [2025-03-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651165', 'tblTempVendorCDR_20' ) start [2025-03-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651165', 'tblTempVendorCDR_20' ) end [2025-03-10 17:51:20] Production.INFO: ProcessCDR(1,14651165,1,1,2) [2025-03-10 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651165', 'tblTempUsageDetail_20' ) start [2025-03-10 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651165', 'tblTempUsageDetail_20' ) end [2025-03-10 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:51:24] Production.INFO: ==1292== Releasing lock... [2025-03-10 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:51:24] Production.INFO: 64.25 MB #Memory Used# [2025-03-10 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:52:05 [end_date_ymd] => 2025-03-10 17:52:05 [RateCDR] => 1 ) [2025-03-10 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:52:05' and `end` < '2025-03-10 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-03-10 17:52:18] Production.INFO: count ==4845 [2025-03-10 17:52:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:52:05 - End Time 2025-03-10 17:52:05 [2025-03-10 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651170', 'tblTempUsageDetail_20' ) start [2025-03-10 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651170', 'tblTempUsageDetail_20' ) end [2025-03-10 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651170', 'tblTempVendorCDR_20' ) start [2025-03-10 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651170', 'tblTempVendorCDR_20' ) end [2025-03-10 17:52:21] Production.INFO: ProcessCDR(1,14651170,1,1,2) [2025-03-10 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651170', 'tblTempUsageDetail_20' ) start [2025-03-10 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651170', 'tblTempUsageDetail_20' ) end [2025-03-10 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:52:26] Production.INFO: ==1427== Releasing lock... [2025-03-10 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:52:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-10 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:53:05 [end_date_ymd] => 2025-03-10 17:53:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:53:05' and `end` < '2025-03-10 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-03-10 17:53:18] Production.INFO: count ==4870 [2025-03-10 17:53:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:53:05 - End Time 2025-03-10 17:53:05 [2025-03-10 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651175', 'tblTempUsageDetail_20' ) start [2025-03-10 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651175', 'tblTempUsageDetail_20' ) end [2025-03-10 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651175', 'tblTempVendorCDR_20' ) start [2025-03-10 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651175', 'tblTempVendorCDR_20' ) end [2025-03-10 17:53:20] Production.INFO: ProcessCDR(1,14651175,1,1,2) [2025-03-10 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651175', 'tblTempUsageDetail_20' ) start [2025-03-10 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651175', 'tblTempUsageDetail_20' ) end [2025-03-10 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:53:25] Production.INFO: ==1589== Releasing lock... [2025-03-10 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:53:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-10 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:54:05 [end_date_ymd] => 2025-03-10 17:54:05 [RateCDR] => 1 ) [2025-03-10 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:54:05' and `end` < '2025-03-10 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:54:18] Production.INFO: count ==4863 [2025-03-10 17:54:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:54:05 - End Time 2025-03-10 17:54:05 [2025-03-10 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651180', 'tblTempUsageDetail_20' ) start [2025-03-10 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651180', 'tblTempUsageDetail_20' ) end [2025-03-10 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651180', 'tblTempVendorCDR_20' ) start [2025-03-10 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651180', 'tblTempVendorCDR_20' ) end [2025-03-10 17:54:20] Production.INFO: ProcessCDR(1,14651180,1,1,2) [2025-03-10 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651180', 'tblTempUsageDetail_20' ) start [2025-03-10 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651180', 'tblTempUsageDetail_20' ) end [2025-03-10 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:54:25] Production.INFO: ==1717== Releasing lock... [2025-03-10 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:54:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-10 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:55:05 [end_date_ymd] => 2025-03-10 17:55:05 [RateCDR] => 1 ) [2025-03-10 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:55:05' and `end` < '2025-03-10 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:55:18] Production.INFO: count ==4860 [2025-03-10 17:55:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:55:05 - End Time 2025-03-10 17:55:05 [2025-03-10 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651185', 'tblTempUsageDetail_20' ) start [2025-03-10 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651185', 'tblTempUsageDetail_20' ) end [2025-03-10 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651185', 'tblTempVendorCDR_20' ) start [2025-03-10 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651185', 'tblTempVendorCDR_20' ) end [2025-03-10 17:55:20] Production.INFO: ProcessCDR(1,14651185,1,1,2) [2025-03-10 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651185', 'tblTempUsageDetail_20' ) start [2025-03-10 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651185', 'tblTempUsageDetail_20' ) end [2025-03-10 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:55:25] Production.INFO: ==1796== Releasing lock... [2025-03-10 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:55:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-10 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:56:05 [end_date_ymd] => 2025-03-10 17:56:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 14:56:05' and `end` < '2025-03-10 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-03-10 17:56:18] Production.INFO: count ==4857 [2025-03-10 17:56:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:56:05 - End Time 2025-03-10 17:56:05 [2025-03-10 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651190', 'tblTempUsageDetail_20' ) start [2025-03-10 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651190', 'tblTempUsageDetail_20' ) end [2025-03-10 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651190', 'tblTempVendorCDR_20' ) start [2025-03-10 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651190', 'tblTempVendorCDR_20' ) end [2025-03-10 17:56:20] Production.INFO: ProcessCDR(1,14651190,1,1,2) [2025-03-10 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651190', 'tblTempUsageDetail_20' ) start [2025-03-10 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651190', 'tblTempUsageDetail_20' ) end [2025-03-10 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:56:25] Production.INFO: ==1872== Releasing lock... [2025-03-10 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:56:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-10 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:57:05 [end_date_ymd] => 2025-03-10 17:57:05 [RateCDR] => 1 ) [2025-03-10 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:57:05' and `end` < '2025-03-10 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:57:18] Production.INFO: count ==4872 [2025-03-10 17:57:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:57:05 - End Time 2025-03-10 17:57:05 [2025-03-10 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651195', 'tblTempUsageDetail_20' ) start [2025-03-10 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651195', 'tblTempUsageDetail_20' ) end [2025-03-10 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651195', 'tblTempVendorCDR_20' ) start [2025-03-10 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651195', 'tblTempVendorCDR_20' ) end [2025-03-10 17:57:20] Production.INFO: ProcessCDR(1,14651195,1,1,2) [2025-03-10 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651195', 'tblTempUsageDetail_20' ) start [2025-03-10 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651195', 'tblTempUsageDetail_20' ) end [2025-03-10 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:57:26] Production.INFO: ==1943== Releasing lock... [2025-03-10 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:57:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-10 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:58:05 [end_date_ymd] => 2025-03-10 17:58:05 [RateCDR] => 1 ) [2025-03-10 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:58:05' and `end` < '2025-03-10 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:58:18] Production.INFO: count ==4865 [2025-03-10 17:58:20] Production.ERROR: pbx CDR StartTime 2025-03-10 14:58:05 - End Time 2025-03-10 17:58:05 [2025-03-10 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651200', 'tblTempUsageDetail_20' ) start [2025-03-10 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651200', 'tblTempUsageDetail_20' ) end [2025-03-10 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651200', 'tblTempVendorCDR_20' ) start [2025-03-10 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651200', 'tblTempVendorCDR_20' ) end [2025-03-10 17:58:20] Production.INFO: ProcessCDR(1,14651200,1,1,2) [2025-03-10 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651200', 'tblTempUsageDetail_20' ) start [2025-03-10 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651200', 'tblTempUsageDetail_20' ) end [2025-03-10 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:58:25] Production.INFO: ==2017== Releasing lock... [2025-03-10 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:58:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-10 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 14:59:06 [end_date_ymd] => 2025-03-10 17:59:06 [RateCDR] => 1 ) [2025-03-10 17:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 14:59:06' and `end` < '2025-03-10 17:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 17:59:19] Production.INFO: count ==4868 [2025-03-10 17:59:21] Production.ERROR: pbx CDR StartTime 2025-03-10 14:59:06 - End Time 2025-03-10 17:59:06 [2025-03-10 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651205', 'tblTempUsageDetail_20' ) start [2025-03-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651205', 'tblTempUsageDetail_20' ) end [2025-03-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651205', 'tblTempVendorCDR_20' ) start [2025-03-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651205', 'tblTempVendorCDR_20' ) end [2025-03-10 17:59:21] Production.INFO: ProcessCDR(1,14651205,1,1,2) [2025-03-10 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651205', 'tblTempUsageDetail_20' ) start [2025-03-10 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651205', 'tblTempUsageDetail_20' ) end [2025-03-10 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 17:59:26] Production.INFO: ==2091== Releasing lock... [2025-03-10 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 17:59:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-10 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:00:06 [end_date_ymd] => 2025-03-10 18:00:06 [RateCDR] => 1 ) [2025-03-10 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:00:06' and `end` < '2025-03-10 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:00:19] Production.INFO: count ==4870 [2025-03-10 18:00:21] Production.ERROR: pbx CDR StartTime 2025-03-10 15:00:06 - End Time 2025-03-10 18:00:06 [2025-03-10 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651210', 'tblTempUsageDetail_20' ) start [2025-03-10 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651210', 'tblTempUsageDetail_20' ) end [2025-03-10 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651210', 'tblTempVendorCDR_20' ) start [2025-03-10 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651210', 'tblTempVendorCDR_20' ) end [2025-03-10 18:00:21] Production.INFO: ProcessCDR(1,14651210,1,1,2) [2025-03-10 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651210', 'tblTempUsageDetail_20' ) start [2025-03-10 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651210', 'tblTempUsageDetail_20' ) end [2025-03-10 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:00:27] Production.INFO: ==2168== Releasing lock... [2025-03-10 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:00:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-10 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:01:05 [end_date_ymd] => 2025-03-10 18:01:05 [RateCDR] => 1 ) [2025-03-10 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:01:05' and `end` < '2025-03-10 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:01:18] Production.INFO: count ==4835 [2025-03-10 18:01:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:01:05 - End Time 2025-03-10 18:01:05 [2025-03-10 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651216', 'tblTempUsageDetail_20' ) start [2025-03-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651216', 'tblTempUsageDetail_20' ) end [2025-03-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651216', 'tblTempVendorCDR_20' ) start [2025-03-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651216', 'tblTempVendorCDR_20' ) end [2025-03-10 18:01:20] Production.INFO: ProcessCDR(1,14651216,1,1,2) [2025-03-10 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651216', 'tblTempUsageDetail_20' ) start [2025-03-10 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651216', 'tblTempUsageDetail_20' ) end [2025-03-10 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:01:25] Production.INFO: ==2252== Releasing lock... [2025-03-10 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:01:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-10 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:02:06 [end_date_ymd] => 2025-03-10 18:02:06 [RateCDR] => 1 ) [2025-03-10 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:02:06' and `end` < '2025-03-10 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:02:19] Production.INFO: count ==4811 [2025-03-10 18:02:21] Production.ERROR: pbx CDR StartTime 2025-03-10 15:02:06 - End Time 2025-03-10 18:02:06 [2025-03-10 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651221', 'tblTempUsageDetail_20' ) start [2025-03-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651221', 'tblTempUsageDetail_20' ) end [2025-03-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651221', 'tblTempVendorCDR_20' ) start [2025-03-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651221', 'tblTempVendorCDR_20' ) end [2025-03-10 18:02:21] Production.INFO: ProcessCDR(1,14651221,1,1,2) [2025-03-10 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651221', 'tblTempUsageDetail_20' ) start [2025-03-10 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651221', 'tblTempUsageDetail_20' ) end [2025-03-10 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:02:25] Production.INFO: ==2328== Releasing lock... [2025-03-10 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:02:25] Production.INFO: 64 MB #Memory Used# [2025-03-10 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:03:06 [end_date_ymd] => 2025-03-10 18:03:06 [RateCDR] => 1 ) [2025-03-10 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:03:06' and `end` < '2025-03-10 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:03:19] Production.INFO: count ==4806 [2025-03-10 18:03:21] Production.ERROR: pbx CDR StartTime 2025-03-10 15:03:06 - End Time 2025-03-10 18:03:06 [2025-03-10 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651226', 'tblTempUsageDetail_20' ) start [2025-03-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651226', 'tblTempUsageDetail_20' ) end [2025-03-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651226', 'tblTempVendorCDR_20' ) start [2025-03-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651226', 'tblTempVendorCDR_20' ) end [2025-03-10 18:03:21] Production.INFO: ProcessCDR(1,14651226,1,1,2) [2025-03-10 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651226', 'tblTempUsageDetail_20' ) start [2025-03-10 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651226', 'tblTempUsageDetail_20' ) end [2025-03-10 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:03:26] Production.INFO: ==2402== Releasing lock... [2025-03-10 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:03:26] Production.INFO: 64 MB #Memory Used# [2025-03-10 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:04:05 [end_date_ymd] => 2025-03-10 18:04:05 [RateCDR] => 1 ) [2025-03-10 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:04:05' and `end` < '2025-03-10 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:04:18] Production.INFO: count ==4787 [2025-03-10 18:04:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:04:05 - End Time 2025-03-10 18:04:05 [2025-03-10 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651231', 'tblTempUsageDetail_20' ) start [2025-03-10 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651231', 'tblTempUsageDetail_20' ) end [2025-03-10 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651231', 'tblTempVendorCDR_20' ) start [2025-03-10 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651231', 'tblTempVendorCDR_20' ) end [2025-03-10 18:04:20] Production.INFO: ProcessCDR(1,14651231,1,1,2) [2025-03-10 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651231', 'tblTempUsageDetail_20' ) start [2025-03-10 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651231', 'tblTempUsageDetail_20' ) end [2025-03-10 18:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:04:26] Production.INFO: ==2474== Releasing lock... [2025-03-10 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:04:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-10 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:05:06 [end_date_ymd] => 2025-03-10 18:05:06 [RateCDR] => 1 ) [2025-03-10 18:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:05:06' and `end` < '2025-03-10 18:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:05:19] Production.INFO: count ==4776 [2025-03-10 18:05:21] Production.ERROR: pbx CDR StartTime 2025-03-10 15:05:06 - End Time 2025-03-10 18:05:06 [2025-03-10 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651236', 'tblTempUsageDetail_20' ) start [2025-03-10 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651236', 'tblTempUsageDetail_20' ) end [2025-03-10 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651236', 'tblTempVendorCDR_20' ) start [2025-03-10 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651236', 'tblTempVendorCDR_20' ) end [2025-03-10 18:05:21] Production.INFO: ProcessCDR(1,14651236,1,1,2) [2025-03-10 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651236', 'tblTempUsageDetail_20' ) start [2025-03-10 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651236', 'tblTempUsageDetail_20' ) end [2025-03-10 18:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:05:27] Production.INFO: ==2547== Releasing lock... [2025-03-10 18:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:05:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-10 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:06:05 [end_date_ymd] => 2025-03-10 18:06:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:06:05' and `end` < '2025-03-10 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:06:18] Production.INFO: count ==4768 [2025-03-10 18:06:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:06:05 - End Time 2025-03-10 18:06:05 [2025-03-10 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651241', 'tblTempUsageDetail_20' ) start [2025-03-10 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651241', 'tblTempUsageDetail_20' ) end [2025-03-10 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651241', 'tblTempVendorCDR_20' ) start [2025-03-10 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651241', 'tblTempVendorCDR_20' ) end [2025-03-10 18:06:20] Production.INFO: ProcessCDR(1,14651241,1,1,2) [2025-03-10 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651241', 'tblTempUsageDetail_20' ) start [2025-03-10 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651241', 'tblTempUsageDetail_20' ) end [2025-03-10 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:06:26] Production.INFO: ==2652== Releasing lock... [2025-03-10 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:06:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-10 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:07:05 [end_date_ymd] => 2025-03-10 18:07:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:07:05' and `end` < '2025-03-10 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-03-10 18:07:18] Production.INFO: count ==4759 [2025-03-10 18:07:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:07:05 - End Time 2025-03-10 18:07:05 [2025-03-10 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651246', 'tblTempUsageDetail_20' ) start [2025-03-10 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651246', 'tblTempUsageDetail_20' ) end [2025-03-10 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651246', 'tblTempVendorCDR_20' ) start [2025-03-10 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651246', 'tblTempVendorCDR_20' ) end [2025-03-10 18:07:20] Production.INFO: ProcessCDR(1,14651246,1,1,2) [2025-03-10 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651246', 'tblTempUsageDetail_20' ) start [2025-03-10 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651246', 'tblTempUsageDetail_20' ) end [2025-03-10 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:07:26] Production.INFO: ==2757== Releasing lock... [2025-03-10 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:07:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-10 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:08:05 [end_date_ymd] => 2025-03-10 18:08:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:08:05' and `end` < '2025-03-10 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-03-10 18:08:18] Production.INFO: count ==4746 [2025-03-10 18:08:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:08:05 - End Time 2025-03-10 18:08:05 [2025-03-10 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651251', 'tblTempUsageDetail_20' ) start [2025-03-10 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651251', 'tblTempUsageDetail_20' ) end [2025-03-10 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651251', 'tblTempVendorCDR_20' ) start [2025-03-10 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651251', 'tblTempVendorCDR_20' ) end [2025-03-10 18:08:20] Production.INFO: ProcessCDR(1,14651251,1,1,2) [2025-03-10 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651251', 'tblTempUsageDetail_20' ) start [2025-03-10 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651251', 'tblTempUsageDetail_20' ) end [2025-03-10 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:08:26] Production.INFO: ==2864== Releasing lock... [2025-03-10 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:08:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-10 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:09:06 [end_date_ymd] => 2025-03-10 18:09:06 [RateCDR] => 1 ) [2025-03-10 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:09:06' and `end` < '2025-03-10 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:09:19] Production.INFO: count ==4744 [2025-03-10 18:09:21] Production.ERROR: pbx CDR StartTime 2025-03-10 15:09:06 - End Time 2025-03-10 18:09:06 [2025-03-10 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651256', 'tblTempUsageDetail_20' ) start [2025-03-10 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651256', 'tblTempUsageDetail_20' ) end [2025-03-10 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651256', 'tblTempVendorCDR_20' ) start [2025-03-10 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651256', 'tblTempVendorCDR_20' ) end [2025-03-10 18:09:21] Production.INFO: ProcessCDR(1,14651256,1,1,2) [2025-03-10 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651256', 'tblTempUsageDetail_20' ) start [2025-03-10 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651256', 'tblTempUsageDetail_20' ) end [2025-03-10 18:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:09:26] Production.INFO: ==2971== Releasing lock... [2025-03-10 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:09:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-10 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:10:06 [end_date_ymd] => 2025-03-10 18:10:06 [RateCDR] => 1 ) [2025-03-10 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:10:06' and `end` < '2025-03-10 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:10:19] Production.INFO: count ==4752 [2025-03-10 18:10:21] Production.ERROR: pbx CDR StartTime 2025-03-10 15:10:06 - End Time 2025-03-10 18:10:06 [2025-03-10 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651261', 'tblTempUsageDetail_20' ) start [2025-03-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651261', 'tblTempUsageDetail_20' ) end [2025-03-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651261', 'tblTempVendorCDR_20' ) start [2025-03-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651261', 'tblTempVendorCDR_20' ) end [2025-03-10 18:10:21] Production.INFO: ProcessCDR(1,14651261,1,1,2) [2025-03-10 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651261', 'tblTempUsageDetail_20' ) start [2025-03-10 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651261', 'tblTempUsageDetail_20' ) end [2025-03-10 18:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:10:27] Production.INFO: ==3115== Releasing lock... [2025-03-10 18:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:10:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-10 18:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:11:06 [end_date_ymd] => 2025-03-10 18:11:06 [RateCDR] => 1 ) [2025-03-10 18:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:11:06' and `end` < '2025-03-10 18:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:11:19] Production.INFO: count ==4713 [2025-03-10 18:11:21] Production.ERROR: pbx CDR StartTime 2025-03-10 15:11:06 - End Time 2025-03-10 18:11:06 [2025-03-10 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651267', 'tblTempUsageDetail_20' ) start [2025-03-10 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651267', 'tblTempUsageDetail_20' ) end [2025-03-10 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651267', 'tblTempVendorCDR_20' ) start [2025-03-10 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651267', 'tblTempVendorCDR_20' ) end [2025-03-10 18:11:21] Production.INFO: ProcessCDR(1,14651267,1,1,2) [2025-03-10 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651267', 'tblTempUsageDetail_20' ) start [2025-03-10 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651267', 'tblTempUsageDetail_20' ) end [2025-03-10 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:11:26] Production.INFO: ==3222== Releasing lock... [2025-03-10 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:11:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-10 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:12:05 [end_date_ymd] => 2025-03-10 18:12:05 [RateCDR] => 1 ) [2025-03-10 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:12:05' and `end` < '2025-03-10 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:12:18] Production.INFO: count ==4707 [2025-03-10 18:12:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:12:05 - End Time 2025-03-10 18:12:05 [2025-03-10 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651272', 'tblTempUsageDetail_20' ) start [2025-03-10 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651272', 'tblTempUsageDetail_20' ) end [2025-03-10 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651272', 'tblTempVendorCDR_20' ) start [2025-03-10 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651272', 'tblTempVendorCDR_20' ) end [2025-03-10 18:12:20] Production.INFO: ProcessCDR(1,14651272,1,1,2) [2025-03-10 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651272', 'tblTempUsageDetail_20' ) start [2025-03-10 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651272', 'tblTempUsageDetail_20' ) end [2025-03-10 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:12:25] Production.INFO: ==3323== Releasing lock... [2025-03-10 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:12:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-10 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:13:05 [end_date_ymd] => 2025-03-10 18:13:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:13:05' and `end` < '2025-03-10 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-03-10 18:13:18] Production.INFO: count ==4692 [2025-03-10 18:13:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:13:05 - End Time 2025-03-10 18:13:05 [2025-03-10 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651277', 'tblTempUsageDetail_20' ) start [2025-03-10 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651277', 'tblTempUsageDetail_20' ) end [2025-03-10 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651277', 'tblTempVendorCDR_20' ) start [2025-03-10 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651277', 'tblTempVendorCDR_20' ) end [2025-03-10 18:13:20] Production.INFO: ProcessCDR(1,14651277,1,1,2) [2025-03-10 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651277', 'tblTempUsageDetail_20' ) start [2025-03-10 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651277', 'tblTempUsageDetail_20' ) end [2025-03-10 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:13:25] Production.INFO: ==3433== Releasing lock... [2025-03-10 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:13:25] Production.INFO: 63 MB #Memory Used# [2025-03-10 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:14:06 [end_date_ymd] => 2025-03-10 18:14:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:14:06' and `end` < '2025-03-10 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-03-10 18:14:19] Production.INFO: count ==4667 [2025-03-10 18:14:21] Production.ERROR: pbx CDR StartTime 2025-03-10 15:14:06 - End Time 2025-03-10 18:14:06 [2025-03-10 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651282', 'tblTempUsageDetail_20' ) start [2025-03-10 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651282', 'tblTempUsageDetail_20' ) end [2025-03-10 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651282', 'tblTempVendorCDR_20' ) start [2025-03-10 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651282', 'tblTempVendorCDR_20' ) end [2025-03-10 18:14:21] Production.INFO: ProcessCDR(1,14651282,1,1,2) [2025-03-10 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651282', 'tblTempUsageDetail_20' ) start [2025-03-10 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651282', 'tblTempUsageDetail_20' ) end [2025-03-10 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:14:25] Production.INFO: ==3543== Releasing lock... [2025-03-10 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:14:25] Production.INFO: 63 MB #Memory Used# [2025-03-10 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:15:06 [end_date_ymd] => 2025-03-10 18:15:06 [RateCDR] => 1 ) [2025-03-10 18:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:15:06' and `end` < '2025-03-10 18:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:15:18] Production.INFO: count ==4664 [2025-03-10 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:15:06 - End Time 2025-03-10 18:15:06 [2025-03-10 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651287', 'tblTempUsageDetail_20' ) start [2025-03-10 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651287', 'tblTempUsageDetail_20' ) end [2025-03-10 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651287', 'tblTempVendorCDR_20' ) start [2025-03-10 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651287', 'tblTempVendorCDR_20' ) end [2025-03-10 18:15:20] Production.INFO: ProcessCDR(1,14651287,1,1,2) [2025-03-10 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651287', 'tblTempUsageDetail_20' ) start [2025-03-10 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651287', 'tblTempUsageDetail_20' ) end [2025-03-10 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:15:25] Production.INFO: ==3650== Releasing lock... [2025-03-10 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:15:25] Production.INFO: 63 MB #Memory Used# [2025-03-10 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:16:06 [end_date_ymd] => 2025-03-10 18:16:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:16:06' and `end` < '2025-03-10 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-03-10 18:16:18] Production.INFO: count ==4652 [2025-03-10 18:16:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:16:06 - End Time 2025-03-10 18:16:06 [2025-03-10 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651292', 'tblTempUsageDetail_20' ) start [2025-03-10 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651292', 'tblTempUsageDetail_20' ) end [2025-03-10 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651292', 'tblTempVendorCDR_20' ) start [2025-03-10 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651292', 'tblTempVendorCDR_20' ) end [2025-03-10 18:16:20] Production.INFO: ProcessCDR(1,14651292,1,1,2) [2025-03-10 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651292', 'tblTempUsageDetail_20' ) start [2025-03-10 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651292', 'tblTempUsageDetail_20' ) end [2025-03-10 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:16:25] Production.INFO: ==3753== Releasing lock... [2025-03-10 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:16:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-10 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:17:05 [end_date_ymd] => 2025-03-10 18:17:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:17:05' and `end` < '2025-03-10 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-03-10 18:17:18] Production.INFO: count ==4643 [2025-03-10 18:17:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:17:05 - End Time 2025-03-10 18:17:05 [2025-03-10 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651297', 'tblTempUsageDetail_20' ) start [2025-03-10 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651297', 'tblTempUsageDetail_20' ) end [2025-03-10 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651297', 'tblTempVendorCDR_20' ) start [2025-03-10 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651297', 'tblTempVendorCDR_20' ) end [2025-03-10 18:17:20] Production.INFO: ProcessCDR(1,14651297,1,1,2) [2025-03-10 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651297', 'tblTempUsageDetail_20' ) start [2025-03-10 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651297', 'tblTempUsageDetail_20' ) end [2025-03-10 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:17:23] Production.INFO: ==3866== Releasing lock... [2025-03-10 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:17:23] Production.INFO: 62.75 MB #Memory Used# [2025-03-10 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:18:05 [end_date_ymd] => 2025-03-10 18:18:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:18:05' and `end` < '2025-03-10 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-03-10 18:18:18] Production.INFO: count ==4617 [2025-03-10 18:18:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:18:05 - End Time 2025-03-10 18:18:05 [2025-03-10 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651302', 'tblTempUsageDetail_20' ) start [2025-03-10 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651302', 'tblTempUsageDetail_20' ) end [2025-03-10 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651302', 'tblTempVendorCDR_20' ) start [2025-03-10 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651302', 'tblTempVendorCDR_20' ) end [2025-03-10 18:18:20] Production.INFO: ProcessCDR(1,14651302,1,1,2) [2025-03-10 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651302', 'tblTempUsageDetail_20' ) start [2025-03-10 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651302', 'tblTempUsageDetail_20' ) end [2025-03-10 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:18:25] Production.INFO: ==3975== Releasing lock... [2025-03-10 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:18:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-10 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:19:05 [end_date_ymd] => 2025-03-10 18:19:05 [RateCDR] => 1 ) [2025-03-10 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:19:05' and `end` < '2025-03-10 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:19:17] Production.INFO: count ==4602 [2025-03-10 18:19:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:19:05 - End Time 2025-03-10 18:19:05 [2025-03-10 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651307', 'tblTempUsageDetail_20' ) start [2025-03-10 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651307', 'tblTempUsageDetail_20' ) end [2025-03-10 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651307', 'tblTempVendorCDR_20' ) start [2025-03-10 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651307', 'tblTempVendorCDR_20' ) end [2025-03-10 18:19:19] Production.INFO: ProcessCDR(1,14651307,1,1,2) [2025-03-10 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651307', 'tblTempUsageDetail_20' ) start [2025-03-10 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651307', 'tblTempUsageDetail_20' ) end [2025-03-10 18:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:19:22] Production.INFO: ==4084== Releasing lock... [2025-03-10 18:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:19:22] Production.INFO: 62.5 MB #Memory Used# [2025-03-10 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:20:06 [end_date_ymd] => 2025-03-10 18:20:06 [RateCDR] => 1 ) [2025-03-10 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:20:06' and `end` < '2025-03-10 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:20:19] Production.INFO: count ==4586 [2025-03-10 18:20:21] Production.ERROR: pbx CDR StartTime 2025-03-10 15:20:06 - End Time 2025-03-10 18:20:06 [2025-03-10 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651313', 'tblTempUsageDetail_20' ) start [2025-03-10 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651313', 'tblTempUsageDetail_20' ) end [2025-03-10 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651313', 'tblTempVendorCDR_20' ) start [2025-03-10 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651313', 'tblTempVendorCDR_20' ) end [2025-03-10 18:20:21] Production.INFO: ProcessCDR(1,14651313,1,1,2) [2025-03-10 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651313', 'tblTempUsageDetail_20' ) start [2025-03-10 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651313', 'tblTempUsageDetail_20' ) end [2025-03-10 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:20:25] Production.INFO: ==4197== Releasing lock... [2025-03-10 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:20:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-10 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:21:05 [end_date_ymd] => 2025-03-10 18:21:05 [RateCDR] => 1 ) [2025-03-10 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:21:05' and `end` < '2025-03-10 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:21:18] Production.INFO: count ==4485 [2025-03-10 18:21:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:21:05 - End Time 2025-03-10 18:21:05 [2025-03-10 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651318', 'tblTempUsageDetail_20' ) start [2025-03-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651318', 'tblTempUsageDetail_20' ) end [2025-03-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651318', 'tblTempVendorCDR_20' ) start [2025-03-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651318', 'tblTempVendorCDR_20' ) end [2025-03-10 18:21:20] Production.INFO: ProcessCDR(1,14651318,1,1,2) [2025-03-10 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651318', 'tblTempUsageDetail_20' ) start [2025-03-10 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651318', 'tblTempUsageDetail_20' ) end [2025-03-10 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:21:25] Production.INFO: ==4326== Releasing lock... [2025-03-10 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:21:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-10 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:22:05 [end_date_ymd] => 2025-03-10 18:22:05 [RateCDR] => 1 ) [2025-03-10 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:22:05' and `end` < '2025-03-10 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:22:18] Production.INFO: count ==4464 [2025-03-10 18:22:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:22:05 - End Time 2025-03-10 18:22:05 [2025-03-10 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651323', 'tblTempUsageDetail_20' ) start [2025-03-10 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651323', 'tblTempUsageDetail_20' ) end [2025-03-10 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651323', 'tblTempVendorCDR_20' ) start [2025-03-10 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651323', 'tblTempVendorCDR_20' ) end [2025-03-10 18:22:20] Production.INFO: ProcessCDR(1,14651323,1,1,2) [2025-03-10 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651323', 'tblTempUsageDetail_20' ) start [2025-03-10 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651323', 'tblTempUsageDetail_20' ) end [2025-03-10 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:22:25] Production.INFO: ==4435== Releasing lock... [2025-03-10 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:22:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-10 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:23:05 [end_date_ymd] => 2025-03-10 18:23:05 [RateCDR] => 1 ) [2025-03-10 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:23:05' and `end` < '2025-03-10 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:23:18] Production.INFO: count ==4447 [2025-03-10 18:23:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:23:05 - End Time 2025-03-10 18:23:05 [2025-03-10 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651328', 'tblTempUsageDetail_20' ) start [2025-03-10 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651328', 'tblTempUsageDetail_20' ) end [2025-03-10 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651328', 'tblTempVendorCDR_20' ) start [2025-03-10 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651328', 'tblTempVendorCDR_20' ) end [2025-03-10 18:23:20] Production.INFO: ProcessCDR(1,14651328,1,1,2) [2025-03-10 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651328', 'tblTempUsageDetail_20' ) start [2025-03-10 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651328', 'tblTempUsageDetail_20' ) end [2025-03-10 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:23:25] Production.INFO: ==4550== Releasing lock... [2025-03-10 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:23:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-10 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:24:06 [end_date_ymd] => 2025-03-10 18:24:06 [RateCDR] => 1 ) [2025-03-10 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:24:06' and `end` < '2025-03-10 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:24:19] Production.INFO: count ==4425 [2025-03-10 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:24:06 - End Time 2025-03-10 18:24:06 [2025-03-10 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651333', 'tblTempUsageDetail_20' ) start [2025-03-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651333', 'tblTempUsageDetail_20' ) end [2025-03-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651333', 'tblTempVendorCDR_20' ) start [2025-03-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651333', 'tblTempVendorCDR_20' ) end [2025-03-10 18:24:20] Production.INFO: ProcessCDR(1,14651333,1,1,2) [2025-03-10 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651333', 'tblTempUsageDetail_20' ) start [2025-03-10 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651333', 'tblTempUsageDetail_20' ) end [2025-03-10 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:24:24] Production.INFO: ==4664== Releasing lock... [2025-03-10 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:24:24] Production.INFO: 61 MB #Memory Used# [2025-03-10 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:25:05 [end_date_ymd] => 2025-03-10 18:25:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:25:05' and `end` < '2025-03-10 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-03-10 18:25:17] Production.INFO: count ==4420 [2025-03-10 18:25:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:25:05 - End Time 2025-03-10 18:25:05 [2025-03-10 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651338', 'tblTempUsageDetail_20' ) start [2025-03-10 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651338', 'tblTempUsageDetail_20' ) end [2025-03-10 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651338', 'tblTempVendorCDR_20' ) start [2025-03-10 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651338', 'tblTempVendorCDR_20' ) end [2025-03-10 18:25:19] Production.INFO: ProcessCDR(1,14651338,1,1,2) [2025-03-10 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651338', 'tblTempUsageDetail_20' ) start [2025-03-10 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651338', 'tblTempUsageDetail_20' ) end [2025-03-10 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:25:24] Production.INFO: ==4822== Releasing lock... [2025-03-10 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:25:24] Production.INFO: 61 MB #Memory Used# [2025-03-10 18:26:24] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:26:24 [end_date_ymd] => 2025-03-10 18:26:24 [RateCDR] => 1 ) [2025-03-10 18:26:24] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:26:24' and `end` < '2025-03-10 18:26:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:26:37] Production.INFO: count ==4408 [2025-03-10 18:27:38] Production.ERROR: pbx CDR StartTime 2025-03-10 15:26:24 - End Time 2025-03-10 18:26:24 [2025-03-10 18:27:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:27:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651343', 'tblTempUsageDetail_20' ) start [2025-03-10 18:27:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651343', 'tblTempUsageDetail_20' ) end [2025-03-10 18:27:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651343', 'tblTempVendorCDR_20' ) start [2025-03-10 18:27:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651343', 'tblTempVendorCDR_20' ) end [2025-03-10 18:27:49] Production.INFO: ProcessCDR(1,14651343,1,1,2) [2025-03-10 18:27:49] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:28:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:28:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651343', 'tblTempUsageDetail_20' ) start [2025-03-10 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651343', 'tblTempUsageDetail_20' ) end [2025-03-10 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:28:30] Production.INFO: ==4942== Releasing lock... [2025-03-10 18:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:28:30] Production.INFO: 61 MB #Memory Used# [2025-03-10 18:29:30] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:29:30 [end_date_ymd] => 2025-03-10 18:29:30 [RateCDR] => 1 ) [2025-03-10 18:29:30] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:29:30' and `end` < '2025-03-10 18:29:30' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:29:43] Production.INFO: count ==4391 [2025-03-10 18:30:42] Production.ERROR: pbx CDR StartTime 2025-03-10 15:29:30 - End Time 2025-03-10 18:29:30 [2025-03-10 18:30:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:30:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651353', 'tblTempUsageDetail_20' ) start [2025-03-10 18:30:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651353', 'tblTempUsageDetail_20' ) end [2025-03-10 18:30:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651353', 'tblTempVendorCDR_20' ) start [2025-03-10 18:30:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651353', 'tblTempVendorCDR_20' ) end [2025-03-10 18:30:53] Production.INFO: ProcessCDR(1,14651353,1,1,2) [2025-03-10 18:30:53] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:30:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:30:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:31:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651353', 'tblTempUsageDetail_20' ) start [2025-03-10 18:31:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651353', 'tblTempUsageDetail_20' ) end [2025-03-10 18:31:52] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:31:52] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:31:53] Production.INFO: ==5264== Releasing lock... [2025-03-10 18:31:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:31:53] Production.INFO: 60.75 MB #Memory Used# [2025-03-10 18:32:51] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:32:49 [end_date_ymd] => 2025-03-10 18:32:49 [RateCDR] => 1 ) [2025-03-10 18:32:51] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:32:49' and `end` < '2025-03-10 18:32:49' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:33:04] Production.INFO: count ==4232 [2025-03-10 18:33:47] Production.ERROR: pbx CDR StartTime 2025-03-10 15:32:49 - End Time 2025-03-10 18:32:49 [2025-03-10 18:33:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:33:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651365', 'tblTempUsageDetail_20' ) start [2025-03-10 18:33:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651365', 'tblTempUsageDetail_20' ) end [2025-03-10 18:33:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651365', 'tblTempVendorCDR_20' ) start [2025-03-10 18:33:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651365', 'tblTempVendorCDR_20' ) end [2025-03-10 18:33:48] Production.INFO: ProcessCDR(1,14651365,1,1,2) [2025-03-10 18:33:48] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:34:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:34:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651365', 'tblTempUsageDetail_20' ) start [2025-03-10 18:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651365', 'tblTempUsageDetail_20' ) end [2025-03-10 18:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:34:33] Production.INFO: ==5633== Releasing lock... [2025-03-10 18:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:34:33] Production.INFO: 59.75 MB #Memory Used# [2025-03-10 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:35:06 [end_date_ymd] => 2025-03-10 18:35:06 [RateCDR] => 1 ) [2025-03-10 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:35:06' and `end` < '2025-03-10 18:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:35:19] Production.INFO: count ==4175 [2025-03-10 18:35:21] Production.ERROR: pbx CDR StartTime 2025-03-10 15:35:06 - End Time 2025-03-10 18:35:06 [2025-03-10 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651376', 'tblTempUsageDetail_20' ) start [2025-03-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651376', 'tblTempUsageDetail_20' ) end [2025-03-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651376', 'tblTempVendorCDR_20' ) start [2025-03-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651376', 'tblTempVendorCDR_20' ) end [2025-03-10 18:35:21] Production.INFO: ProcessCDR(1,14651376,1,1,2) [2025-03-10 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651376', 'tblTempUsageDetail_20' ) start [2025-03-10 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651376', 'tblTempUsageDetail_20' ) end [2025-03-10 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:35:26] Production.INFO: ==5942== Releasing lock... [2025-03-10 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:35:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-10 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:36:05 [end_date_ymd] => 2025-03-10 18:36:05 [RateCDR] => 1 ) [2025-03-10 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:36:05' and `end` < '2025-03-10 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:36:18] Production.INFO: count ==4146 [2025-03-10 18:36:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:36:05 - End Time 2025-03-10 18:36:05 [2025-03-10 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651381', 'tblTempUsageDetail_20' ) start [2025-03-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651381', 'tblTempUsageDetail_20' ) end [2025-03-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651381', 'tblTempVendorCDR_20' ) start [2025-03-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651381', 'tblTempVendorCDR_20' ) end [2025-03-10 18:36:20] Production.INFO: ProcessCDR(1,14651381,1,1,2) [2025-03-10 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651381', 'tblTempUsageDetail_20' ) start [2025-03-10 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651381', 'tblTempUsageDetail_20' ) end [2025-03-10 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:36:25] Production.INFO: ==6049== Releasing lock... [2025-03-10 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:36:25] Production.INFO: 59 MB #Memory Used# [2025-03-10 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:37:05 [end_date_ymd] => 2025-03-10 18:37:05 [RateCDR] => 1 ) [2025-03-10 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:37:05' and `end` < '2025-03-10 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:37:18] Production.INFO: count ==4106 [2025-03-10 18:37:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:37:05 - End Time 2025-03-10 18:37:05 [2025-03-10 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651386', 'tblTempUsageDetail_20' ) start [2025-03-10 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651386', 'tblTempUsageDetail_20' ) end [2025-03-10 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651386', 'tblTempVendorCDR_20' ) start [2025-03-10 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651386', 'tblTempVendorCDR_20' ) end [2025-03-10 18:37:19] Production.INFO: ProcessCDR(1,14651386,1,1,2) [2025-03-10 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651386', 'tblTempUsageDetail_20' ) start [2025-03-10 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651386', 'tblTempUsageDetail_20' ) end [2025-03-10 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:37:24] Production.INFO: ==6160== Releasing lock... [2025-03-10 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:37:24] Production.INFO: 59 MB #Memory Used# [2025-03-10 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:38:05 [end_date_ymd] => 2025-03-10 18:38:05 [RateCDR] => 1 ) [2025-03-10 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:38:05' and `end` < '2025-03-10 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:38:18] Production.INFO: count ==4066 [2025-03-10 18:38:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:38:05 - End Time 2025-03-10 18:38:05 [2025-03-10 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651391', 'tblTempUsageDetail_20' ) start [2025-03-10 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651391', 'tblTempUsageDetail_20' ) end [2025-03-10 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651391', 'tblTempVendorCDR_20' ) start [2025-03-10 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651391', 'tblTempVendorCDR_20' ) end [2025-03-10 18:38:19] Production.INFO: ProcessCDR(1,14651391,1,1,2) [2025-03-10 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651391', 'tblTempUsageDetail_20' ) start [2025-03-10 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651391', 'tblTempUsageDetail_20' ) end [2025-03-10 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:38:24] Production.INFO: ==6280== Releasing lock... [2025-03-10 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:38:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-10 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:39:05 [end_date_ymd] => 2025-03-10 18:39:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:39:05' and `end` < '2025-03-10 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-03-10 18:39:17] Production.INFO: count ==4027 [2025-03-10 18:39:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:39:05 - End Time 2025-03-10 18:39:05 [2025-03-10 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651396', 'tblTempUsageDetail_20' ) start [2025-03-10 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651396', 'tblTempUsageDetail_20' ) end [2025-03-10 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651396', 'tblTempVendorCDR_20' ) start [2025-03-10 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651396', 'tblTempVendorCDR_20' ) end [2025-03-10 18:39:19] Production.INFO: ProcessCDR(1,14651396,1,1,2) [2025-03-10 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651396', 'tblTempUsageDetail_20' ) start [2025-03-10 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651396', 'tblTempUsageDetail_20' ) end [2025-03-10 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:39:24] Production.INFO: ==6397== Releasing lock... [2025-03-10 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:39:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-10 18:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:40:07 [end_date_ymd] => 2025-03-10 18:40:07 [RateCDR] => 1 ) [2025-03-10 18: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-03-10 15:40:07' and `end` < '2025-03-10 18: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-03-10 18:40:19] Production.INFO: count ==4019 [2025-03-10 18:40:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:40:07 - End Time 2025-03-10 18:40:07 [2025-03-10 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651402', 'tblTempUsageDetail_20' ) start [2025-03-10 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651402', 'tblTempUsageDetail_20' ) end [2025-03-10 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651402', 'tblTempVendorCDR_20' ) start [2025-03-10 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651402', 'tblTempVendorCDR_20' ) end [2025-03-10 18:40:21] Production.INFO: ProcessCDR(1,14651402,1,1,2) [2025-03-10 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651402', 'tblTempUsageDetail_20' ) start [2025-03-10 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651402', 'tblTempUsageDetail_20' ) end [2025-03-10 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:40:25] Production.INFO: ==6492== Releasing lock... [2025-03-10 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:40:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-10 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:41:05 [end_date_ymd] => 2025-03-10 18:41:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:41:05' and `end` < '2025-03-10 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-03-10 18:41:18] Production.INFO: count ==3937 [2025-03-10 18:41:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:41:05 - End Time 2025-03-10 18:41:05 [2025-03-10 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651407', 'tblTempUsageDetail_20' ) start [2025-03-10 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651407', 'tblTempUsageDetail_20' ) end [2025-03-10 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651407', 'tblTempVendorCDR_20' ) start [2025-03-10 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651407', 'tblTempVendorCDR_20' ) end [2025-03-10 18:41:20] Production.INFO: ProcessCDR(1,14651407,1,1,2) [2025-03-10 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651407', 'tblTempUsageDetail_20' ) start [2025-03-10 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651407', 'tblTempUsageDetail_20' ) end [2025-03-10 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:41:25] Production.INFO: ==6610== Releasing lock... [2025-03-10 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:41:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-10 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:42:05 [end_date_ymd] => 2025-03-10 18:42:05 [RateCDR] => 1 ) [2025-03-10 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:42:05' and `end` < '2025-03-10 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:42:18] Production.INFO: count ==3878 [2025-03-10 18:42:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:42:05 - End Time 2025-03-10 18:42:05 [2025-03-10 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651412', 'tblTempUsageDetail_20' ) start [2025-03-10 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651412', 'tblTempUsageDetail_20' ) end [2025-03-10 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651412', 'tblTempVendorCDR_20' ) start [2025-03-10 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651412', 'tblTempVendorCDR_20' ) end [2025-03-10 18:42:20] Production.INFO: ProcessCDR(1,14651412,1,1,2) [2025-03-10 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651412', 'tblTempUsageDetail_20' ) start [2025-03-10 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651412', 'tblTempUsageDetail_20' ) end [2025-03-10 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:42:25] Production.INFO: ==6697== Releasing lock... [2025-03-10 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:42:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-10 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:43:05 [end_date_ymd] => 2025-03-10 18:43:05 [RateCDR] => 1 ) [2025-03-10 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:43:05' and `end` < '2025-03-10 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:43:18] Production.INFO: count ==3874 [2025-03-10 18:43:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:43:05 - End Time 2025-03-10 18:43:05 [2025-03-10 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651417', 'tblTempUsageDetail_20' ) start [2025-03-10 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651417', 'tblTempUsageDetail_20' ) end [2025-03-10 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651417', 'tblTempVendorCDR_20' ) start [2025-03-10 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651417', 'tblTempVendorCDR_20' ) end [2025-03-10 18:43:19] Production.INFO: ProcessCDR(1,14651417,1,1,2) [2025-03-10 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651417', 'tblTempUsageDetail_20' ) start [2025-03-10 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651417', 'tblTempUsageDetail_20' ) end [2025-03-10 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:43:25] Production.INFO: ==6786== Releasing lock... [2025-03-10 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:43:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-10 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:44:05 [end_date_ymd] => 2025-03-10 18:44:05 [RateCDR] => 1 ) [2025-03-10 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:44:05' and `end` < '2025-03-10 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:44:18] Production.INFO: count ==3867 [2025-03-10 18:44:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:44:05 - End Time 2025-03-10 18:44:05 [2025-03-10 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651422', 'tblTempUsageDetail_20' ) start [2025-03-10 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651422', 'tblTempUsageDetail_20' ) end [2025-03-10 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651422', 'tblTempVendorCDR_20' ) start [2025-03-10 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651422', 'tblTempVendorCDR_20' ) end [2025-03-10 18:44:19] Production.INFO: ProcessCDR(1,14651422,1,1,2) [2025-03-10 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651422', 'tblTempUsageDetail_20' ) start [2025-03-10 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651422', 'tblTempUsageDetail_20' ) end [2025-03-10 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:44:24] Production.INFO: ==6868== Releasing lock... [2025-03-10 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:44:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-10 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:45:05 [end_date_ymd] => 2025-03-10 18:45:05 [RateCDR] => 1 ) [2025-03-10 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:45:05' and `end` < '2025-03-10 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:45:17] Production.INFO: count ==3860 [2025-03-10 18:45:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:45:05 - End Time 2025-03-10 18:45:05 [2025-03-10 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651427', 'tblTempUsageDetail_20' ) start [2025-03-10 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651427', 'tblTempUsageDetail_20' ) end [2025-03-10 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651427', 'tblTempVendorCDR_20' ) start [2025-03-10 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651427', 'tblTempVendorCDR_20' ) end [2025-03-10 18:45:19] Production.INFO: ProcessCDR(1,14651427,1,1,2) [2025-03-10 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651427', 'tblTempUsageDetail_20' ) start [2025-03-10 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651427', 'tblTempUsageDetail_20' ) end [2025-03-10 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:45:23] Production.INFO: ==6947== Releasing lock... [2025-03-10 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:45:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-10 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:46:05 [end_date_ymd] => 2025-03-10 18:46:05 [RateCDR] => 1 ) [2025-03-10 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:46:05' and `end` < '2025-03-10 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:46:18] Production.INFO: count ==3816 [2025-03-10 18:46:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:46:05 - End Time 2025-03-10 18:46:05 [2025-03-10 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651432', 'tblTempUsageDetail_20' ) start [2025-03-10 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651432', 'tblTempUsageDetail_20' ) end [2025-03-10 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651432', 'tblTempVendorCDR_20' ) start [2025-03-10 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651432', 'tblTempVendorCDR_20' ) end [2025-03-10 18:46:19] Production.INFO: ProcessCDR(1,14651432,1,1,2) [2025-03-10 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651432', 'tblTempUsageDetail_20' ) start [2025-03-10 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651432', 'tblTempUsageDetail_20' ) end [2025-03-10 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:46:23] Production.INFO: ==7030== Releasing lock... [2025-03-10 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:46:23] Production.INFO: 57 MB #Memory Used# [2025-03-10 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:47:05 [end_date_ymd] => 2025-03-10 18:47:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:47:05' and `end` < '2025-03-10 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-03-10 18:47:18] Production.INFO: count ==3802 [2025-03-10 18:47:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:47:05 - End Time 2025-03-10 18:47:05 [2025-03-10 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651437', 'tblTempUsageDetail_20' ) start [2025-03-10 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651437', 'tblTempUsageDetail_20' ) end [2025-03-10 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651437', 'tblTempVendorCDR_20' ) start [2025-03-10 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651437', 'tblTempVendorCDR_20' ) end [2025-03-10 18:47:19] Production.INFO: ProcessCDR(1,14651437,1,1,2) [2025-03-10 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651437', 'tblTempUsageDetail_20' ) start [2025-03-10 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651437', 'tblTempUsageDetail_20' ) end [2025-03-10 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:47:25] Production.INFO: ==7117== Releasing lock... [2025-03-10 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:47:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-10 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:48:05 [end_date_ymd] => 2025-03-10 18:48:05 [RateCDR] => 1 ) [2025-03-10 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:48:05' and `end` < '2025-03-10 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:48:18] Production.INFO: count ==3779 [2025-03-10 18:48:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:48:05 - End Time 2025-03-10 18:48:05 [2025-03-10 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651442', 'tblTempUsageDetail_20' ) start [2025-03-10 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651442', 'tblTempUsageDetail_20' ) end [2025-03-10 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651442', 'tblTempVendorCDR_20' ) start [2025-03-10 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651442', 'tblTempVendorCDR_20' ) end [2025-03-10 18:48:19] Production.INFO: ProcessCDR(1,14651442,1,1,2) [2025-03-10 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651442', 'tblTempUsageDetail_20' ) start [2025-03-10 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651442', 'tblTempUsageDetail_20' ) end [2025-03-10 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:48:24] Production.INFO: ==7203== Releasing lock... [2025-03-10 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:48:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-10 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:49:05 [end_date_ymd] => 2025-03-10 18:49:05 [RateCDR] => 1 ) [2025-03-10 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:49:05' and `end` < '2025-03-10 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:49:18] Production.INFO: count ==3754 [2025-03-10 18:49:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:49:05 - End Time 2025-03-10 18:49:05 [2025-03-10 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651447', 'tblTempUsageDetail_20' ) start [2025-03-10 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651447', 'tblTempUsageDetail_20' ) end [2025-03-10 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651447', 'tblTempVendorCDR_20' ) start [2025-03-10 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651447', 'tblTempVendorCDR_20' ) end [2025-03-10 18:49:19] Production.INFO: ProcessCDR(1,14651447,1,1,2) [2025-03-10 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651447', 'tblTempUsageDetail_20' ) start [2025-03-10 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651447', 'tblTempUsageDetail_20' ) end [2025-03-10 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:49:24] Production.INFO: ==7285== Releasing lock... [2025-03-10 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:49:24] Production.INFO: 56 MB #Memory Used# [2025-03-10 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:50:05 [end_date_ymd] => 2025-03-10 18:50:05 [RateCDR] => 1 ) [2025-03-10 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:50:05' and `end` < '2025-03-10 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:50:18] Production.INFO: count ==3739 [2025-03-10 18:50:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:50:05 - End Time 2025-03-10 18:50:05 [2025-03-10 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651453', 'tblTempUsageDetail_20' ) start [2025-03-10 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651453', 'tblTempUsageDetail_20' ) end [2025-03-10 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651453', 'tblTempVendorCDR_20' ) start [2025-03-10 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651453', 'tblTempVendorCDR_20' ) end [2025-03-10 18:50:19] Production.INFO: ProcessCDR(1,14651453,1,1,2) [2025-03-10 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651453', 'tblTempUsageDetail_20' ) start [2025-03-10 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651453', 'tblTempUsageDetail_20' ) end [2025-03-10 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:50:25] Production.INFO: ==7365== Releasing lock... [2025-03-10 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:50:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-10 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:51:05 [end_date_ymd] => 2025-03-10 18:51:05 [RateCDR] => 1 ) [2025-03-10 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:51:05' and `end` < '2025-03-10 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:51:18] Production.INFO: count ==3678 [2025-03-10 18:51:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:51:05 - End Time 2025-03-10 18:51:05 [2025-03-10 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651458', 'tblTempUsageDetail_20' ) start [2025-03-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651458', 'tblTempUsageDetail_20' ) end [2025-03-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651458', 'tblTempVendorCDR_20' ) start [2025-03-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651458', 'tblTempVendorCDR_20' ) end [2025-03-10 18:51:19] Production.INFO: ProcessCDR(1,14651458,1,1,2) [2025-03-10 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651458', 'tblTempUsageDetail_20' ) start [2025-03-10 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651458', 'tblTempUsageDetail_20' ) end [2025-03-10 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:51:24] Production.INFO: ==7444== Releasing lock... [2025-03-10 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:51:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-10 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:52:05 [end_date_ymd] => 2025-03-10 18:52:05 [RateCDR] => 1 ) [2025-03-10 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:52:05' and `end` < '2025-03-10 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:52:18] Production.INFO: count ==3583 [2025-03-10 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:52:05 - End Time 2025-03-10 18:52:05 [2025-03-10 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651463', 'tblTempUsageDetail_20' ) start [2025-03-10 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651463', 'tblTempUsageDetail_20' ) end [2025-03-10 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651463', 'tblTempVendorCDR_20' ) start [2025-03-10 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651463', 'tblTempVendorCDR_20' ) end [2025-03-10 18:52:19] Production.INFO: ProcessCDR(1,14651463,1,1,2) [2025-03-10 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651463', 'tblTempUsageDetail_20' ) start [2025-03-10 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651463', 'tblTempUsageDetail_20' ) end [2025-03-10 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:52:24] Production.INFO: ==7527== Releasing lock... [2025-03-10 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:52:24] Production.INFO: 56 MB #Memory Used# [2025-03-10 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:53:05 [end_date_ymd] => 2025-03-10 18:53:05 [RateCDR] => 1 ) [2025-03-10 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:53:05' and `end` < '2025-03-10 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:53:18] Production.INFO: count ==3575 [2025-03-10 18:53:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:53:05 - End Time 2025-03-10 18:53:05 [2025-03-10 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651468', 'tblTempUsageDetail_20' ) start [2025-03-10 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651468', 'tblTempUsageDetail_20' ) end [2025-03-10 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651468', 'tblTempVendorCDR_20' ) start [2025-03-10 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651468', 'tblTempVendorCDR_20' ) end [2025-03-10 18:53:19] Production.INFO: ProcessCDR(1,14651468,1,1,2) [2025-03-10 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651468', 'tblTempUsageDetail_20' ) start [2025-03-10 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651468', 'tblTempUsageDetail_20' ) end [2025-03-10 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:53:24] Production.INFO: ==7602== Releasing lock... [2025-03-10 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:53:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-10 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:54:05 [end_date_ymd] => 2025-03-10 18:54:05 [RateCDR] => 1 ) [2025-03-10 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:54:05' and `end` < '2025-03-10 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:54:18] Production.INFO: count ==3568 [2025-03-10 18:54:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:54:05 - End Time 2025-03-10 18:54:05 [2025-03-10 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651473', 'tblTempUsageDetail_20' ) start [2025-03-10 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651473', 'tblTempUsageDetail_20' ) end [2025-03-10 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651473', 'tblTempVendorCDR_20' ) start [2025-03-10 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651473', 'tblTempVendorCDR_20' ) end [2025-03-10 18:54:19] Production.INFO: ProcessCDR(1,14651473,1,1,2) [2025-03-10 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651473', 'tblTempUsageDetail_20' ) start [2025-03-10 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651473', 'tblTempUsageDetail_20' ) end [2025-03-10 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:54:24] Production.INFO: ==7687== Releasing lock... [2025-03-10 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:54:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-10 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:55:05 [end_date_ymd] => 2025-03-10 18:55:05 [RateCDR] => 1 ) [2025-03-10 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:55:05' and `end` < '2025-03-10 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:55:18] Production.INFO: count ==3562 [2025-03-10 18:55:20] Production.ERROR: pbx CDR StartTime 2025-03-10 15:55:05 - End Time 2025-03-10 18:55:05 [2025-03-10 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651478', 'tblTempUsageDetail_20' ) start [2025-03-10 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651478', 'tblTempUsageDetail_20' ) end [2025-03-10 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651478', 'tblTempVendorCDR_20' ) start [2025-03-10 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651478', 'tblTempVendorCDR_20' ) end [2025-03-10 18:55:20] Production.INFO: ProcessCDR(1,14651478,1,1,2) [2025-03-10 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651478', 'tblTempUsageDetail_20' ) start [2025-03-10 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651478', 'tblTempUsageDetail_20' ) end [2025-03-10 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:55:25] Production.INFO: ==7761== Releasing lock... [2025-03-10 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:55:25] Production.INFO: 55 MB #Memory Used# [2025-03-10 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:56:06 [end_date_ymd] => 2025-03-10 18:56:06 [RateCDR] => 1 ) [2025-03-10 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:56:06' and `end` < '2025-03-10 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:56:18] Production.INFO: count ==3550 [2025-03-10 18:56:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:56:06 - End Time 2025-03-10 18:56:06 [2025-03-10 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651483', 'tblTempUsageDetail_20' ) start [2025-03-10 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651483', 'tblTempUsageDetail_20' ) end [2025-03-10 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651483', 'tblTempVendorCDR_20' ) start [2025-03-10 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651483', 'tblTempVendorCDR_20' ) end [2025-03-10 18:56:19] Production.INFO: ProcessCDR(1,14651483,1,1,2) [2025-03-10 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651483', 'tblTempUsageDetail_20' ) start [2025-03-10 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651483', 'tblTempUsageDetail_20' ) end [2025-03-10 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:56:24] Production.INFO: ==7881== Releasing lock... [2025-03-10 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:56:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-10 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:57:05 [end_date_ymd] => 2025-03-10 18:57:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:57:05' and `end` < '2025-03-10 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-03-10 18:57:17] Production.INFO: count ==3540 [2025-03-10 18:57:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:57:05 - End Time 2025-03-10 18:57:05 [2025-03-10 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651488', 'tblTempUsageDetail_20' ) start [2025-03-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651488', 'tblTempUsageDetail_20' ) end [2025-03-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651488', 'tblTempVendorCDR_20' ) start [2025-03-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651488', 'tblTempVendorCDR_20' ) end [2025-03-10 18:57:19] Production.INFO: ProcessCDR(1,14651488,1,1,2) [2025-03-10 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651488', 'tblTempUsageDetail_20' ) start [2025-03-10 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651488', 'tblTempUsageDetail_20' ) end [2025-03-10 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:57:23] Production.INFO: ==7960== Releasing lock... [2025-03-10 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:57:23] Production.INFO: 54.5 MB #Memory Used# [2025-03-10 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:58:05 [end_date_ymd] => 2025-03-10 18:58:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 15:58:05' and `end` < '2025-03-10 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-03-10 18:58:18] Production.INFO: count ==3516 [2025-03-10 18:58:19] Production.ERROR: pbx CDR StartTime 2025-03-10 15:58:05 - End Time 2025-03-10 18:58:05 [2025-03-10 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651493', 'tblTempUsageDetail_20' ) start [2025-03-10 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651493', 'tblTempUsageDetail_20' ) end [2025-03-10 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651493', 'tblTempVendorCDR_20' ) start [2025-03-10 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651493', 'tblTempVendorCDR_20' ) end [2025-03-10 18:58:19] Production.INFO: ProcessCDR(1,14651493,1,1,2) [2025-03-10 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651493', 'tblTempUsageDetail_20' ) start [2025-03-10 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651493', 'tblTempUsageDetail_20' ) end [2025-03-10 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:58:25] Production.INFO: ==8041== Releasing lock... [2025-03-10 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:58:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-10 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 15:59:04 [end_date_ymd] => 2025-03-10 18:59:04 [RateCDR] => 1 ) [2025-03-10 18:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 15:59:04' and `end` < '2025-03-10 18:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 18:59:17] Production.INFO: count ==3518 [2025-03-10 18:59:18] Production.ERROR: pbx CDR StartTime 2025-03-10 15:59:04 - End Time 2025-03-10 18:59:04 [2025-03-10 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651498', 'tblTempUsageDetail_20' ) start [2025-03-10 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651498', 'tblTempUsageDetail_20' ) end [2025-03-10 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651498', 'tblTempVendorCDR_20' ) start [2025-03-10 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651498', 'tblTempVendorCDR_20' ) end [2025-03-10 18:59:18] Production.INFO: ProcessCDR(1,14651498,1,1,2) [2025-03-10 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651498', 'tblTempUsageDetail_20' ) start [2025-03-10 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651498', 'tblTempUsageDetail_20' ) end [2025-03-10 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 18:59:23] Production.INFO: ==8113== Releasing lock... [2025-03-10 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 18:59:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-10 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:00:06 [end_date_ymd] => 2025-03-10 19:00:06 [RateCDR] => 1 ) [2025-03-10 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:00:06' and `end` < '2025-03-10 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:00:18] Production.INFO: count ==3499 [2025-03-10 19:00:20] Production.ERROR: pbx CDR StartTime 2025-03-10 16:00:06 - End Time 2025-03-10 19:00:06 [2025-03-10 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651504', 'tblTempUsageDetail_20' ) start [2025-03-10 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651504', 'tblTempUsageDetail_20' ) end [2025-03-10 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651504', 'tblTempVendorCDR_20' ) start [2025-03-10 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651504', 'tblTempVendorCDR_20' ) end [2025-03-10 19:00:20] Production.INFO: ProcessCDR(1,14651504,1,1,2) [2025-03-10 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651504', 'tblTempUsageDetail_20' ) start [2025-03-10 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651504', 'tblTempUsageDetail_20' ) end [2025-03-10 19:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:00:26] Production.INFO: ==8200== Releasing lock... [2025-03-10 19:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:00:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-10 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:01:06 [end_date_ymd] => 2025-03-10 19:01:06 [RateCDR] => 1 ) [2025-03-10 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:01:06' and `end` < '2025-03-10 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:01:18] Production.INFO: count ==3377 [2025-03-10 19:01:20] Production.ERROR: pbx CDR StartTime 2025-03-10 16:01:06 - End Time 2025-03-10 19:01:06 [2025-03-10 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651509', 'tblTempUsageDetail_20' ) start [2025-03-10 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651509', 'tblTempUsageDetail_20' ) end [2025-03-10 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651509', 'tblTempVendorCDR_20' ) start [2025-03-10 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651509', 'tblTempVendorCDR_20' ) end [2025-03-10 19:01:20] Production.INFO: ProcessCDR(1,14651509,1,1,2) [2025-03-10 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651509', 'tblTempUsageDetail_20' ) start [2025-03-10 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651509', 'tblTempUsageDetail_20' ) end [2025-03-10 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:01:25] Production.INFO: ==8305== Releasing lock... [2025-03-10 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:01:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-10 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:02:05 [end_date_ymd] => 2025-03-10 19:02:05 [RateCDR] => 1 ) [2025-03-10 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:02:05' and `end` < '2025-03-10 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:02:17] Production.INFO: count ==3358 [2025-03-10 19:02:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:02:05 - End Time 2025-03-10 19:02:05 [2025-03-10 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651514', 'tblTempUsageDetail_20' ) start [2025-03-10 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651514', 'tblTempUsageDetail_20' ) end [2025-03-10 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651514', 'tblTempVendorCDR_20' ) start [2025-03-10 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651514', 'tblTempVendorCDR_20' ) end [2025-03-10 19:02:19] Production.INFO: ProcessCDR(1,14651514,1,1,2) [2025-03-10 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651514', 'tblTempUsageDetail_20' ) start [2025-03-10 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651514', 'tblTempUsageDetail_20' ) end [2025-03-10 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:02:23] Production.INFO: ==8466== Releasing lock... [2025-03-10 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:02:23] Production.INFO: 53 MB #Memory Used# [2025-03-10 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:03:06 [end_date_ymd] => 2025-03-10 19:03:06 [RateCDR] => 1 ) [2025-03-10 19:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:03:06' and `end` < '2025-03-10 19:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:03:18] Production.INFO: count ==3342 [2025-03-10 19:03:20] Production.ERROR: pbx CDR StartTime 2025-03-10 16:03:06 - End Time 2025-03-10 19:03:06 [2025-03-10 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651519', 'tblTempUsageDetail_20' ) start [2025-03-10 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651519', 'tblTempUsageDetail_20' ) end [2025-03-10 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651519', 'tblTempVendorCDR_20' ) start [2025-03-10 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651519', 'tblTempVendorCDR_20' ) end [2025-03-10 19:03:20] Production.INFO: ProcessCDR(1,14651519,1,1,2) [2025-03-10 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651519', 'tblTempUsageDetail_20' ) start [2025-03-10 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651519', 'tblTempUsageDetail_20' ) end [2025-03-10 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:03:23] Production.INFO: ==8547== Releasing lock... [2025-03-10 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:03:23] Production.INFO: 53 MB #Memory Used# [2025-03-10 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:04:05 [end_date_ymd] => 2025-03-10 19:04:05 [RateCDR] => 1 ) [2025-03-10 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:04:05' and `end` < '2025-03-10 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:04:18] Production.INFO: count ==3341 [2025-03-10 19:04:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:04:05 - End Time 2025-03-10 19:04:05 [2025-03-10 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651524', 'tblTempUsageDetail_20' ) start [2025-03-10 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651524', 'tblTempUsageDetail_20' ) end [2025-03-10 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651524', 'tblTempVendorCDR_20' ) start [2025-03-10 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651524', 'tblTempVendorCDR_20' ) end [2025-03-10 19:04:19] Production.INFO: ProcessCDR(1,14651524,1,1,2) [2025-03-10 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651524', 'tblTempUsageDetail_20' ) start [2025-03-10 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651524', 'tblTempUsageDetail_20' ) end [2025-03-10 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:04:25] Production.INFO: ==8628== Releasing lock... [2025-03-10 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:04:25] Production.INFO: 53 MB #Memory Used# [2025-03-10 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:05:05 [end_date_ymd] => 2025-03-10 19:05:05 [RateCDR] => 1 ) [2025-03-10 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:05:05' and `end` < '2025-03-10 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:05:18] Production.INFO: count ==3329 [2025-03-10 19:05:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:05:05 - End Time 2025-03-10 19:05:05 [2025-03-10 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651529', 'tblTempUsageDetail_20' ) start [2025-03-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651529', 'tblTempUsageDetail_20' ) end [2025-03-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651529', 'tblTempVendorCDR_20' ) start [2025-03-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651529', 'tblTempVendorCDR_20' ) end [2025-03-10 19:05:19] Production.INFO: ProcessCDR(1,14651529,1,1,2) [2025-03-10 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651529', 'tblTempUsageDetail_20' ) start [2025-03-10 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651529', 'tblTempUsageDetail_20' ) end [2025-03-10 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:05:24] Production.INFO: ==8789== Releasing lock... [2025-03-10 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:05:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-10 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:06:05 [end_date_ymd] => 2025-03-10 19:06:05 [RateCDR] => 1 ) [2025-03-10 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:06:05' and `end` < '2025-03-10 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:06:18] Production.INFO: count ==3334 [2025-03-10 19:06:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:06:05 - End Time 2025-03-10 19:06:05 [2025-03-10 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651534', 'tblTempUsageDetail_20' ) start [2025-03-10 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651534', 'tblTempUsageDetail_20' ) end [2025-03-10 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651534', 'tblTempVendorCDR_20' ) start [2025-03-10 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651534', 'tblTempVendorCDR_20' ) end [2025-03-10 19:06:19] Production.INFO: ProcessCDR(1,14651534,1,1,2) [2025-03-10 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651534', 'tblTempUsageDetail_20' ) start [2025-03-10 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651534', 'tblTempUsageDetail_20' ) end [2025-03-10 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:06:22] Production.INFO: ==8871== Releasing lock... [2025-03-10 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:06:22] Production.INFO: 52.75 MB #Memory Used# [2025-03-10 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:07:05 [end_date_ymd] => 2025-03-10 19:07:05 [RateCDR] => 1 ) [2025-03-10 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:07:05' and `end` < '2025-03-10 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:07:18] Production.INFO: count ==3341 [2025-03-10 19:07:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:07:05 - End Time 2025-03-10 19:07:05 [2025-03-10 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651539', 'tblTempUsageDetail_20' ) start [2025-03-10 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651539', 'tblTempUsageDetail_20' ) end [2025-03-10 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651539', 'tblTempVendorCDR_20' ) start [2025-03-10 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651539', 'tblTempVendorCDR_20' ) end [2025-03-10 19:07:19] Production.INFO: ProcessCDR(1,14651539,1,1,2) [2025-03-10 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651539', 'tblTempUsageDetail_20' ) start [2025-03-10 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651539', 'tblTempUsageDetail_20' ) end [2025-03-10 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:07:23] Production.INFO: ==8952== Releasing lock... [2025-03-10 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:07:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-10 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:08:05 [end_date_ymd] => 2025-03-10 19:08:05 [RateCDR] => 1 ) [2025-03-10 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:08:05' and `end` < '2025-03-10 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:08:18] Production.INFO: count ==3341 [2025-03-10 19:08:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:08:05 - End Time 2025-03-10 19:08:05 [2025-03-10 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651544', 'tblTempUsageDetail_20' ) start [2025-03-10 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651544', 'tblTempUsageDetail_20' ) end [2025-03-10 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651544', 'tblTempVendorCDR_20' ) start [2025-03-10 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651544', 'tblTempVendorCDR_20' ) end [2025-03-10 19:08:19] Production.INFO: ProcessCDR(1,14651544,1,1,2) [2025-03-10 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651544', 'tblTempUsageDetail_20' ) start [2025-03-10 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651544', 'tblTempUsageDetail_20' ) end [2025-03-10 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:08:24] Production.INFO: ==9079== Releasing lock... [2025-03-10 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:08:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-10 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:09:05 [end_date_ymd] => 2025-03-10 19:09:05 [RateCDR] => 1 ) [2025-03-10 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:09:05' and `end` < '2025-03-10 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:09:18] Production.INFO: count ==3348 [2025-03-10 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:09:05 - End Time 2025-03-10 19:09:05 [2025-03-10 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651549', 'tblTempUsageDetail_20' ) start [2025-03-10 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651549', 'tblTempUsageDetail_20' ) end [2025-03-10 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651549', 'tblTempVendorCDR_20' ) start [2025-03-10 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651549', 'tblTempVendorCDR_20' ) end [2025-03-10 19:09:19] Production.INFO: ProcessCDR(1,14651549,1,1,2) [2025-03-10 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651549', 'tblTempUsageDetail_20' ) start [2025-03-10 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651549', 'tblTempUsageDetail_20' ) end [2025-03-10 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:09:22] Production.INFO: ==9200== Releasing lock... [2025-03-10 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:09:22] Production.INFO: 53.25 MB #Memory Used# [2025-03-10 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:10:06 [end_date_ymd] => 2025-03-10 19:10:06 [RateCDR] => 1 ) [2025-03-10 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:10:06' and `end` < '2025-03-10 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:10:18] Production.INFO: count ==3361 [2025-03-10 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-10 16:10:06 - End Time 2025-03-10 19:10:06 [2025-03-10 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651555', 'tblTempUsageDetail_20' ) start [2025-03-10 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651555', 'tblTempUsageDetail_20' ) end [2025-03-10 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651555', 'tblTempVendorCDR_20' ) start [2025-03-10 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651555', 'tblTempVendorCDR_20' ) end [2025-03-10 19:10:20] Production.INFO: ProcessCDR(1,14651555,1,1,2) [2025-03-10 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651555', 'tblTempUsageDetail_20' ) start [2025-03-10 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651555', 'tblTempUsageDetail_20' ) end [2025-03-10 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:10:25] Production.INFO: ==9293== Releasing lock... [2025-03-10 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:10:25] Production.INFO: 53.25 MB #Memory Used# [2025-03-10 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:11:05 [end_date_ymd] => 2025-03-10 19:11:05 [RateCDR] => 1 ) [2025-03-10 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:11:05' and `end` < '2025-03-10 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:11:18] Production.INFO: count ==3257 [2025-03-10 19:11:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:11:05 - End Time 2025-03-10 19:11:05 [2025-03-10 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651560', 'tblTempUsageDetail_20' ) start [2025-03-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651560', 'tblTempUsageDetail_20' ) end [2025-03-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651560', 'tblTempVendorCDR_20' ) start [2025-03-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651560', 'tblTempVendorCDR_20' ) end [2025-03-10 19:11:19] Production.INFO: ProcessCDR(1,14651560,1,1,2) [2025-03-10 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651560', 'tblTempUsageDetail_20' ) start [2025-03-10 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651560', 'tblTempUsageDetail_20' ) end [2025-03-10 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:11:22] Production.INFO: ==9384== Releasing lock... [2025-03-10 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:11:22] Production.INFO: 52.25 MB #Memory Used# [2025-03-10 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:12:05 [end_date_ymd] => 2025-03-10 19:12:05 [RateCDR] => 1 ) [2025-03-10 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:12:05' and `end` < '2025-03-10 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-03-10 19:12:17] Production.INFO: count ==3238 [2025-03-10 19:12:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:12:05 - End Time 2025-03-10 19:12:05 [2025-03-10 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651565', 'tblTempUsageDetail_20' ) start [2025-03-10 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651565', 'tblTempUsageDetail_20' ) end [2025-03-10 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651565', 'tblTempVendorCDR_20' ) start [2025-03-10 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651565', 'tblTempVendorCDR_20' ) end [2025-03-10 19:12:18] Production.INFO: ProcessCDR(1,14651565,1,1,2) [2025-03-10 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651565', 'tblTempUsageDetail_20' ) start [2025-03-10 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651565', 'tblTempUsageDetail_20' ) end [2025-03-10 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:12:23] Production.INFO: ==9580== Releasing lock... [2025-03-10 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:12:23] Production.INFO: 52.25 MB #Memory Used# [2025-03-10 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:13:06 [end_date_ymd] => 2025-03-10 19:13:06 [RateCDR] => 1 ) [2025-03-10 19:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:13:06' and `end` < '2025-03-10 19:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:13:18] Production.INFO: count ==3224 [2025-03-10 19:13:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:13:06 - End Time 2025-03-10 19:13:06 [2025-03-10 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651570', 'tblTempUsageDetail_20' ) start [2025-03-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651570', 'tblTempUsageDetail_20' ) end [2025-03-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651570', 'tblTempVendorCDR_20' ) start [2025-03-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651570', 'tblTempVendorCDR_20' ) end [2025-03-10 19:13:19] Production.INFO: ProcessCDR(1,14651570,1,1,2) [2025-03-10 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651570', 'tblTempUsageDetail_20' ) start [2025-03-10 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651570', 'tblTempUsageDetail_20' ) end [2025-03-10 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:13:23] Production.INFO: ==9664== Releasing lock... [2025-03-10 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:13:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-10 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:14:05 [end_date_ymd] => 2025-03-10 19:14:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 16:14:05' and `end` < '2025-03-10 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-03-10 19:14:17] Production.INFO: count ==3226 [2025-03-10 19:14:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:14:05 - End Time 2025-03-10 19:14:05 [2025-03-10 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651575', 'tblTempUsageDetail_20' ) start [2025-03-10 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651575', 'tblTempUsageDetail_20' ) end [2025-03-10 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651575', 'tblTempVendorCDR_20' ) start [2025-03-10 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651575', 'tblTempVendorCDR_20' ) end [2025-03-10 19:14:19] Production.INFO: ProcessCDR(1,14651575,1,1,2) [2025-03-10 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651575', 'tblTempUsageDetail_20' ) start [2025-03-10 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651575', 'tblTempUsageDetail_20' ) end [2025-03-10 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:14:24] Production.INFO: ==9753== Releasing lock... [2025-03-10 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:14:24] Production.INFO: 52 MB #Memory Used# [2025-03-10 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:15:06 [end_date_ymd] => 2025-03-10 19:15:06 [RateCDR] => 1 ) [2025-03-10 19:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:15:06' and `end` < '2025-03-10 19:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:15:18] Production.INFO: count ==3209 [2025-03-10 19:15:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:15:06 - End Time 2025-03-10 19:15:06 [2025-03-10 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651580', 'tblTempUsageDetail_20' ) start [2025-03-10 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651580', 'tblTempUsageDetail_20' ) end [2025-03-10 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651580', 'tblTempVendorCDR_20' ) start [2025-03-10 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651580', 'tblTempVendorCDR_20' ) end [2025-03-10 19:15:19] Production.INFO: ProcessCDR(1,14651580,1,1,2) [2025-03-10 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651580', 'tblTempUsageDetail_20' ) start [2025-03-10 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651580', 'tblTempUsageDetail_20' ) end [2025-03-10 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:15:24] Production.INFO: ==9924== Releasing lock... [2025-03-10 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:15:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-10 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:16:06 [end_date_ymd] => 2025-03-10 19:16:06 [RateCDR] => 1 ) [2025-03-10 19:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:16:06' and `end` < '2025-03-10 19:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:16:18] Production.INFO: count ==3207 [2025-03-10 19:16:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:16:06 - End Time 2025-03-10 19:16:06 [2025-03-10 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651585', 'tblTempUsageDetail_20' ) start [2025-03-10 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651585', 'tblTempUsageDetail_20' ) end [2025-03-10 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651585', 'tblTempVendorCDR_20' ) start [2025-03-10 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651585', 'tblTempVendorCDR_20' ) end [2025-03-10 19:16:19] Production.INFO: ProcessCDR(1,14651585,1,1,2) [2025-03-10 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651585', 'tblTempUsageDetail_20' ) start [2025-03-10 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651585', 'tblTempUsageDetail_20' ) end [2025-03-10 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:16:24] Production.INFO: ==10053== Releasing lock... [2025-03-10 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:16:24] Production.INFO: 52 MB #Memory Used# [2025-03-10 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:17:05 [end_date_ymd] => 2025-03-10 19:17:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 16:17:05' and `end` < '2025-03-10 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-03-10 19:17:17] Production.INFO: count ==3180 [2025-03-10 19:17:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:17:05 - End Time 2025-03-10 19:17:05 [2025-03-10 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651590', 'tblTempUsageDetail_20' ) start [2025-03-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651590', 'tblTempUsageDetail_20' ) end [2025-03-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651590', 'tblTempVendorCDR_20' ) start [2025-03-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651590', 'tblTempVendorCDR_20' ) end [2025-03-10 19:17:19] Production.INFO: ProcessCDR(1,14651590,1,1,2) [2025-03-10 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651590', 'tblTempUsageDetail_20' ) start [2025-03-10 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651590', 'tblTempUsageDetail_20' ) end [2025-03-10 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:17:22] Production.INFO: ==10175== Releasing lock... [2025-03-10 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:17:22] Production.INFO: 51.75 MB #Memory Used# [2025-03-10 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:18:05 [end_date_ymd] => 2025-03-10 19:18:05 [RateCDR] => 1 ) [2025-03-10 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:18:05' and `end` < '2025-03-10 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:18:17] Production.INFO: count ==3181 [2025-03-10 19:18:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:18:05 - End Time 2025-03-10 19:18:05 [2025-03-10 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651595', 'tblTempUsageDetail_20' ) start [2025-03-10 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651595', 'tblTempUsageDetail_20' ) end [2025-03-10 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651595', 'tblTempVendorCDR_20' ) start [2025-03-10 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651595', 'tblTempVendorCDR_20' ) end [2025-03-10 19:18:19] Production.INFO: ProcessCDR(1,14651595,1,1,2) [2025-03-10 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651595', 'tblTempUsageDetail_20' ) start [2025-03-10 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651595', 'tblTempUsageDetail_20' ) end [2025-03-10 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:18:22] Production.INFO: ==10292== Releasing lock... [2025-03-10 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:18:22] Production.INFO: 51.75 MB #Memory Used# [2025-03-10 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:19:06 [end_date_ymd] => 2025-03-10 19:19:06 [RateCDR] => 1 ) [2025-03-10 19:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:19:06' and `end` < '2025-03-10 19:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:19:18] Production.INFO: count ==3156 [2025-03-10 19:19:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:19:06 - End Time 2025-03-10 19:19:06 [2025-03-10 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651600', 'tblTempUsageDetail_20' ) start [2025-03-10 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651600', 'tblTempUsageDetail_20' ) end [2025-03-10 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651600', 'tblTempVendorCDR_20' ) start [2025-03-10 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651600', 'tblTempVendorCDR_20' ) end [2025-03-10 19:19:19] Production.INFO: ProcessCDR(1,14651600,1,1,2) [2025-03-10 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651600', 'tblTempUsageDetail_20' ) start [2025-03-10 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651600', 'tblTempUsageDetail_20' ) end [2025-03-10 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:19:24] Production.INFO: ==10416== Releasing lock... [2025-03-10 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:19:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-10 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:20:05 [end_date_ymd] => 2025-03-10 19:20:05 [RateCDR] => 1 ) [2025-03-10 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:20:05' and `end` < '2025-03-10 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:20:18] Production.INFO: count ==3130 [2025-03-10 19:20:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:20:05 - End Time 2025-03-10 19:20:05 [2025-03-10 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651606', 'tblTempUsageDetail_20' ) start [2025-03-10 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651606', 'tblTempUsageDetail_20' ) end [2025-03-10 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651606', 'tblTempVendorCDR_20' ) start [2025-03-10 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651606', 'tblTempVendorCDR_20' ) end [2025-03-10 19:20:19] Production.INFO: ProcessCDR(1,14651606,1,1,2) [2025-03-10 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651606', 'tblTempUsageDetail_20' ) start [2025-03-10 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651606', 'tblTempUsageDetail_20' ) end [2025-03-10 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:20:23] Production.INFO: ==10505== Releasing lock... [2025-03-10 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:20:23] Production.INFO: 51.25 MB #Memory Used# [2025-03-10 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:21:05 [end_date_ymd] => 2025-03-10 19:21:05 [RateCDR] => 1 ) [2025-03-10 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:21:05' and `end` < '2025-03-10 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:21:18] Production.INFO: count ==3014 [2025-03-10 19:21:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:21:05 - End Time 2025-03-10 19:21:05 [2025-03-10 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651611', 'tblTempUsageDetail_20' ) start [2025-03-10 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651611', 'tblTempUsageDetail_20' ) end [2025-03-10 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651611', 'tblTempVendorCDR_20' ) start [2025-03-10 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651611', 'tblTempVendorCDR_20' ) end [2025-03-10 19:21:19] Production.INFO: ProcessCDR(1,14651611,1,1,2) [2025-03-10 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651611', 'tblTempUsageDetail_20' ) start [2025-03-10 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651611', 'tblTempUsageDetail_20' ) end [2025-03-10 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:21:23] Production.INFO: ==10597== Releasing lock... [2025-03-10 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:21:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-10 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:22:05 [end_date_ymd] => 2025-03-10 19:22:05 [RateCDR] => 1 ) [2025-03-10 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:22:05' and `end` < '2025-03-10 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:22:18] Production.INFO: count ==2958 [2025-03-10 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:22:05 - End Time 2025-03-10 19:22:05 [2025-03-10 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651616', 'tblTempUsageDetail_20' ) start [2025-03-10 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651616', 'tblTempUsageDetail_20' ) end [2025-03-10 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651616', 'tblTempVendorCDR_20' ) start [2025-03-10 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651616', 'tblTempVendorCDR_20' ) end [2025-03-10 19:22:19] Production.INFO: ProcessCDR(1,14651616,1,1,2) [2025-03-10 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651616', 'tblTempUsageDetail_20' ) start [2025-03-10 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651616', 'tblTempUsageDetail_20' ) end [2025-03-10 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:22:24] Production.INFO: ==10683== Releasing lock... [2025-03-10 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:22:24] Production.INFO: 50 MB #Memory Used# [2025-03-10 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:23:05 [end_date_ymd] => 2025-03-10 19:23:05 [RateCDR] => 1 ) [2025-03-10 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:23:05' and `end` < '2025-03-10 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:23:18] Production.INFO: count ==2935 [2025-03-10 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:23:05 - End Time 2025-03-10 19:23:05 [2025-03-10 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651621', 'tblTempUsageDetail_20' ) start [2025-03-10 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651621', 'tblTempUsageDetail_20' ) end [2025-03-10 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651621', 'tblTempVendorCDR_20' ) start [2025-03-10 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651621', 'tblTempVendorCDR_20' ) end [2025-03-10 19:23:19] Production.INFO: ProcessCDR(1,14651621,1,1,2) [2025-03-10 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651621', 'tblTempUsageDetail_20' ) start [2025-03-10 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651621', 'tblTempUsageDetail_20' ) end [2025-03-10 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:23:24] Production.INFO: ==10766== Releasing lock... [2025-03-10 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:23:24] Production.INFO: 50 MB #Memory Used# [2025-03-10 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:24:05 [end_date_ymd] => 2025-03-10 19:24:05 [RateCDR] => 1 ) [2025-03-10 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:24:05' and `end` < '2025-03-10 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:24:18] Production.INFO: count ==2921 [2025-03-10 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:24:05 - End Time 2025-03-10 19:24:05 [2025-03-10 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651626', 'tblTempUsageDetail_20' ) start [2025-03-10 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651626', 'tblTempUsageDetail_20' ) end [2025-03-10 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651626', 'tblTempVendorCDR_20' ) start [2025-03-10 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651626', 'tblTempVendorCDR_20' ) end [2025-03-10 19:24:19] Production.INFO: ProcessCDR(1,14651626,1,1,2) [2025-03-10 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651626', 'tblTempUsageDetail_20' ) start [2025-03-10 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651626', 'tblTempUsageDetail_20' ) end [2025-03-10 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:24:24] Production.INFO: ==10846== Releasing lock... [2025-03-10 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:24:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-10 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:25:05 [end_date_ymd] => 2025-03-10 19:25:05 [RateCDR] => 1 ) [2025-03-10 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:25:05' and `end` < '2025-03-10 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:25:18] Production.INFO: count ==2958 [2025-03-10 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:25:05 - End Time 2025-03-10 19:25:05 [2025-03-10 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651631', 'tblTempUsageDetail_20' ) start [2025-03-10 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651631', 'tblTempUsageDetail_20' ) end [2025-03-10 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651631', 'tblTempVendorCDR_20' ) start [2025-03-10 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651631', 'tblTempVendorCDR_20' ) end [2025-03-10 19:25:19] Production.INFO: ProcessCDR(1,14651631,1,1,2) [2025-03-10 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651631', 'tblTempUsageDetail_20' ) start [2025-03-10 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651631', 'tblTempUsageDetail_20' ) end [2025-03-10 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:25:24] Production.INFO: ==10929== Releasing lock... [2025-03-10 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:25:24] Production.INFO: 50 MB #Memory Used# [2025-03-10 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:26:05 [end_date_ymd] => 2025-03-10 19:26:05 [RateCDR] => 1 ) [2025-03-10 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:26:05' and `end` < '2025-03-10 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:26:17] Production.INFO: count ==2951 [2025-03-10 19:26:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:26:05 - End Time 2025-03-10 19:26:05 [2025-03-10 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651636', 'tblTempUsageDetail_20' ) start [2025-03-10 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651636', 'tblTempUsageDetail_20' ) end [2025-03-10 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651636', 'tblTempVendorCDR_20' ) start [2025-03-10 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651636', 'tblTempVendorCDR_20' ) end [2025-03-10 19:26:19] Production.INFO: ProcessCDR(1,14651636,1,1,2) [2025-03-10 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651636', 'tblTempUsageDetail_20' ) start [2025-03-10 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651636', 'tblTempUsageDetail_20' ) end [2025-03-10 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:26:24] Production.INFO: ==11010== Releasing lock... [2025-03-10 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:26:24] Production.INFO: 50 MB #Memory Used# [2025-03-10 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:27:05 [end_date_ymd] => 2025-03-10 19:27:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 16:27:05' and `end` < '2025-03-10 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-03-10 19:27:17] Production.INFO: count ==2944 [2025-03-10 19:27:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:27:05 - End Time 2025-03-10 19:27:05 [2025-03-10 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651641', 'tblTempUsageDetail_20' ) start [2025-03-10 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651641', 'tblTempUsageDetail_20' ) end [2025-03-10 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651641', 'tblTempVendorCDR_20' ) start [2025-03-10 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651641', 'tblTempVendorCDR_20' ) end [2025-03-10 19:27:18] Production.INFO: ProcessCDR(1,14651641,1,1,2) [2025-03-10 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651641', 'tblTempUsageDetail_20' ) start [2025-03-10 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651641', 'tblTempUsageDetail_20' ) end [2025-03-10 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:27:23] Production.INFO: ==11140== Releasing lock... [2025-03-10 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:27:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-10 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:28:05 [end_date_ymd] => 2025-03-10 19:28:05 [RateCDR] => 1 ) [2025-03-10 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:28:05' and `end` < '2025-03-10 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:28:17] Production.INFO: count ==2929 [2025-03-10 19:28:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:28:05 - End Time 2025-03-10 19:28:05 [2025-03-10 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651646', 'tblTempUsageDetail_20' ) start [2025-03-10 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651646', 'tblTempUsageDetail_20' ) end [2025-03-10 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651646', 'tblTempVendorCDR_20' ) start [2025-03-10 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651646', 'tblTempVendorCDR_20' ) end [2025-03-10 19:28:18] Production.INFO: ProcessCDR(1,14651646,1,1,2) [2025-03-10 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651646', 'tblTempUsageDetail_20' ) start [2025-03-10 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651646', 'tblTempUsageDetail_20' ) end [2025-03-10 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:28:23] Production.INFO: ==11223== Releasing lock... [2025-03-10 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:28:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-10 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:29:05 [end_date_ymd] => 2025-03-10 19:29:05 [RateCDR] => 1 ) [2025-03-10 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:29:05' and `end` < '2025-03-10 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:29:17] Production.INFO: count ==2915 [2025-03-10 19:29:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:29:05 - End Time 2025-03-10 19:29:05 [2025-03-10 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651651', 'tblTempUsageDetail_20' ) start [2025-03-10 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651651', 'tblTempUsageDetail_20' ) end [2025-03-10 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651651', 'tblTempVendorCDR_20' ) start [2025-03-10 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651651', 'tblTempVendorCDR_20' ) end [2025-03-10 19:29:18] Production.INFO: ProcessCDR(1,14651651,1,1,2) [2025-03-10 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651651', 'tblTempUsageDetail_20' ) start [2025-03-10 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651651', 'tblTempUsageDetail_20' ) end [2025-03-10 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:29:23] Production.INFO: ==11309== Releasing lock... [2025-03-10 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:29:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-10 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:30:05 [end_date_ymd] => 2025-03-10 19:30:05 [RateCDR] => 1 ) [2025-03-10 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:30:05' and `end` < '2025-03-10 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:30:18] Production.INFO: count ==2902 [2025-03-10 19:30:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:30:05 - End Time 2025-03-10 19:30:05 [2025-03-10 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651657', 'tblTempUsageDetail_20' ) start [2025-03-10 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651657', 'tblTempUsageDetail_20' ) end [2025-03-10 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651657', 'tblTempVendorCDR_20' ) start [2025-03-10 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651657', 'tblTempVendorCDR_20' ) end [2025-03-10 19:30:19] Production.INFO: ProcessCDR(1,14651657,1,1,2) [2025-03-10 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651657', 'tblTempUsageDetail_20' ) start [2025-03-10 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651657', 'tblTempUsageDetail_20' ) end [2025-03-10 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:30:22] Production.INFO: ==11394== Releasing lock... [2025-03-10 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:30:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-10 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:31:06 [end_date_ymd] => 2025-03-10 19:31:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 16:31:06' and `end` < '2025-03-10 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-03-10 19:31:18] Production.INFO: count ==2805 [2025-03-10 19:31:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:31:06 - End Time 2025-03-10 19:31:06 [2025-03-10 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651662', 'tblTempUsageDetail_20' ) start [2025-03-10 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651662', 'tblTempUsageDetail_20' ) end [2025-03-10 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651662', 'tblTempVendorCDR_20' ) start [2025-03-10 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651662', 'tblTempVendorCDR_20' ) end [2025-03-10 19:31:19] Production.INFO: ProcessCDR(1,14651662,1,1,2) [2025-03-10 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651662', 'tblTempUsageDetail_20' ) start [2025-03-10 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651662', 'tblTempUsageDetail_20' ) end [2025-03-10 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:31:22] Production.INFO: ==11477== Releasing lock... [2025-03-10 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:31:22] Production.INFO: 49 MB #Memory Used# [2025-03-10 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:32:06 [end_date_ymd] => 2025-03-10 19:32:06 [RateCDR] => 1 ) [2025-03-10 19:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:32:06' and `end` < '2025-03-10 19:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:32:18] Production.INFO: count ==2778 [2025-03-10 19:32:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:32:06 - End Time 2025-03-10 19:32:06 [2025-03-10 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651667', 'tblTempUsageDetail_20' ) start [2025-03-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651667', 'tblTempUsageDetail_20' ) end [2025-03-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651667', 'tblTempVendorCDR_20' ) start [2025-03-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651667', 'tblTempVendorCDR_20' ) end [2025-03-10 19:32:19] Production.INFO: ProcessCDR(1,14651667,1,1,2) [2025-03-10 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651667', 'tblTempUsageDetail_20' ) start [2025-03-10 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651667', 'tblTempUsageDetail_20' ) end [2025-03-10 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:32:23] Production.INFO: ==11557== Releasing lock... [2025-03-10 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:32:23] Production.INFO: 49 MB #Memory Used# [2025-03-10 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:33:05 [end_date_ymd] => 2025-03-10 19:33:05 [RateCDR] => 1 ) [2025-03-10 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:33:05' and `end` < '2025-03-10 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:33:17] Production.INFO: count ==2772 [2025-03-10 19:33:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:33:05 - End Time 2025-03-10 19:33:05 [2025-03-10 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651672', 'tblTempUsageDetail_20' ) start [2025-03-10 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651672', 'tblTempUsageDetail_20' ) end [2025-03-10 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651672', 'tblTempVendorCDR_20' ) start [2025-03-10 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651672', 'tblTempVendorCDR_20' ) end [2025-03-10 19:33:18] Production.INFO: ProcessCDR(1,14651672,1,1,2) [2025-03-10 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651672', 'tblTempUsageDetail_20' ) start [2025-03-10 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651672', 'tblTempUsageDetail_20' ) end [2025-03-10 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:33:23] Production.INFO: ==11635== Releasing lock... [2025-03-10 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:33:23] Production.INFO: 49 MB #Memory Used# [2025-03-10 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:34:05 [end_date_ymd] => 2025-03-10 19:34:05 [RateCDR] => 1 ) [2025-03-10 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:34:05' and `end` < '2025-03-10 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:34:18] Production.INFO: count ==2752 [2025-03-10 19:34:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:34:05 - End Time 2025-03-10 19:34:05 [2025-03-10 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651677', 'tblTempUsageDetail_20' ) start [2025-03-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651677', 'tblTempUsageDetail_20' ) end [2025-03-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651677', 'tblTempVendorCDR_20' ) start [2025-03-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651677', 'tblTempVendorCDR_20' ) end [2025-03-10 19:34:19] Production.INFO: ProcessCDR(1,14651677,1,1,2) [2025-03-10 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651677', 'tblTempUsageDetail_20' ) start [2025-03-10 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651677', 'tblTempUsageDetail_20' ) end [2025-03-10 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:34:24] Production.INFO: ==11713== Releasing lock... [2025-03-10 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:34:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-10 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:35:05 [end_date_ymd] => 2025-03-10 19:35:05 [RateCDR] => 1 ) [2025-03-10 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:35:05' and `end` < '2025-03-10 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:35:17] Production.INFO: count ==2744 [2025-03-10 19:35:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:35:05 - End Time 2025-03-10 19:35:05 [2025-03-10 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651682', 'tblTempUsageDetail_20' ) start [2025-03-10 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651682', 'tblTempUsageDetail_20' ) end [2025-03-10 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651682', 'tblTempVendorCDR_20' ) start [2025-03-10 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651682', 'tblTempVendorCDR_20' ) end [2025-03-10 19:35:18] Production.INFO: ProcessCDR(1,14651682,1,1,2) [2025-03-10 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651682', 'tblTempUsageDetail_20' ) start [2025-03-10 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651682', 'tblTempUsageDetail_20' ) end [2025-03-10 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:35:22] Production.INFO: ==11792== Releasing lock... [2025-03-10 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:35:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-10 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:36:05 [end_date_ymd] => 2025-03-10 19:36:05 [RateCDR] => 1 ) [2025-03-10 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:36:05' and `end` < '2025-03-10 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:36:18] Production.INFO: count ==2736 [2025-03-10 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:36:05 - End Time 2025-03-10 19:36:05 [2025-03-10 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651687', 'tblTempUsageDetail_20' ) start [2025-03-10 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651687', 'tblTempUsageDetail_20' ) end [2025-03-10 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651687', 'tblTempVendorCDR_20' ) start [2025-03-10 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651687', 'tblTempVendorCDR_20' ) end [2025-03-10 19:36:19] Production.INFO: ProcessCDR(1,14651687,1,1,2) [2025-03-10 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651687', 'tblTempUsageDetail_20' ) start [2025-03-10 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651687', 'tblTempUsageDetail_20' ) end [2025-03-10 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:36:24] Production.INFO: ==11873== Releasing lock... [2025-03-10 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:36:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-10 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:37:05 [end_date_ymd] => 2025-03-10 19:37:05 [RateCDR] => 1 ) [2025-03-10 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:37:05' and `end` < '2025-03-10 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:37:17] Production.INFO: count ==2725 [2025-03-10 19:37:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:37:05 - End Time 2025-03-10 19:37:05 [2025-03-10 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651692', 'tblTempUsageDetail_20' ) start [2025-03-10 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651692', 'tblTempUsageDetail_20' ) end [2025-03-10 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651692', 'tblTempVendorCDR_20' ) start [2025-03-10 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651692', 'tblTempVendorCDR_20' ) end [2025-03-10 19:37:18] Production.INFO: ProcessCDR(1,14651692,1,1,2) [2025-03-10 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651692', 'tblTempUsageDetail_20' ) start [2025-03-10 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651692', 'tblTempUsageDetail_20' ) end [2025-03-10 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:37:21] Production.INFO: ==11944== Releasing lock... [2025-03-10 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:37:21] Production.INFO: 48.5 MB #Memory Used# [2025-03-10 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:38:06 [end_date_ymd] => 2025-03-10 19:38:06 [RateCDR] => 1 ) [2025-03-10 19:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:38:06' and `end` < '2025-03-10 19:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:38:18] Production.INFO: count ==2696 [2025-03-10 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:38:06 - End Time 2025-03-10 19:38:06 [2025-03-10 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651697', 'tblTempUsageDetail_20' ) start [2025-03-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651697', 'tblTempUsageDetail_20' ) end [2025-03-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651697', 'tblTempVendorCDR_20' ) start [2025-03-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651697', 'tblTempVendorCDR_20' ) end [2025-03-10 19:38:19] Production.INFO: ProcessCDR(1,14651697,1,1,2) [2025-03-10 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651697', 'tblTempUsageDetail_20' ) start [2025-03-10 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651697', 'tblTempUsageDetail_20' ) end [2025-03-10 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:38:22] Production.INFO: ==12025== Releasing lock... [2025-03-10 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:38:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-10 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:39:05 [end_date_ymd] => 2025-03-10 19:39:05 [RateCDR] => 1 ) [2025-03-10 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:39:05' and `end` < '2025-03-10 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:39:17] Production.INFO: count ==2676 [2025-03-10 19:39:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:39:05 - End Time 2025-03-10 19:39:05 [2025-03-10 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651702', 'tblTempUsageDetail_20' ) start [2025-03-10 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651702', 'tblTempUsageDetail_20' ) end [2025-03-10 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651702', 'tblTempVendorCDR_20' ) start [2025-03-10 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651702', 'tblTempVendorCDR_20' ) end [2025-03-10 19:39:18] Production.INFO: ProcessCDR(1,14651702,1,1,2) [2025-03-10 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651702', 'tblTempUsageDetail_20' ) start [2025-03-10 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651702', 'tblTempUsageDetail_20' ) end [2025-03-10 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:39:23] Production.INFO: ==12100== Releasing lock... [2025-03-10 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:39:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-10 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:40:06 [end_date_ymd] => 2025-03-10 19:40:06 [RateCDR] => 1 ) [2025-03-10 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:40:06' and `end` < '2025-03-10 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:40:19] Production.INFO: count ==2658 [2025-03-10 19:40:20] Production.ERROR: pbx CDR StartTime 2025-03-10 16:40:06 - End Time 2025-03-10 19:40:06 [2025-03-10 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651708', 'tblTempUsageDetail_20' ) start [2025-03-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651708', 'tblTempUsageDetail_20' ) end [2025-03-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651708', 'tblTempVendorCDR_20' ) start [2025-03-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651708', 'tblTempVendorCDR_20' ) end [2025-03-10 19:40:20] Production.INFO: ProcessCDR(1,14651708,1,1,2) [2025-03-10 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651708', 'tblTempUsageDetail_20' ) start [2025-03-10 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651708', 'tblTempUsageDetail_20' ) end [2025-03-10 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:40:25] Production.INFO: ==12184== Releasing lock... [2025-03-10 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:40:25] Production.INFO: 48 MB #Memory Used# [2025-03-10 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:41:05 [end_date_ymd] => 2025-03-10 19:41:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 16:41:05' and `end` < '2025-03-10 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-03-10 19:41:17] Production.INFO: count ==2549 [2025-03-10 19:41:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:41:05 - End Time 2025-03-10 19:41:05 [2025-03-10 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651713', 'tblTempUsageDetail_20' ) start [2025-03-10 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651713', 'tblTempUsageDetail_20' ) end [2025-03-10 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651713', 'tblTempVendorCDR_20' ) start [2025-03-10 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651713', 'tblTempVendorCDR_20' ) end [2025-03-10 19:41:18] Production.INFO: ProcessCDR(1,14651713,1,1,2) [2025-03-10 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651713', 'tblTempUsageDetail_20' ) start [2025-03-10 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651713', 'tblTempUsageDetail_20' ) end [2025-03-10 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:41:23] Production.INFO: ==12258== Releasing lock... [2025-03-10 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:41:23] Production.INFO: 47 MB #Memory Used# [2025-03-10 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:42:05 [end_date_ymd] => 2025-03-10 19:42:05 [RateCDR] => 1 ) [2025-03-10 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:42:05' and `end` < '2025-03-10 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:42:18] Production.INFO: count ==2526 [2025-03-10 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:42:05 - End Time 2025-03-10 19:42:05 [2025-03-10 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651718', 'tblTempUsageDetail_20' ) start [2025-03-10 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651718', 'tblTempUsageDetail_20' ) end [2025-03-10 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651718', 'tblTempVendorCDR_20' ) start [2025-03-10 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651718', 'tblTempVendorCDR_20' ) end [2025-03-10 19:42:19] Production.INFO: ProcessCDR(1,14651718,1,1,2) [2025-03-10 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651718', 'tblTempUsageDetail_20' ) start [2025-03-10 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651718', 'tblTempUsageDetail_20' ) end [2025-03-10 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:42:24] Production.INFO: ==12375== Releasing lock... [2025-03-10 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:42:24] Production.INFO: 47 MB #Memory Used# [2025-03-10 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:43:05 [end_date_ymd] => 2025-03-10 19:43:05 [RateCDR] => 1 ) [2025-03-10 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:43:05' and `end` < '2025-03-10 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:43:17] Production.INFO: count ==2514 [2025-03-10 19:43:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:43:05 - End Time 2025-03-10 19:43:05 [2025-03-10 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651723', 'tblTempUsageDetail_20' ) start [2025-03-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651723', 'tblTempUsageDetail_20' ) end [2025-03-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651723', 'tblTempVendorCDR_20' ) start [2025-03-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651723', 'tblTempVendorCDR_20' ) end [2025-03-10 19:43:18] Production.INFO: ProcessCDR(1,14651723,1,1,2) [2025-03-10 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651723', 'tblTempUsageDetail_20' ) start [2025-03-10 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651723', 'tblTempUsageDetail_20' ) end [2025-03-10 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:43:22] Production.INFO: ==12447== Releasing lock... [2025-03-10 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:43:22] Production.INFO: 47 MB #Memory Used# [2025-03-10 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:44:05 [end_date_ymd] => 2025-03-10 19:44:05 [RateCDR] => 1 ) [2025-03-10 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:44:05' and `end` < '2025-03-10 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:44:17] Production.INFO: count ==2507 [2025-03-10 19:44:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:44:05 - End Time 2025-03-10 19:44:05 [2025-03-10 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651728', 'tblTempUsageDetail_20' ) start [2025-03-10 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651728', 'tblTempUsageDetail_20' ) end [2025-03-10 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651728', 'tblTempVendorCDR_20' ) start [2025-03-10 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651728', 'tblTempVendorCDR_20' ) end [2025-03-10 19:44:18] Production.INFO: ProcessCDR(1,14651728,1,1,2) [2025-03-10 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651728', 'tblTempUsageDetail_20' ) start [2025-03-10 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651728', 'tblTempUsageDetail_20' ) end [2025-03-10 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:44:22] Production.INFO: ==12520== Releasing lock... [2025-03-10 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:44:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-10 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:45:05 [end_date_ymd] => 2025-03-10 19:45:05 [RateCDR] => 1 ) [2025-03-10 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:45:05' and `end` < '2025-03-10 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:45:17] Production.INFO: count ==2504 [2025-03-10 19:45:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:45:05 - End Time 2025-03-10 19:45:05 [2025-03-10 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651733', 'tblTempUsageDetail_20' ) start [2025-03-10 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651733', 'tblTempUsageDetail_20' ) end [2025-03-10 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651733', 'tblTempVendorCDR_20' ) start [2025-03-10 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651733', 'tblTempVendorCDR_20' ) end [2025-03-10 19:45:18] Production.INFO: ProcessCDR(1,14651733,1,1,2) [2025-03-10 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651733', 'tblTempUsageDetail_20' ) start [2025-03-10 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651733', 'tblTempUsageDetail_20' ) end [2025-03-10 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:45:22] Production.INFO: ==12592== Releasing lock... [2025-03-10 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:45:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-10 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:46:05 [end_date_ymd] => 2025-03-10 19:46:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 16:46:05' and `end` < '2025-03-10 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-03-10 19:46:18] Production.INFO: count ==2493 [2025-03-10 19:46:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:46:05 - End Time 2025-03-10 19:46:05 [2025-03-10 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651738', 'tblTempUsageDetail_20' ) start [2025-03-10 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651738', 'tblTempUsageDetail_20' ) end [2025-03-10 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651738', 'tblTempVendorCDR_20' ) start [2025-03-10 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651738', 'tblTempVendorCDR_20' ) end [2025-03-10 19:46:18] Production.INFO: ProcessCDR(1,14651738,1,1,2) [2025-03-10 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651738', 'tblTempUsageDetail_20' ) start [2025-03-10 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651738', 'tblTempUsageDetail_20' ) end [2025-03-10 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:46:23] Production.INFO: ==12675== Releasing lock... [2025-03-10 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:46:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-10 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:47:05 [end_date_ymd] => 2025-03-10 19:47:05 [RateCDR] => 1 ) [2025-03-10 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:47:05' and `end` < '2025-03-10 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:47:18] Production.INFO: count ==2484 [2025-03-10 19:47:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:47:05 - End Time 2025-03-10 19:47:05 [2025-03-10 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651743', 'tblTempUsageDetail_20' ) start [2025-03-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651743', 'tblTempUsageDetail_20' ) end [2025-03-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651743', 'tblTempVendorCDR_20' ) start [2025-03-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651743', 'tblTempVendorCDR_20' ) end [2025-03-10 19:47:19] Production.INFO: ProcessCDR(1,14651743,1,1,2) [2025-03-10 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651743', 'tblTempUsageDetail_20' ) start [2025-03-10 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651743', 'tblTempUsageDetail_20' ) end [2025-03-10 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:47:24] Production.INFO: ==12759== Releasing lock... [2025-03-10 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:47:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-10 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:48:05 [end_date_ymd] => 2025-03-10 19:48:05 [RateCDR] => 1 ) [2025-03-10 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:48:05' and `end` < '2025-03-10 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:48:17] Production.INFO: count ==2467 [2025-03-10 19:48:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:48:05 - End Time 2025-03-10 19:48:05 [2025-03-10 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651748', 'tblTempUsageDetail_20' ) start [2025-03-10 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651748', 'tblTempUsageDetail_20' ) end [2025-03-10 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651748', 'tblTempVendorCDR_20' ) start [2025-03-10 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651748', 'tblTempVendorCDR_20' ) end [2025-03-10 19:48:18] Production.INFO: ProcessCDR(1,14651748,1,1,2) [2025-03-10 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651748', 'tblTempUsageDetail_20' ) start [2025-03-10 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651748', 'tblTempUsageDetail_20' ) end [2025-03-10 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:48:22] Production.INFO: ==12840== Releasing lock... [2025-03-10 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:48:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-10 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:49:06 [end_date_ymd] => 2025-03-10 19:49:06 [RateCDR] => 1 ) [2025-03-10 19:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:49:06' and `end` < '2025-03-10 19:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:49:18] Production.INFO: count ==2410 [2025-03-10 19:49:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:49:06 - End Time 2025-03-10 19:49:06 [2025-03-10 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651753', 'tblTempUsageDetail_20' ) start [2025-03-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651753', 'tblTempUsageDetail_20' ) end [2025-03-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651753', 'tblTempVendorCDR_20' ) start [2025-03-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651753', 'tblTempVendorCDR_20' ) end [2025-03-10 19:49:19] Production.INFO: ProcessCDR(1,14651753,1,1,2) [2025-03-10 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651753', 'tblTempUsageDetail_20' ) start [2025-03-10 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651753', 'tblTempUsageDetail_20' ) end [2025-03-10 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:49:23] Production.INFO: ==12929== Releasing lock... [2025-03-10 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:49:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-10 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:50:06 [end_date_ymd] => 2025-03-10 19:50:06 [RateCDR] => 1 ) [2025-03-10 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:50:06' and `end` < '2025-03-10 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:50:19] Production.INFO: count ==2391 [2025-03-10 19:50:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:50:06 - End Time 2025-03-10 19:50:06 [2025-03-10 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651759', 'tblTempUsageDetail_20' ) start [2025-03-10 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651759', 'tblTempUsageDetail_20' ) end [2025-03-10 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651759', 'tblTempVendorCDR_20' ) start [2025-03-10 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651759', 'tblTempVendorCDR_20' ) end [2025-03-10 19:50:20] Production.INFO: ProcessCDR(1,14651759,1,1,2) [2025-03-10 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651759', 'tblTempUsageDetail_20' ) start [2025-03-10 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651759', 'tblTempUsageDetail_20' ) end [2025-03-10 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:50:23] Production.INFO: ==13015== Releasing lock... [2025-03-10 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:50:23] Production.INFO: 46 MB #Memory Used# [2025-03-10 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:51:06 [end_date_ymd] => 2025-03-10 19:51:06 [RateCDR] => 1 ) [2025-03-10 19:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:51:06' and `end` < '2025-03-10 19:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:51:18] Production.INFO: count ==2282 [2025-03-10 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:51:06 - End Time 2025-03-10 19:51:06 [2025-03-10 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651764', 'tblTempUsageDetail_20' ) start [2025-03-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651764', 'tblTempUsageDetail_20' ) end [2025-03-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651764', 'tblTempVendorCDR_20' ) start [2025-03-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651764', 'tblTempVendorCDR_20' ) end [2025-03-10 19:51:19] Production.INFO: ProcessCDR(1,14651764,1,1,2) [2025-03-10 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651764', 'tblTempUsageDetail_20' ) start [2025-03-10 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651764', 'tblTempUsageDetail_20' ) end [2025-03-10 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:51:24] Production.INFO: ==13097== Releasing lock... [2025-03-10 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:51:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-10 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:52:05 [end_date_ymd] => 2025-03-10 19:52:05 [RateCDR] => 1 ) [2025-03-10 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:52:05' and `end` < '2025-03-10 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:52:18] Production.INFO: count ==2265 [2025-03-10 19:52:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:52:05 - End Time 2025-03-10 19:52:05 [2025-03-10 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651769', 'tblTempUsageDetail_20' ) start [2025-03-10 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651769', 'tblTempUsageDetail_20' ) end [2025-03-10 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651769', 'tblTempVendorCDR_20' ) start [2025-03-10 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651769', 'tblTempVendorCDR_20' ) end [2025-03-10 19:52:18] Production.INFO: ProcessCDR(1,14651769,1,1,2) [2025-03-10 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651769', 'tblTempUsageDetail_20' ) start [2025-03-10 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651769', 'tblTempUsageDetail_20' ) end [2025-03-10 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:52:24] Production.INFO: ==13173== Releasing lock... [2025-03-10 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:52:24] Production.INFO: 45 MB #Memory Used# [2025-03-10 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:53:06 [end_date_ymd] => 2025-03-10 19:53:06 [RateCDR] => 1 ) [2025-03-10 19:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:53:06' and `end` < '2025-03-10 19:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:53:18] Production.INFO: count ==2259 [2025-03-10 19:53:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:53:06 - End Time 2025-03-10 19:53:06 [2025-03-10 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651774', 'tblTempUsageDetail_20' ) start [2025-03-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651774', 'tblTempUsageDetail_20' ) end [2025-03-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651774', 'tblTempVendorCDR_20' ) start [2025-03-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651774', 'tblTempVendorCDR_20' ) end [2025-03-10 19:53:19] Production.INFO: ProcessCDR(1,14651774,1,1,2) [2025-03-10 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651774', 'tblTempUsageDetail_20' ) start [2025-03-10 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651774', 'tblTempUsageDetail_20' ) end [2025-03-10 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:53:22] Production.INFO: ==13260== Releasing lock... [2025-03-10 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:53:22] Production.INFO: 45 MB #Memory Used# [2025-03-10 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:54:05 [end_date_ymd] => 2025-03-10 19:54:05 [RateCDR] => 1 ) [2025-03-10 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:54:05' and `end` < '2025-03-10 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:54:17] Production.INFO: count ==2247 [2025-03-10 19:54:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:54:05 - End Time 2025-03-10 19:54:05 [2025-03-10 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651779', 'tblTempUsageDetail_20' ) start [2025-03-10 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651779', 'tblTempUsageDetail_20' ) end [2025-03-10 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651779', 'tblTempVendorCDR_20' ) start [2025-03-10 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651779', 'tblTempVendorCDR_20' ) end [2025-03-10 19:54:18] Production.INFO: ProcessCDR(1,14651779,1,1,2) [2025-03-10 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651779', 'tblTempUsageDetail_20' ) start [2025-03-10 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651779', 'tblTempUsageDetail_20' ) end [2025-03-10 19:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:54:21] Production.INFO: ==13342== Releasing lock... [2025-03-10 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:54:21] Production.INFO: 45 MB #Memory Used# [2025-03-10 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:55:06 [end_date_ymd] => 2025-03-10 19:55:06 [RateCDR] => 1 ) [2025-03-10 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:55:06' and `end` < '2025-03-10 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:55:18] Production.INFO: count ==2226 [2025-03-10 19:55:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:55:06 - End Time 2025-03-10 19:55:06 [2025-03-10 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651784', 'tblTempUsageDetail_20' ) start [2025-03-10 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651784', 'tblTempUsageDetail_20' ) end [2025-03-10 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651784', 'tblTempVendorCDR_20' ) start [2025-03-10 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651784', 'tblTempVendorCDR_20' ) end [2025-03-10 19:55:19] Production.INFO: ProcessCDR(1,14651784,1,1,2) [2025-03-10 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651784', 'tblTempUsageDetail_20' ) start [2025-03-10 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651784', 'tblTempUsageDetail_20' ) end [2025-03-10 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:55:22] Production.INFO: ==13416== Releasing lock... [2025-03-10 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:55:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-10 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:56:05 [end_date_ymd] => 2025-03-10 19:56:05 [RateCDR] => 1 ) [2025-03-10 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:56:05' and `end` < '2025-03-10 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:56:18] Production.INFO: count ==2219 [2025-03-10 19:56:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:56:05 - End Time 2025-03-10 19:56:05 [2025-03-10 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651789', 'tblTempUsageDetail_20' ) start [2025-03-10 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651789', 'tblTempUsageDetail_20' ) end [2025-03-10 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651789', 'tblTempVendorCDR_20' ) start [2025-03-10 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651789', 'tblTempVendorCDR_20' ) end [2025-03-10 19:56:18] Production.INFO: ProcessCDR(1,14651789,1,1,2) [2025-03-10 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651789', 'tblTempUsageDetail_20' ) start [2025-03-10 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651789', 'tblTempUsageDetail_20' ) end [2025-03-10 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:56:22] Production.INFO: ==13491== Releasing lock... [2025-03-10 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:56:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-10 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:57:05 [end_date_ymd] => 2025-03-10 19:57:05 [RateCDR] => 1 ) [2025-03-10 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:57:05' and `end` < '2025-03-10 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:57:17] Production.INFO: count ==2199 [2025-03-10 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:57:05 - End Time 2025-03-10 19:57:05 [2025-03-10 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651794', 'tblTempUsageDetail_20' ) start [2025-03-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651794', 'tblTempUsageDetail_20' ) end [2025-03-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651794', 'tblTempVendorCDR_20' ) start [2025-03-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651794', 'tblTempVendorCDR_20' ) end [2025-03-10 19:57:18] Production.INFO: ProcessCDR(1,14651794,1,1,2) [2025-03-10 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651794', 'tblTempUsageDetail_20' ) start [2025-03-10 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651794', 'tblTempUsageDetail_20' ) end [2025-03-10 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:57:23] Production.INFO: ==13570== Releasing lock... [2025-03-10 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:57:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-10 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:58:05 [end_date_ymd] => 2025-03-10 19:58:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 16:58:05' and `end` < '2025-03-10 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-03-10 19:58:17] Production.INFO: count ==2183 [2025-03-10 19:58:18] Production.ERROR: pbx CDR StartTime 2025-03-10 16:58:05 - End Time 2025-03-10 19:58:05 [2025-03-10 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651799', 'tblTempUsageDetail_20' ) start [2025-03-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651799', 'tblTempUsageDetail_20' ) end [2025-03-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651799', 'tblTempVendorCDR_20' ) start [2025-03-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651799', 'tblTempVendorCDR_20' ) end [2025-03-10 19:58:18] Production.INFO: ProcessCDR(1,14651799,1,1,2) [2025-03-10 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651799', 'tblTempUsageDetail_20' ) start [2025-03-10 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651799', 'tblTempUsageDetail_20' ) end [2025-03-10 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:58:22] Production.INFO: ==13690== Releasing lock... [2025-03-10 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:58:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-10 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 16:59:06 [end_date_ymd] => 2025-03-10 19:59:06 [RateCDR] => 1 ) [2025-03-10 19:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 16:59:06' and `end` < '2025-03-10 19:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 19:59:18] Production.INFO: count ==2167 [2025-03-10 19:59:19] Production.ERROR: pbx CDR StartTime 2025-03-10 16:59:06 - End Time 2025-03-10 19:59:06 [2025-03-10 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651804', 'tblTempUsageDetail_20' ) start [2025-03-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651804', 'tblTempUsageDetail_20' ) end [2025-03-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651804', 'tblTempVendorCDR_20' ) start [2025-03-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651804', 'tblTempVendorCDR_20' ) end [2025-03-10 19:59:19] Production.INFO: ProcessCDR(1,14651804,1,1,2) [2025-03-10 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651804', 'tblTempUsageDetail_20' ) start [2025-03-10 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651804', 'tblTempUsageDetail_20' ) end [2025-03-10 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 19:59:22] Production.INFO: ==13771== Releasing lock... [2025-03-10 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 19:59:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-10 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:00:05 [end_date_ymd] => 2025-03-10 20:00:05 [RateCDR] => 1 ) [2025-03-10 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:00:05' and `end` < '2025-03-10 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:00:18] Production.INFO: count ==2159 [2025-03-10 20:00:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:00:05 - End Time 2025-03-10 20:00:05 [2025-03-10 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651810', 'tblTempUsageDetail_20' ) start [2025-03-10 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651810', 'tblTempUsageDetail_20' ) end [2025-03-10 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651810', 'tblTempVendorCDR_20' ) start [2025-03-10 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651810', 'tblTempVendorCDR_20' ) end [2025-03-10 20:00:19] Production.INFO: ProcessCDR(1,14651810,1,1,2) [2025-03-10 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651810', 'tblTempUsageDetail_20' ) start [2025-03-10 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651810', 'tblTempUsageDetail_20' ) end [2025-03-10 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:00:24] Production.INFO: ==13852== Releasing lock... [2025-03-10 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:00:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-10 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:01:06 [end_date_ymd] => 2025-03-10 20:01:06 [RateCDR] => 1 ) [2025-03-10 20:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:01:06' and `end` < '2025-03-10 20:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:01:18] Production.INFO: count ==2129 [2025-03-10 20:01:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:01:06 - End Time 2025-03-10 20:01:06 [2025-03-10 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651815', 'tblTempUsageDetail_20' ) start [2025-03-10 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651815', 'tblTempUsageDetail_20' ) end [2025-03-10 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651815', 'tblTempVendorCDR_20' ) start [2025-03-10 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651815', 'tblTempVendorCDR_20' ) end [2025-03-10 20:01:19] Production.INFO: ProcessCDR(1,14651815,1,1,2) [2025-03-10 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651815', 'tblTempUsageDetail_20' ) start [2025-03-10 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651815', 'tblTempUsageDetail_20' ) end [2025-03-10 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:01:22] Production.INFO: ==13983== Releasing lock... [2025-03-10 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:01:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-10 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:02:05 [end_date_ymd] => 2025-03-10 20:02:05 [RateCDR] => 1 ) [2025-03-10 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:02:05' and `end` < '2025-03-10 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:02:18] Production.INFO: count ==2127 [2025-03-10 20:02:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:02:05 - End Time 2025-03-10 20:02:05 [2025-03-10 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651820', 'tblTempUsageDetail_20' ) start [2025-03-10 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651820', 'tblTempUsageDetail_20' ) end [2025-03-10 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651820', 'tblTempVendorCDR_20' ) start [2025-03-10 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651820', 'tblTempVendorCDR_20' ) end [2025-03-10 20:02:19] Production.INFO: ProcessCDR(1,14651820,1,1,2) [2025-03-10 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651820', 'tblTempUsageDetail_20' ) start [2025-03-10 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651820', 'tblTempUsageDetail_20' ) end [2025-03-10 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:02:24] Production.INFO: ==14062== Releasing lock... [2025-03-10 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:02:24] Production.INFO: 44 MB #Memory Used# [2025-03-10 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:03:06 [end_date_ymd] => 2025-03-10 20:03:06 [RateCDR] => 1 ) [2025-03-10 20:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:03:06' and `end` < '2025-03-10 20:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:03:18] Production.INFO: count ==2119 [2025-03-10 20:03:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:03:06 - End Time 2025-03-10 20:03:06 [2025-03-10 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651825', 'tblTempUsageDetail_20' ) start [2025-03-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651825', 'tblTempUsageDetail_20' ) end [2025-03-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651825', 'tblTempVendorCDR_20' ) start [2025-03-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651825', 'tblTempVendorCDR_20' ) end [2025-03-10 20:03:19] Production.INFO: ProcessCDR(1,14651825,1,1,2) [2025-03-10 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651825', 'tblTempUsageDetail_20' ) start [2025-03-10 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651825', 'tblTempUsageDetail_20' ) end [2025-03-10 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:03:23] Production.INFO: ==14138== Releasing lock... [2025-03-10 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:03:23] Production.INFO: 44 MB #Memory Used# [2025-03-10 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:04:06 [end_date_ymd] => 2025-03-10 20:04:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:04:06' and `end` < '2025-03-10 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-03-10 20:04:18] Production.INFO: count ==2104 [2025-03-10 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:04:06 - End Time 2025-03-10 20:04:06 [2025-03-10 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651830', 'tblTempUsageDetail_20' ) start [2025-03-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651830', 'tblTempUsageDetail_20' ) end [2025-03-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651830', 'tblTempVendorCDR_20' ) start [2025-03-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651830', 'tblTempVendorCDR_20' ) end [2025-03-10 20:04:19] Production.INFO: ProcessCDR(1,14651830,1,1,2) [2025-03-10 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651830', 'tblTempUsageDetail_20' ) start [2025-03-10 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651830', 'tblTempUsageDetail_20' ) end [2025-03-10 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:04:22] Production.INFO: ==14215== Releasing lock... [2025-03-10 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:04:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-10 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:05:06 [end_date_ymd] => 2025-03-10 20:05:06 [RateCDR] => 1 ) [2025-03-10 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:05:06' and `end` < '2025-03-10 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:05:18] Production.INFO: count ==2101 [2025-03-10 20:05:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:05:06 - End Time 2025-03-10 20:05:06 [2025-03-10 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651835', 'tblTempUsageDetail_20' ) start [2025-03-10 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651835', 'tblTempUsageDetail_20' ) end [2025-03-10 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651835', 'tblTempVendorCDR_20' ) start [2025-03-10 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651835', 'tblTempVendorCDR_20' ) end [2025-03-10 20:05:19] Production.INFO: ProcessCDR(1,14651835,1,1,2) [2025-03-10 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651835', 'tblTempUsageDetail_20' ) start [2025-03-10 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651835', 'tblTempUsageDetail_20' ) end [2025-03-10 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:05:23] Production.INFO: ==14291== Releasing lock... [2025-03-10 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:05:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-10 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:06:05 [end_date_ymd] => 2025-03-10 20:06:05 [RateCDR] => 1 ) [2025-03-10 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:06:05' and `end` < '2025-03-10 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:06:18] Production.INFO: count ==2098 [2025-03-10 20:06:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:06:05 - End Time 2025-03-10 20:06:05 [2025-03-10 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651840', 'tblTempUsageDetail_20' ) start [2025-03-10 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651840', 'tblTempUsageDetail_20' ) end [2025-03-10 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651840', 'tblTempVendorCDR_20' ) start [2025-03-10 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651840', 'tblTempVendorCDR_20' ) end [2025-03-10 20:06:18] Production.INFO: ProcessCDR(1,14651840,1,1,2) [2025-03-10 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651840', 'tblTempUsageDetail_20' ) start [2025-03-10 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651840', 'tblTempUsageDetail_20' ) end [2025-03-10 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:06:22] Production.INFO: ==14370== Releasing lock... [2025-03-10 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:06:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-10 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:07:06 [end_date_ymd] => 2025-03-10 20:07:06 [RateCDR] => 1 ) [2025-03-10 20:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:07:06' and `end` < '2025-03-10 20:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:07:18] Production.INFO: count ==2087 [2025-03-10 20:07:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:07:06 - End Time 2025-03-10 20:07:06 [2025-03-10 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651845', 'tblTempUsageDetail_20' ) start [2025-03-10 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651845', 'tblTempUsageDetail_20' ) end [2025-03-10 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651845', 'tblTempVendorCDR_20' ) start [2025-03-10 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651845', 'tblTempVendorCDR_20' ) end [2025-03-10 20:07:19] Production.INFO: ProcessCDR(1,14651845,1,1,2) [2025-03-10 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651845', 'tblTempUsageDetail_20' ) start [2025-03-10 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651845', 'tblTempUsageDetail_20' ) end [2025-03-10 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:07:23] Production.INFO: ==14457== Releasing lock... [2025-03-10 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:07:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-10 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:08:05 [end_date_ymd] => 2025-03-10 20:08:05 [RateCDR] => 1 ) [2025-03-10 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:08:05' and `end` < '2025-03-10 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:08:18] Production.INFO: count ==2090 [2025-03-10 20:08:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:08:05 - End Time 2025-03-10 20:08:05 [2025-03-10 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651850', 'tblTempUsageDetail_20' ) start [2025-03-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651850', 'tblTempUsageDetail_20' ) end [2025-03-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651850', 'tblTempVendorCDR_20' ) start [2025-03-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651850', 'tblTempVendorCDR_20' ) end [2025-03-10 20:08:19] Production.INFO: ProcessCDR(1,14651850,1,1,2) [2025-03-10 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651850', 'tblTempUsageDetail_20' ) start [2025-03-10 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651850', 'tblTempUsageDetail_20' ) end [2025-03-10 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:08:23] Production.INFO: ==14551== Releasing lock... [2025-03-10 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:08:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-10 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:09:06 [end_date_ymd] => 2025-03-10 20:09:06 [RateCDR] => 1 ) [2025-03-10 20:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:09:06' and `end` < '2025-03-10 20:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:09:19] Production.INFO: count ==2083 [2025-03-10 20:09:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:09:06 - End Time 2025-03-10 20:09:06 [2025-03-10 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651855', 'tblTempUsageDetail_20' ) start [2025-03-10 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651855', 'tblTempUsageDetail_20' ) end [2025-03-10 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651855', 'tblTempVendorCDR_20' ) start [2025-03-10 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651855', 'tblTempVendorCDR_20' ) end [2025-03-10 20:09:19] Production.INFO: ProcessCDR(1,14651855,1,1,2) [2025-03-10 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651855', 'tblTempUsageDetail_20' ) start [2025-03-10 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651855', 'tblTempUsageDetail_20' ) end [2025-03-10 20:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:09:25] Production.INFO: ==14630== Releasing lock... [2025-03-10 20:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:09:25] Production.INFO: 43.75 MB #Memory Used# [2025-03-10 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:10:06 [end_date_ymd] => 2025-03-10 20:10:06 [RateCDR] => 1 ) [2025-03-10 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:10:06' and `end` < '2025-03-10 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:10:18] Production.INFO: count ==2082 [2025-03-10 20:10:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:10:06 - End Time 2025-03-10 20:10:06 [2025-03-10 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651861', 'tblTempUsageDetail_20' ) start [2025-03-10 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651861', 'tblTempUsageDetail_20' ) end [2025-03-10 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651861', 'tblTempVendorCDR_20' ) start [2025-03-10 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651861', 'tblTempVendorCDR_20' ) end [2025-03-10 20:10:20] Production.INFO: ProcessCDR(1,14651861,1,1,2) [2025-03-10 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651861', 'tblTempUsageDetail_20' ) start [2025-03-10 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651861', 'tblTempUsageDetail_20' ) end [2025-03-10 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:10:23] Production.INFO: ==14712== Releasing lock... [2025-03-10 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:10:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-10 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:11:06 [end_date_ymd] => 2025-03-10 20:11:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:11:06' and `end` < '2025-03-10 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-03-10 20:11:18] Production.INFO: count ==2034 [2025-03-10 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:11:06 - End Time 2025-03-10 20:11:06 [2025-03-10 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651866', 'tblTempUsageDetail_20' ) start [2025-03-10 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651866', 'tblTempUsageDetail_20' ) end [2025-03-10 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651866', 'tblTempVendorCDR_20' ) start [2025-03-10 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651866', 'tblTempVendorCDR_20' ) end [2025-03-10 20:11:19] Production.INFO: ProcessCDR(1,14651866,1,1,2) [2025-03-10 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651866', 'tblTempUsageDetail_20' ) start [2025-03-10 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651866', 'tblTempUsageDetail_20' ) end [2025-03-10 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:11:23] Production.INFO: ==14794== Releasing lock... [2025-03-10 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:11:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-10 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:12:06 [end_date_ymd] => 2025-03-10 20:12:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:12:06' and `end` < '2025-03-10 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-03-10 20:12:18] Production.INFO: count ==2044 [2025-03-10 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:12:06 - End Time 2025-03-10 20:12:06 [2025-03-10 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651871', 'tblTempUsageDetail_20' ) start [2025-03-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651871', 'tblTempUsageDetail_20' ) end [2025-03-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651871', 'tblTempVendorCDR_20' ) start [2025-03-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651871', 'tblTempVendorCDR_20' ) end [2025-03-10 20:12:19] Production.INFO: ProcessCDR(1,14651871,1,1,2) [2025-03-10 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651871', 'tblTempUsageDetail_20' ) start [2025-03-10 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651871', 'tblTempUsageDetail_20' ) end [2025-03-10 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:12:23] Production.INFO: ==14868== Releasing lock... [2025-03-10 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:12:23] Production.INFO: 44 MB #Memory Used# [2025-03-10 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:13:06 [end_date_ymd] => 2025-03-10 20:13:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:13:06' and `end` < '2025-03-10 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-03-10 20:13:18] Production.INFO: count ==2033 [2025-03-10 20:13:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:13:06 - End Time 2025-03-10 20:13:06 [2025-03-10 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651876', 'tblTempUsageDetail_20' ) start [2025-03-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651876', 'tblTempUsageDetail_20' ) end [2025-03-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651876', 'tblTempVendorCDR_20' ) start [2025-03-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651876', 'tblTempVendorCDR_20' ) end [2025-03-10 20:13:19] Production.INFO: ProcessCDR(1,14651876,1,1,2) [2025-03-10 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651876', 'tblTempUsageDetail_20' ) start [2025-03-10 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651876', 'tblTempUsageDetail_20' ) end [2025-03-10 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:13:23] Production.INFO: ==14984== Releasing lock... [2025-03-10 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:13:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-10 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:14:05 [end_date_ymd] => 2025-03-10 20:14:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:14:05' and `end` < '2025-03-10 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-03-10 20:14:18] Production.INFO: count ==2050 [2025-03-10 20:14:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:14:05 - End Time 2025-03-10 20:14:05 [2025-03-10 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651881', 'tblTempUsageDetail_20' ) start [2025-03-10 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651881', 'tblTempUsageDetail_20' ) end [2025-03-10 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651881', 'tblTempVendorCDR_20' ) start [2025-03-10 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651881', 'tblTempVendorCDR_20' ) end [2025-03-10 20:14:19] Production.INFO: ProcessCDR(1,14651881,1,1,2) [2025-03-10 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651881', 'tblTempUsageDetail_20' ) start [2025-03-10 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651881', 'tblTempUsageDetail_20' ) end [2025-03-10 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:14:24] Production.INFO: ==15062== Releasing lock... [2025-03-10 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:14:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-10 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:15:06 [end_date_ymd] => 2025-03-10 20:15:06 [RateCDR] => 1 ) [2025-03-10 20:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:15:06' and `end` < '2025-03-10 20:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:15:18] Production.INFO: count ==2044 [2025-03-10 20:15:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:15:06 - End Time 2025-03-10 20:15:06 [2025-03-10 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651886', 'tblTempUsageDetail_20' ) start [2025-03-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651886', 'tblTempUsageDetail_20' ) end [2025-03-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651886', 'tblTempVendorCDR_20' ) start [2025-03-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651886', 'tblTempVendorCDR_20' ) end [2025-03-10 20:15:19] Production.INFO: ProcessCDR(1,14651886,1,1,2) [2025-03-10 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651886', 'tblTempUsageDetail_20' ) start [2025-03-10 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651886', 'tblTempUsageDetail_20' ) end [2025-03-10 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:15:23] Production.INFO: ==15137== Releasing lock... [2025-03-10 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:15:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-10 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:16:05 [end_date_ymd] => 2025-03-10 20:16:05 [RateCDR] => 1 ) [2025-03-10 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:16:05' and `end` < '2025-03-10 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:16:17] Production.INFO: count ==2034 [2025-03-10 20:16:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:16:05 - End Time 2025-03-10 20:16:05 [2025-03-10 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651891', 'tblTempUsageDetail_20' ) start [2025-03-10 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651891', 'tblTempUsageDetail_20' ) end [2025-03-10 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651891', 'tblTempVendorCDR_20' ) start [2025-03-10 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651891', 'tblTempVendorCDR_20' ) end [2025-03-10 20:16:18] Production.INFO: ProcessCDR(1,14651891,1,1,2) [2025-03-10 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651891', 'tblTempUsageDetail_20' ) start [2025-03-10 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651891', 'tblTempUsageDetail_20' ) end [2025-03-10 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:16:23] Production.INFO: ==15213== Releasing lock... [2025-03-10 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:16:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-10 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:17:05 [end_date_ymd] => 2025-03-10 20:17:05 [RateCDR] => 1 ) [2025-03-10 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:17:05' and `end` < '2025-03-10 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:17:18] Production.INFO: count ==2033 [2025-03-10 20:17:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:17:05 - End Time 2025-03-10 20:17:05 [2025-03-10 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651896', 'tblTempUsageDetail_20' ) start [2025-03-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651896', 'tblTempUsageDetail_20' ) end [2025-03-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651896', 'tblTempVendorCDR_20' ) start [2025-03-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651896', 'tblTempVendorCDR_20' ) end [2025-03-10 20:17:19] Production.INFO: ProcessCDR(1,14651896,1,1,2) [2025-03-10 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651896', 'tblTempUsageDetail_20' ) start [2025-03-10 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651896', 'tblTempUsageDetail_20' ) end [2025-03-10 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:17:24] Production.INFO: ==15295== Releasing lock... [2025-03-10 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:17:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-10 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:18:05 [end_date_ymd] => 2025-03-10 20:18:05 [RateCDR] => 1 ) [2025-03-10 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:18:05' and `end` < '2025-03-10 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:18:17] Production.INFO: count ==2011 [2025-03-10 20:18:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:18:05 - End Time 2025-03-10 20:18:05 [2025-03-10 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651901', 'tblTempUsageDetail_20' ) start [2025-03-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651901', 'tblTempUsageDetail_20' ) end [2025-03-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651901', 'tblTempVendorCDR_20' ) start [2025-03-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651901', 'tblTempVendorCDR_20' ) end [2025-03-10 20:18:18] Production.INFO: ProcessCDR(1,14651901,1,1,2) [2025-03-10 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651901', 'tblTempUsageDetail_20' ) start [2025-03-10 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651901', 'tblTempUsageDetail_20' ) end [2025-03-10 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:18:22] Production.INFO: ==15369== Releasing lock... [2025-03-10 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:18:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-10 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:19:06 [end_date_ymd] => 2025-03-10 20:19:06 [RateCDR] => 1 ) [2025-03-10 20:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:19:06' and `end` < '2025-03-10 20:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:19:19] Production.INFO: count ==2006 [2025-03-10 20:19:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:19:06 - End Time 2025-03-10 20:19:06 [2025-03-10 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651906', 'tblTempUsageDetail_20' ) start [2025-03-10 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651906', 'tblTempUsageDetail_20' ) end [2025-03-10 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651906', 'tblTempVendorCDR_20' ) start [2025-03-10 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651906', 'tblTempVendorCDR_20' ) end [2025-03-10 20:19:19] Production.INFO: ProcessCDR(1,14651906,1,1,2) [2025-03-10 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651906', 'tblTempUsageDetail_20' ) start [2025-03-10 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651906', 'tblTempUsageDetail_20' ) end [2025-03-10 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:19:23] Production.INFO: ==15449== Releasing lock... [2025-03-10 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:19:23] Production.INFO: 43 MB #Memory Used# [2025-03-10 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:20:06 [end_date_ymd] => 2025-03-10 20:20:06 [RateCDR] => 1 ) [2025-03-10 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:20:06' and `end` < '2025-03-10 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:20:18] Production.INFO: count ==2005 [2025-03-10 20:20:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:20:06 - End Time 2025-03-10 20:20:06 [2025-03-10 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651912', 'tblTempUsageDetail_20' ) start [2025-03-10 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651912', 'tblTempUsageDetail_20' ) end [2025-03-10 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651912', 'tblTempVendorCDR_20' ) start [2025-03-10 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651912', 'tblTempVendorCDR_20' ) end [2025-03-10 20:20:19] Production.INFO: ProcessCDR(1,14651912,1,1,2) [2025-03-10 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651912', 'tblTempUsageDetail_20' ) start [2025-03-10 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651912', 'tblTempUsageDetail_20' ) end [2025-03-10 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:20:24] Production.INFO: ==15529== Releasing lock... [2025-03-10 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:20:24] Production.INFO: 43 MB #Memory Used# [2025-03-10 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:21:06 [end_date_ymd] => 2025-03-10 20:21:06 [RateCDR] => 1 ) [2025-03-10 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:21:06' and `end` < '2025-03-10 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:21:18] Production.INFO: count ==1934 [2025-03-10 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:21:06 - End Time 2025-03-10 20:21:06 [2025-03-10 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651917', 'tblTempUsageDetail_20' ) start [2025-03-10 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651917', 'tblTempUsageDetail_20' ) end [2025-03-10 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651917', 'tblTempVendorCDR_20' ) start [2025-03-10 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651917', 'tblTempVendorCDR_20' ) end [2025-03-10 20:21:19] Production.INFO: ProcessCDR(1,14651917,1,1,2) [2025-03-10 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651917', 'tblTempUsageDetail_20' ) start [2025-03-10 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651917', 'tblTempUsageDetail_20' ) end [2025-03-10 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:21:22] Production.INFO: ==15608== Releasing lock... [2025-03-10 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:21:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-10 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:22:05 [end_date_ymd] => 2025-03-10 20:22:05 [RateCDR] => 1 ) [2025-03-10 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:22:05' and `end` < '2025-03-10 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:22:18] Production.INFO: count ==1932 [2025-03-10 20:22:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:22:05 - End Time 2025-03-10 20:22:05 [2025-03-10 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651922', 'tblTempUsageDetail_20' ) start [2025-03-10 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651922', 'tblTempUsageDetail_20' ) end [2025-03-10 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651922', 'tblTempVendorCDR_20' ) start [2025-03-10 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651922', 'tblTempVendorCDR_20' ) end [2025-03-10 20:22:18] Production.INFO: ProcessCDR(1,14651922,1,1,2) [2025-03-10 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651922', 'tblTempUsageDetail_20' ) start [2025-03-10 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651922', 'tblTempUsageDetail_20' ) end [2025-03-10 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:22:22] Production.INFO: ==15685== Releasing lock... [2025-03-10 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:22:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-10 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:23:06 [end_date_ymd] => 2025-03-10 20:23:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:23:06' and `end` < '2025-03-10 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-03-10 20:23:18] Production.INFO: count ==1929 [2025-03-10 20:23:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:23:06 - End Time 2025-03-10 20:23:06 [2025-03-10 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651927', 'tblTempUsageDetail_20' ) start [2025-03-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651927', 'tblTempUsageDetail_20' ) end [2025-03-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651927', 'tblTempVendorCDR_20' ) start [2025-03-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651927', 'tblTempVendorCDR_20' ) end [2025-03-10 20:23:19] Production.INFO: ProcessCDR(1,14651927,1,1,2) [2025-03-10 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651927', 'tblTempUsageDetail_20' ) start [2025-03-10 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651927', 'tblTempUsageDetail_20' ) end [2025-03-10 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:23:24] Production.INFO: ==15765== Releasing lock... [2025-03-10 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:23:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-10 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:24:05 [end_date_ymd] => 2025-03-10 20:24:05 [RateCDR] => 1 ) [2025-03-10 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:24:05' and `end` < '2025-03-10 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:24:18] Production.INFO: count ==1925 [2025-03-10 20:24:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:24:05 - End Time 2025-03-10 20:24:05 [2025-03-10 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651932', 'tblTempUsageDetail_20' ) start [2025-03-10 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651932', 'tblTempUsageDetail_20' ) end [2025-03-10 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651932', 'tblTempVendorCDR_20' ) start [2025-03-10 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651932', 'tblTempVendorCDR_20' ) end [2025-03-10 20:24:18] Production.INFO: ProcessCDR(1,14651932,1,1,2) [2025-03-10 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651932', 'tblTempUsageDetail_20' ) start [2025-03-10 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651932', 'tblTempUsageDetail_20' ) end [2025-03-10 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:24:22] Production.INFO: ==15842== Releasing lock... [2025-03-10 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:24:22] Production.INFO: 43 MB #Memory Used# [2025-03-10 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:25:05 [end_date_ymd] => 2025-03-10 20:25:05 [RateCDR] => 1 ) [2025-03-10 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:25:05' and `end` < '2025-03-10 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:25:18] Production.INFO: count ==1921 [2025-03-10 20:25:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:25:05 - End Time 2025-03-10 20:25:05 [2025-03-10 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651937', 'tblTempUsageDetail_20' ) start [2025-03-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651937', 'tblTempUsageDetail_20' ) end [2025-03-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651937', 'tblTempVendorCDR_20' ) start [2025-03-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651937', 'tblTempVendorCDR_20' ) end [2025-03-10 20:25:19] Production.INFO: ProcessCDR(1,14651937,1,1,2) [2025-03-10 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651937', 'tblTempUsageDetail_20' ) start [2025-03-10 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651937', 'tblTempUsageDetail_20' ) end [2025-03-10 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:25:22] Production.INFO: ==15919== Releasing lock... [2025-03-10 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:25:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-10 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:26:06 [end_date_ymd] => 2025-03-10 20:26:06 [RateCDR] => 1 ) [2025-03-10 20:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:26:06' and `end` < '2025-03-10 20:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:26:18] Production.INFO: count ==1915 [2025-03-10 20:26:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:26:06 - End Time 2025-03-10 20:26:06 [2025-03-10 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651942', 'tblTempUsageDetail_20' ) start [2025-03-10 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651942', 'tblTempUsageDetail_20' ) end [2025-03-10 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651942', 'tblTempVendorCDR_20' ) start [2025-03-10 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651942', 'tblTempVendorCDR_20' ) end [2025-03-10 20:26:19] Production.INFO: ProcessCDR(1,14651942,1,1,2) [2025-03-10 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651942', 'tblTempUsageDetail_20' ) start [2025-03-10 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651942', 'tblTempUsageDetail_20' ) end [2025-03-10 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:26:23] Production.INFO: ==15994== Releasing lock... [2025-03-10 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:26:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-10 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:27:06 [end_date_ymd] => 2025-03-10 20:27:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:27:06' and `end` < '2025-03-10 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-03-10 20:27:18] Production.INFO: count ==1902 [2025-03-10 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:27:06 - End Time 2025-03-10 20:27:06 [2025-03-10 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651947', 'tblTempUsageDetail_20' ) start [2025-03-10 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651947', 'tblTempUsageDetail_20' ) end [2025-03-10 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651947', 'tblTempVendorCDR_20' ) start [2025-03-10 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651947', 'tblTempVendorCDR_20' ) end [2025-03-10 20:27:19] Production.INFO: ProcessCDR(1,14651947,1,1,2) [2025-03-10 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651947', 'tblTempUsageDetail_20' ) start [2025-03-10 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651947', 'tblTempUsageDetail_20' ) end [2025-03-10 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:27:22] Production.INFO: ==16070== Releasing lock... [2025-03-10 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:27:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-10 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:28:05 [end_date_ymd] => 2025-03-10 20:28:05 [RateCDR] => 1 ) [2025-03-10 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:28:05' and `end` < '2025-03-10 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:28:17] Production.INFO: count ==1905 [2025-03-10 20:28:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:28:05 - End Time 2025-03-10 20:28:05 [2025-03-10 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651952', 'tblTempUsageDetail_20' ) start [2025-03-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651952', 'tblTempUsageDetail_20' ) end [2025-03-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651952', 'tblTempVendorCDR_20' ) start [2025-03-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651952', 'tblTempVendorCDR_20' ) end [2025-03-10 20:28:18] Production.INFO: ProcessCDR(1,14651952,1,1,2) [2025-03-10 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651952', 'tblTempUsageDetail_20' ) start [2025-03-10 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651952', 'tblTempUsageDetail_20' ) end [2025-03-10 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:28:22] Production.INFO: ==16142== Releasing lock... [2025-03-10 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:28:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-10 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:29:06 [end_date_ymd] => 2025-03-10 20:29:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:29:06' and `end` < '2025-03-10 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-03-10 20:29:18] Production.INFO: count ==1908 [2025-03-10 20:29:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:29:06 - End Time 2025-03-10 20:29:06 [2025-03-10 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651957', 'tblTempUsageDetail_20' ) start [2025-03-10 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651957', 'tblTempUsageDetail_20' ) end [2025-03-10 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651957', 'tblTempVendorCDR_20' ) start [2025-03-10 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651957', 'tblTempVendorCDR_20' ) end [2025-03-10 20:29:19] Production.INFO: ProcessCDR(1,14651957,1,1,2) [2025-03-10 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651957', 'tblTempUsageDetail_20' ) start [2025-03-10 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651957', 'tblTempUsageDetail_20' ) end [2025-03-10 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:29:24] Production.INFO: ==16256== Releasing lock... [2025-03-10 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:29:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-10 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:30:06 [end_date_ymd] => 2025-03-10 20:30:06 [RateCDR] => 1 ) [2025-03-10 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:30:06' and `end` < '2025-03-10 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:30:18] Production.INFO: count ==1907 [2025-03-10 20:30:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:30:06 - End Time 2025-03-10 20:30:06 [2025-03-10 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651963', 'tblTempUsageDetail_20' ) start [2025-03-10 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651963', 'tblTempUsageDetail_20' ) end [2025-03-10 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651963', 'tblTempVendorCDR_20' ) start [2025-03-10 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651963', 'tblTempVendorCDR_20' ) end [2025-03-10 20:30:19] Production.INFO: ProcessCDR(1,14651963,1,1,2) [2025-03-10 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651963', 'tblTempUsageDetail_20' ) start [2025-03-10 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651963', 'tblTempUsageDetail_20' ) end [2025-03-10 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:30:22] Production.INFO: ==16334== Releasing lock... [2025-03-10 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:30:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-10 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:31:06 [end_date_ymd] => 2025-03-10 20:31:06 [RateCDR] => 1 ) [2025-03-10 20:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:31:06' and `end` < '2025-03-10 20:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:31:18] Production.INFO: count ==1890 [2025-03-10 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:31:06 - End Time 2025-03-10 20:31:06 [2025-03-10 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651968', 'tblTempUsageDetail_20' ) start [2025-03-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651968', 'tblTempUsageDetail_20' ) end [2025-03-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651968', 'tblTempVendorCDR_20' ) start [2025-03-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651968', 'tblTempVendorCDR_20' ) end [2025-03-10 20:31:19] Production.INFO: ProcessCDR(1,14651968,1,1,2) [2025-03-10 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651968', 'tblTempUsageDetail_20' ) start [2025-03-10 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651968', 'tblTempUsageDetail_20' ) end [2025-03-10 20:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:31:24] Production.INFO: ==16411== Releasing lock... [2025-03-10 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:31:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-10 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:32:05 [end_date_ymd] => 2025-03-10 20:32:05 [RateCDR] => 1 ) [2025-03-10 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:32:05' and `end` < '2025-03-10 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:32:18] Production.INFO: count ==1890 [2025-03-10 20:32:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:32:05 - End Time 2025-03-10 20:32:05 [2025-03-10 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651973', 'tblTempUsageDetail_20' ) start [2025-03-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651973', 'tblTempUsageDetail_20' ) end [2025-03-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651973', 'tblTempVendorCDR_20' ) start [2025-03-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651973', 'tblTempVendorCDR_20' ) end [2025-03-10 20:32:18] Production.INFO: ProcessCDR(1,14651973,1,1,2) [2025-03-10 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651973', 'tblTempUsageDetail_20' ) start [2025-03-10 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651973', 'tblTempUsageDetail_20' ) end [2025-03-10 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:32:22] Production.INFO: ==16483== Releasing lock... [2025-03-10 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:32:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-10 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:33:06 [end_date_ymd] => 2025-03-10 20:33:06 [RateCDR] => 1 ) [2025-03-10 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:33:06' and `end` < '2025-03-10 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:33:18] Production.INFO: count ==1892 [2025-03-10 20:33:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:33:06 - End Time 2025-03-10 20:33:06 [2025-03-10 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651978', 'tblTempUsageDetail_20' ) start [2025-03-10 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651978', 'tblTempUsageDetail_20' ) end [2025-03-10 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651978', 'tblTempVendorCDR_20' ) start [2025-03-10 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651978', 'tblTempVendorCDR_20' ) end [2025-03-10 20:33:19] Production.INFO: ProcessCDR(1,14651978,1,1,2) [2025-03-10 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651978', 'tblTempUsageDetail_20' ) start [2025-03-10 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651978', 'tblTempUsageDetail_20' ) end [2025-03-10 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:33:24] Production.INFO: ==16563== Releasing lock... [2025-03-10 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:33:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-10 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:34:05 [end_date_ymd] => 2025-03-10 20:34:05 [RateCDR] => 1 ) [2025-03-10 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:34:05' and `end` < '2025-03-10 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:34:18] Production.INFO: count ==1888 [2025-03-10 20:34:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:34:05 - End Time 2025-03-10 20:34:05 [2025-03-10 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651983', 'tblTempUsageDetail_20' ) start [2025-03-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651983', 'tblTempUsageDetail_20' ) end [2025-03-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651983', 'tblTempVendorCDR_20' ) start [2025-03-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651983', 'tblTempVendorCDR_20' ) end [2025-03-10 20:34:18] Production.INFO: ProcessCDR(1,14651983,1,1,2) [2025-03-10 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651983', 'tblTempUsageDetail_20' ) start [2025-03-10 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651983', 'tblTempUsageDetail_20' ) end [2025-03-10 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:34:24] Production.INFO: ==16643== Releasing lock... [2025-03-10 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:34:24] Production.INFO: 42 MB #Memory Used# [2025-03-10 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:35:05 [end_date_ymd] => 2025-03-10 20:35:05 [RateCDR] => 1 ) [2025-03-10 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:35:05' and `end` < '2025-03-10 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:35:17] Production.INFO: count ==1883 [2025-03-10 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:35:05 - End Time 2025-03-10 20:35:05 [2025-03-10 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651988', 'tblTempUsageDetail_20' ) start [2025-03-10 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651988', 'tblTempUsageDetail_20' ) end [2025-03-10 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651988', 'tblTempVendorCDR_20' ) start [2025-03-10 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651988', 'tblTempVendorCDR_20' ) end [2025-03-10 20:35:18] Production.INFO: ProcessCDR(1,14651988,1,1,2) [2025-03-10 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651988', 'tblTempUsageDetail_20' ) start [2025-03-10 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651988', 'tblTempUsageDetail_20' ) end [2025-03-10 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:35:22] Production.INFO: ==16718== Releasing lock... [2025-03-10 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:35:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-10 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:36:05 [end_date_ymd] => 2025-03-10 20:36:05 [RateCDR] => 1 ) [2025-03-10 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:36:05' and `end` < '2025-03-10 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:36:17] Production.INFO: count ==1882 [2025-03-10 20:36:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:36:05 - End Time 2025-03-10 20:36:05 [2025-03-10 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651993', 'tblTempUsageDetail_20' ) start [2025-03-10 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651993', 'tblTempUsageDetail_20' ) end [2025-03-10 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651993', 'tblTempVendorCDR_20' ) start [2025-03-10 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651993', 'tblTempVendorCDR_20' ) end [2025-03-10 20:36:18] Production.INFO: ProcessCDR(1,14651993,1,1,2) [2025-03-10 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651993', 'tblTempUsageDetail_20' ) start [2025-03-10 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651993', 'tblTempUsageDetail_20' ) end [2025-03-10 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:36:22] Production.INFO: ==16795== Releasing lock... [2025-03-10 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:36:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-10 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:37:06 [end_date_ymd] => 2025-03-10 20:37:06 [RateCDR] => 1 ) [2025-03-10 20:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:37:06' and `end` < '2025-03-10 20:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:37:18] Production.INFO: count ==1870 [2025-03-10 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:37:06 - End Time 2025-03-10 20:37:06 [2025-03-10 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651998', 'tblTempUsageDetail_20' ) start [2025-03-10 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14651998', 'tblTempUsageDetail_20' ) end [2025-03-10 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651998', 'tblTempVendorCDR_20' ) start [2025-03-10 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14651998', 'tblTempVendorCDR_20' ) end [2025-03-10 20:37:19] Production.INFO: ProcessCDR(1,14651998,1,1,2) [2025-03-10 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14651998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14651998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14651998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14651998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651998', 'tblTempUsageDetail_20' ) start [2025-03-10 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14651998', 'tblTempUsageDetail_20' ) end [2025-03-10 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:37:23] Production.INFO: ==16878== Releasing lock... [2025-03-10 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:37:23] Production.INFO: 42 MB #Memory Used# [2025-03-10 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:38:06 [end_date_ymd] => 2025-03-10 20:38:06 [RateCDR] => 1 ) [2025-03-10 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:38:06' and `end` < '2025-03-10 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:38:18] Production.INFO: count ==1864 [2025-03-10 20:38:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:38:06 - End Time 2025-03-10 20:38:06 [2025-03-10 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652003', 'tblTempUsageDetail_20' ) start [2025-03-10 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652003', 'tblTempUsageDetail_20' ) end [2025-03-10 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652003', 'tblTempVendorCDR_20' ) start [2025-03-10 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652003', 'tblTempVendorCDR_20' ) end [2025-03-10 20:38:19] Production.INFO: ProcessCDR(1,14652003,1,1,2) [2025-03-10 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652003', 'tblTempUsageDetail_20' ) start [2025-03-10 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652003', 'tblTempUsageDetail_20' ) end [2025-03-10 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:38:22] Production.INFO: ==16955== Releasing lock... [2025-03-10 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:38:22] Production.INFO: 42 MB #Memory Used# [2025-03-10 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:39:06 [end_date_ymd] => 2025-03-10 20:39:06 [RateCDR] => 1 ) [2025-03-10 20:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:39:06' and `end` < '2025-03-10 20:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:39:18] Production.INFO: count ==1856 [2025-03-10 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:39:06 - End Time 2025-03-10 20:39:06 [2025-03-10 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652008', 'tblTempUsageDetail_20' ) start [2025-03-10 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652008', 'tblTempUsageDetail_20' ) end [2025-03-10 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652008', 'tblTempVendorCDR_20' ) start [2025-03-10 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652008', 'tblTempVendorCDR_20' ) end [2025-03-10 20:39:18] Production.INFO: ProcessCDR(1,14652008,1,1,2) [2025-03-10 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652008', 'tblTempUsageDetail_20' ) start [2025-03-10 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652008', 'tblTempUsageDetail_20' ) end [2025-03-10 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:39:22] Production.INFO: ==17030== Releasing lock... [2025-03-10 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:39:22] Production.INFO: 42 MB #Memory Used# [2025-03-10 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:40:06 [end_date_ymd] => 2025-03-10 20:40:06 [RateCDR] => 1 ) [2025-03-10 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:40:06' and `end` < '2025-03-10 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:40:18] Production.INFO: count ==1856 [2025-03-10 20:40:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:40:06 - End Time 2025-03-10 20:40:06 [2025-03-10 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652013', 'tblTempUsageDetail_20' ) start [2025-03-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652013', 'tblTempUsageDetail_20' ) end [2025-03-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652013', 'tblTempVendorCDR_20' ) start [2025-03-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652013', 'tblTempVendorCDR_20' ) end [2025-03-10 20:40:19] Production.INFO: ProcessCDR(1,14652013,1,1,2) [2025-03-10 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652013', 'tblTempUsageDetail_20' ) start [2025-03-10 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652013', 'tblTempUsageDetail_20' ) end [2025-03-10 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:40:22] Production.INFO: ==17108== Releasing lock... [2025-03-10 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:40:22] Production.INFO: 42 MB #Memory Used# [2025-03-10 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:41:05 [end_date_ymd] => 2025-03-10 20:41:05 [RateCDR] => 1 ) [2025-03-10 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:41:05' and `end` < '2025-03-10 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:41:18] Production.INFO: count ==1809 [2025-03-10 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:41:05 - End Time 2025-03-10 20:41:05 [2025-03-10 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652019', 'tblTempUsageDetail_20' ) start [2025-03-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652019', 'tblTempUsageDetail_20' ) end [2025-03-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652019', 'tblTempVendorCDR_20' ) start [2025-03-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652019', 'tblTempVendorCDR_20' ) end [2025-03-10 20:41:18] Production.INFO: ProcessCDR(1,14652019,1,1,2) [2025-03-10 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652019', 'tblTempUsageDetail_20' ) start [2025-03-10 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652019', 'tblTempUsageDetail_20' ) end [2025-03-10 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:41:22] Production.INFO: ==17189== Releasing lock... [2025-03-10 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:41:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-10 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:42:05 [end_date_ymd] => 2025-03-10 20:42:05 [RateCDR] => 1 ) [2025-03-10 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:42:05' and `end` < '2025-03-10 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:42:17] Production.INFO: count ==1805 [2025-03-10 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:42:05 - End Time 2025-03-10 20:42:05 [2025-03-10 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652024', 'tblTempUsageDetail_20' ) start [2025-03-10 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652024', 'tblTempUsageDetail_20' ) end [2025-03-10 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652024', 'tblTempVendorCDR_20' ) start [2025-03-10 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652024', 'tblTempVendorCDR_20' ) end [2025-03-10 20:42:18] Production.INFO: ProcessCDR(1,14652024,1,1,2) [2025-03-10 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652024', 'tblTempUsageDetail_20' ) start [2025-03-10 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652024', 'tblTempUsageDetail_20' ) end [2025-03-10 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:42:22] Production.INFO: ==17261== Releasing lock... [2025-03-10 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:42:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-10 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:43:05 [end_date_ymd] => 2025-03-10 20:43:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:43:05' and `end` < '2025-03-10 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-03-10 20:43:18] Production.INFO: count ==1791 [2025-03-10 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:43:05 - End Time 2025-03-10 20:43:05 [2025-03-10 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652029', 'tblTempUsageDetail_20' ) start [2025-03-10 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652029', 'tblTempUsageDetail_20' ) end [2025-03-10 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652029', 'tblTempVendorCDR_20' ) start [2025-03-10 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652029', 'tblTempVendorCDR_20' ) end [2025-03-10 20:43:18] Production.INFO: ProcessCDR(1,14652029,1,1,2) [2025-03-10 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652029', 'tblTempUsageDetail_20' ) start [2025-03-10 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652029', 'tblTempUsageDetail_20' ) end [2025-03-10 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:43:22] Production.INFO: ==17342== Releasing lock... [2025-03-10 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:43:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-10 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:44:05 [end_date_ymd] => 2025-03-10 20:44:05 [RateCDR] => 1 ) [2025-03-10 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:44:05' and `end` < '2025-03-10 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:44:17] Production.INFO: count ==1791 [2025-03-10 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:44:05 - End Time 2025-03-10 20:44:05 [2025-03-10 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652034', 'tblTempUsageDetail_20' ) start [2025-03-10 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652034', 'tblTempUsageDetail_20' ) end [2025-03-10 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652034', 'tblTempVendorCDR_20' ) start [2025-03-10 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652034', 'tblTempVendorCDR_20' ) end [2025-03-10 20:44:18] Production.INFO: ProcessCDR(1,14652034,1,1,2) [2025-03-10 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652034', 'tblTempUsageDetail_20' ) start [2025-03-10 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652034', 'tblTempUsageDetail_20' ) end [2025-03-10 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:44:21] Production.INFO: ==17459== Releasing lock... [2025-03-10 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:44:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-10 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:45:05 [end_date_ymd] => 2025-03-10 20:45:05 [RateCDR] => 1 ) [2025-03-10 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:45:05' and `end` < '2025-03-10 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:45:18] Production.INFO: count ==1778 [2025-03-10 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:45:05 - End Time 2025-03-10 20:45:05 [2025-03-10 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652039', 'tblTempUsageDetail_20' ) start [2025-03-10 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652039', 'tblTempUsageDetail_20' ) end [2025-03-10 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652039', 'tblTempVendorCDR_20' ) start [2025-03-10 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652039', 'tblTempVendorCDR_20' ) end [2025-03-10 20:45:19] Production.INFO: ProcessCDR(1,14652039,1,1,2) [2025-03-10 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652039', 'tblTempUsageDetail_20' ) start [2025-03-10 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652039', 'tblTempUsageDetail_20' ) end [2025-03-10 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:45:22] Production.INFO: ==17533== Releasing lock... [2025-03-10 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:45:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-10 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:46:05 [end_date_ymd] => 2025-03-10 20:46:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:46:05' and `end` < '2025-03-10 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-03-10 20:46:18] Production.INFO: count ==1781 [2025-03-10 20:46:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:46:05 - End Time 2025-03-10 20:46:05 [2025-03-10 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652044', 'tblTempUsageDetail_20' ) start [2025-03-10 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652044', 'tblTempUsageDetail_20' ) end [2025-03-10 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652044', 'tblTempVendorCDR_20' ) start [2025-03-10 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652044', 'tblTempVendorCDR_20' ) end [2025-03-10 20:46:18] Production.INFO: ProcessCDR(1,14652044,1,1,2) [2025-03-10 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652044', 'tblTempUsageDetail_20' ) start [2025-03-10 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652044', 'tblTempUsageDetail_20' ) end [2025-03-10 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:46:22] Production.INFO: ==17612== Releasing lock... [2025-03-10 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:46:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-10 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:47:06 [end_date_ymd] => 2025-03-10 20:47:06 [RateCDR] => 1 ) [2025-03-10 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:47:06' and `end` < '2025-03-10 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:47:18] Production.INFO: count ==1779 [2025-03-10 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:47:06 - End Time 2025-03-10 20:47:06 [2025-03-10 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652049', 'tblTempUsageDetail_20' ) start [2025-03-10 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652049', 'tblTempUsageDetail_20' ) end [2025-03-10 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652049', 'tblTempVendorCDR_20' ) start [2025-03-10 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652049', 'tblTempVendorCDR_20' ) end [2025-03-10 20:47:19] Production.INFO: ProcessCDR(1,14652049,1,1,2) [2025-03-10 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652049', 'tblTempUsageDetail_20' ) start [2025-03-10 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652049', 'tblTempUsageDetail_20' ) end [2025-03-10 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:47:23] Production.INFO: ==17691== Releasing lock... [2025-03-10 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:47:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-10 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:48:05 [end_date_ymd] => 2025-03-10 20:48:05 [RateCDR] => 1 ) [2025-03-10 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:48:05' and `end` < '2025-03-10 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:48:17] Production.INFO: count ==1772 [2025-03-10 20:48:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:48:05 - End Time 2025-03-10 20:48:05 [2025-03-10 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652054', 'tblTempUsageDetail_20' ) start [2025-03-10 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652054', 'tblTempUsageDetail_20' ) end [2025-03-10 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652054', 'tblTempVendorCDR_20' ) start [2025-03-10 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652054', 'tblTempVendorCDR_20' ) end [2025-03-10 20:48:18] Production.INFO: ProcessCDR(1,14652054,1,1,2) [2025-03-10 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652054', 'tblTempUsageDetail_20' ) start [2025-03-10 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652054', 'tblTempUsageDetail_20' ) end [2025-03-10 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:48:22] Production.INFO: ==17768== Releasing lock... [2025-03-10 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:48:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-10 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:49:05 [end_date_ymd] => 2025-03-10 20:49:05 [RateCDR] => 1 ) [2025-03-10 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:49:05' and `end` < '2025-03-10 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:49:18] Production.INFO: count ==1776 [2025-03-10 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:49:05 - End Time 2025-03-10 20:49:05 [2025-03-10 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652059', 'tblTempUsageDetail_20' ) start [2025-03-10 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652059', 'tblTempUsageDetail_20' ) end [2025-03-10 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652059', 'tblTempVendorCDR_20' ) start [2025-03-10 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652059', 'tblTempVendorCDR_20' ) end [2025-03-10 20:49:18] Production.INFO: ProcessCDR(1,14652059,1,1,2) [2025-03-10 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652059', 'tblTempUsageDetail_20' ) start [2025-03-10 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652059', 'tblTempUsageDetail_20' ) end [2025-03-10 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:49:22] Production.INFO: ==17845== Releasing lock... [2025-03-10 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:49:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-10 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:50:06 [end_date_ymd] => 2025-03-10 20:50:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:50:06' and `end` < '2025-03-10 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-03-10 20:50:18] Production.INFO: count ==1773 [2025-03-10 20:50:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:50:06 - End Time 2025-03-10 20:50:06 [2025-03-10 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652064', 'tblTempUsageDetail_20' ) start [2025-03-10 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652064', 'tblTempUsageDetail_20' ) end [2025-03-10 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652064', 'tblTempVendorCDR_20' ) start [2025-03-10 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652064', 'tblTempVendorCDR_20' ) end [2025-03-10 20:50:19] Production.INFO: ProcessCDR(1,14652064,1,1,2) [2025-03-10 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652064', 'tblTempUsageDetail_20' ) start [2025-03-10 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652064', 'tblTempUsageDetail_20' ) end [2025-03-10 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:50:22] Production.INFO: ==17925== Releasing lock... [2025-03-10 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:50:22] Production.INFO: 41 MB #Memory Used# [2025-03-10 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:51:06 [end_date_ymd] => 2025-03-10 20:51:06 [RateCDR] => 1 ) [2025-03-10 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:51:06' and `end` < '2025-03-10 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:51:18] Production.INFO: count ==1727 [2025-03-10 20:51:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:51:06 - End Time 2025-03-10 20:51:06 [2025-03-10 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652070', 'tblTempUsageDetail_20' ) start [2025-03-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652070', 'tblTempUsageDetail_20' ) end [2025-03-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652070', 'tblTempVendorCDR_20' ) start [2025-03-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652070', 'tblTempVendorCDR_20' ) end [2025-03-10 20:51:19] Production.INFO: ProcessCDR(1,14652070,1,1,2) [2025-03-10 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652070', 'tblTempUsageDetail_20' ) start [2025-03-10 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652070', 'tblTempUsageDetail_20' ) end [2025-03-10 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:51:22] Production.INFO: ==18002== Releasing lock... [2025-03-10 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:51:22] Production.INFO: 41 MB #Memory Used# [2025-03-10 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:52:05 [end_date_ymd] => 2025-03-10 20:52:05 [RateCDR] => 1 ) [2025-03-10 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:52:05' and `end` < '2025-03-10 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:52:17] Production.INFO: count ==1721 [2025-03-10 20:52:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:52:05 - End Time 2025-03-10 20:52:05 [2025-03-10 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652075', 'tblTempUsageDetail_20' ) start [2025-03-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652075', 'tblTempUsageDetail_20' ) end [2025-03-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652075', 'tblTempVendorCDR_20' ) start [2025-03-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652075', 'tblTempVendorCDR_20' ) end [2025-03-10 20:52:18] Production.INFO: ProcessCDR(1,14652075,1,1,2) [2025-03-10 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652075', 'tblTempUsageDetail_20' ) start [2025-03-10 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652075', 'tblTempUsageDetail_20' ) end [2025-03-10 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:52:22] Production.INFO: ==18084== Releasing lock... [2025-03-10 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:52:22] Production.INFO: 41 MB #Memory Used# [2025-03-10 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:53:06 [end_date_ymd] => 2025-03-10 20:53:06 [RateCDR] => 1 ) [2025-03-10 20:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:53:06' and `end` < '2025-03-10 20:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:53:18] Production.INFO: count ==1712 [2025-03-10 20:53:19] Production.ERROR: pbx CDR StartTime 2025-03-10 17:53:06 - End Time 2025-03-10 20:53:06 [2025-03-10 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652080', 'tblTempUsageDetail_20' ) start [2025-03-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652080', 'tblTempUsageDetail_20' ) end [2025-03-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652080', 'tblTempVendorCDR_20' ) start [2025-03-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652080', 'tblTempVendorCDR_20' ) end [2025-03-10 20:53:19] Production.INFO: ProcessCDR(1,14652080,1,1,2) [2025-03-10 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652080', 'tblTempUsageDetail_20' ) start [2025-03-10 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652080', 'tblTempUsageDetail_20' ) end [2025-03-10 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:53:22] Production.INFO: ==18164== Releasing lock... [2025-03-10 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:53:22] Production.INFO: 41 MB #Memory Used# [2025-03-10 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:54:05 [end_date_ymd] => 2025-03-10 20:54:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 17:54:05' and `end` < '2025-03-10 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-03-10 20:54:17] Production.INFO: count ==1703 [2025-03-10 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:54:05 - End Time 2025-03-10 20:54:05 [2025-03-10 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652085', 'tblTempUsageDetail_20' ) start [2025-03-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652085', 'tblTempUsageDetail_20' ) end [2025-03-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652085', 'tblTempVendorCDR_20' ) start [2025-03-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652085', 'tblTempVendorCDR_20' ) end [2025-03-10 20:54:18] Production.INFO: ProcessCDR(1,14652085,1,1,2) [2025-03-10 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652085', 'tblTempUsageDetail_20' ) start [2025-03-10 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652085', 'tblTempUsageDetail_20' ) end [2025-03-10 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:54:22] Production.INFO: ==18239== Releasing lock... [2025-03-10 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:54:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-10 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:55:05 [end_date_ymd] => 2025-03-10 20:55:05 [RateCDR] => 1 ) [2025-03-10 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:55:05' and `end` < '2025-03-10 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:55:18] Production.INFO: count ==1692 [2025-03-10 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:55:05 - End Time 2025-03-10 20:55:05 [2025-03-10 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652090', 'tblTempUsageDetail_20' ) start [2025-03-10 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652090', 'tblTempUsageDetail_20' ) end [2025-03-10 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652090', 'tblTempVendorCDR_20' ) start [2025-03-10 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652090', 'tblTempVendorCDR_20' ) end [2025-03-10 20:55:18] Production.INFO: ProcessCDR(1,14652090,1,1,2) [2025-03-10 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652090', 'tblTempUsageDetail_20' ) start [2025-03-10 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652090', 'tblTempUsageDetail_20' ) end [2025-03-10 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:55:22] Production.INFO: ==18316== Releasing lock... [2025-03-10 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:55:22] Production.INFO: 41 MB #Memory Used# [2025-03-10 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:56:05 [end_date_ymd] => 2025-03-10 20:56:05 [RateCDR] => 1 ) [2025-03-10 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:56:05' and `end` < '2025-03-10 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:56:17] Production.INFO: count ==1691 [2025-03-10 20:56:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:56:05 - End Time 2025-03-10 20:56:05 [2025-03-10 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652095', 'tblTempUsageDetail_20' ) start [2025-03-10 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652095', 'tblTempUsageDetail_20' ) end [2025-03-10 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652095', 'tblTempVendorCDR_20' ) start [2025-03-10 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652095', 'tblTempVendorCDR_20' ) end [2025-03-10 20:56:18] Production.INFO: ProcessCDR(1,14652095,1,1,2) [2025-03-10 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652095', 'tblTempUsageDetail_20' ) start [2025-03-10 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652095', 'tblTempUsageDetail_20' ) end [2025-03-10 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:56:21] Production.INFO: ==18398== Releasing lock... [2025-03-10 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:56:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-10 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:57:05 [end_date_ymd] => 2025-03-10 20:57:05 [RateCDR] => 1 ) [2025-03-10 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:57:05' and `end` < '2025-03-10 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:57:17] Production.INFO: count ==1666 [2025-03-10 20:57:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:57:05 - End Time 2025-03-10 20:57:05 [2025-03-10 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652100', 'tblTempUsageDetail_20' ) start [2025-03-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652100', 'tblTempUsageDetail_20' ) end [2025-03-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652100', 'tblTempVendorCDR_20' ) start [2025-03-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652100', 'tblTempVendorCDR_20' ) end [2025-03-10 20:57:18] Production.INFO: ProcessCDR(1,14652100,1,1,2) [2025-03-10 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652100', 'tblTempUsageDetail_20' ) start [2025-03-10 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652100', 'tblTempUsageDetail_20' ) end [2025-03-10 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:57:21] Production.INFO: ==18473== Releasing lock... [2025-03-10 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:57:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-10 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:58:05 [end_date_ymd] => 2025-03-10 20:58:05 [RateCDR] => 1 ) [2025-03-10 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:58:05' and `end` < '2025-03-10 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:58:17] Production.INFO: count ==1663 [2025-03-10 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:58:05 - End Time 2025-03-10 20:58:05 [2025-03-10 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652105', 'tblTempUsageDetail_20' ) start [2025-03-10 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652105', 'tblTempUsageDetail_20' ) end [2025-03-10 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652105', 'tblTempVendorCDR_20' ) start [2025-03-10 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652105', 'tblTempVendorCDR_20' ) end [2025-03-10 20:58:18] Production.INFO: ProcessCDR(1,14652105,1,1,2) [2025-03-10 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652105', 'tblTempUsageDetail_20' ) start [2025-03-10 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652105', 'tblTempUsageDetail_20' ) end [2025-03-10 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:58:21] Production.INFO: ==18546== Releasing lock... [2025-03-10 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:58:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-10 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 17:59:05 [end_date_ymd] => 2025-03-10 20:59:05 [RateCDR] => 1 ) [2025-03-10 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 17:59:05' and `end` < '2025-03-10 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 20:59:18] Production.INFO: count ==1634 [2025-03-10 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-10 17:59:05 - End Time 2025-03-10 20:59:05 [2025-03-10 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652110', 'tblTempUsageDetail_20' ) start [2025-03-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652110', 'tblTempUsageDetail_20' ) end [2025-03-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652110', 'tblTempVendorCDR_20' ) start [2025-03-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652110', 'tblTempVendorCDR_20' ) end [2025-03-10 20:59:18] Production.INFO: ProcessCDR(1,14652110,1,1,2) [2025-03-10 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652110', 'tblTempUsageDetail_20' ) start [2025-03-10 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652110', 'tblTempUsageDetail_20' ) end [2025-03-10 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 20:59:23] Production.INFO: ==18626== Releasing lock... [2025-03-10 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 20:59:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-10 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:00:07 [end_date_ymd] => 2025-03-10 21:00:07 [RateCDR] => 1 ) [2025-03-10 21:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:00:07' and `end` < '2025-03-10 21:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:00:19] Production.INFO: count ==1629 [2025-03-10 21:00:20] Production.ERROR: pbx CDR StartTime 2025-03-10 18:00:07 - End Time 2025-03-10 21:00:07 [2025-03-10 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652116', 'tblTempUsageDetail_20' ) start [2025-03-10 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652116', 'tblTempUsageDetail_20' ) end [2025-03-10 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652116', 'tblTempVendorCDR_20' ) start [2025-03-10 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652116', 'tblTempVendorCDR_20' ) end [2025-03-10 21:00:20] Production.INFO: ProcessCDR(1,14652116,1,1,2) [2025-03-10 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652116', 'tblTempUsageDetail_20' ) start [2025-03-10 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652116', 'tblTempUsageDetail_20' ) end [2025-03-10 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:00:25] Production.INFO: ==18751== Releasing lock... [2025-03-10 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:00:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-10 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:01:05 [end_date_ymd] => 2025-03-10 21:01:05 [RateCDR] => 1 ) [2025-03-10 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:01:05' and `end` < '2025-03-10 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:01:18] Production.INFO: count ==1554 [2025-03-10 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:01:05 - End Time 2025-03-10 21:01:05 [2025-03-10 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652121', 'tblTempUsageDetail_20' ) start [2025-03-10 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652121', 'tblTempUsageDetail_20' ) end [2025-03-10 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652121', 'tblTempVendorCDR_20' ) start [2025-03-10 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652121', 'tblTempVendorCDR_20' ) end [2025-03-10 21:01:18] Production.INFO: ProcessCDR(1,14652121,1,1,2) [2025-03-10 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652121', 'tblTempUsageDetail_20' ) start [2025-03-10 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652121', 'tblTempUsageDetail_20' ) end [2025-03-10 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:01:22] Production.INFO: ==18839== Releasing lock... [2025-03-10 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:01:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-10 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:02:06 [end_date_ymd] => 2025-03-10 21:02:06 [RateCDR] => 1 ) [2025-03-10 21:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:02:06' and `end` < '2025-03-10 21:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:02:18] Production.INFO: count ==1550 [2025-03-10 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:02:06 - End Time 2025-03-10 21:02:06 [2025-03-10 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652126', 'tblTempUsageDetail_20' ) start [2025-03-10 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652126', 'tblTempUsageDetail_20' ) end [2025-03-10 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652126', 'tblTempVendorCDR_20' ) start [2025-03-10 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652126', 'tblTempVendorCDR_20' ) end [2025-03-10 21:02:19] Production.INFO: ProcessCDR(1,14652126,1,1,2) [2025-03-10 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652126', 'tblTempUsageDetail_20' ) start [2025-03-10 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652126', 'tblTempUsageDetail_20' ) end [2025-03-10 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:02:22] Production.INFO: ==18916== Releasing lock... [2025-03-10 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:02:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-10 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:03:06 [end_date_ymd] => 2025-03-10 21:03:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:03:06' and `end` < '2025-03-10 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-03-10 21:03:18] Production.INFO: count ==1545 [2025-03-10 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:03:06 - End Time 2025-03-10 21:03:06 [2025-03-10 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652131', 'tblTempUsageDetail_20' ) start [2025-03-10 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652131', 'tblTempUsageDetail_20' ) end [2025-03-10 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652131', 'tblTempVendorCDR_20' ) start [2025-03-10 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652131', 'tblTempVendorCDR_20' ) end [2025-03-10 21:03:18] Production.INFO: ProcessCDR(1,14652131,1,1,2) [2025-03-10 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652131', 'tblTempUsageDetail_20' ) start [2025-03-10 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652131', 'tblTempUsageDetail_20' ) end [2025-03-10 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:03:22] Production.INFO: ==18994== Releasing lock... [2025-03-10 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:03:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-10 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:04:06 [end_date_ymd] => 2025-03-10 21:04:06 [RateCDR] => 1 ) [2025-03-10 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:04:06' and `end` < '2025-03-10 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:04:18] Production.INFO: count ==1541 [2025-03-10 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:04:06 - End Time 2025-03-10 21:04:06 [2025-03-10 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652136', 'tblTempUsageDetail_20' ) start [2025-03-10 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652136', 'tblTempUsageDetail_20' ) end [2025-03-10 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652136', 'tblTempVendorCDR_20' ) start [2025-03-10 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652136', 'tblTempVendorCDR_20' ) end [2025-03-10 21:04:18] Production.INFO: ProcessCDR(1,14652136,1,1,2) [2025-03-10 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652136', 'tblTempUsageDetail_20' ) start [2025-03-10 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652136', 'tblTempUsageDetail_20' ) end [2025-03-10 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:04:22] Production.INFO: ==19070== Releasing lock... [2025-03-10 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:04:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-10 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:05:05 [end_date_ymd] => 2025-03-10 21:05:05 [RateCDR] => 1 ) [2025-03-10 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:05:05' and `end` < '2025-03-10 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:05:17] Production.INFO: count ==1537 [2025-03-10 21:05:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:05:05 - End Time 2025-03-10 21:05:05 [2025-03-10 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652141', 'tblTempUsageDetail_20' ) start [2025-03-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652141', 'tblTempUsageDetail_20' ) end [2025-03-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652141', 'tblTempVendorCDR_20' ) start [2025-03-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652141', 'tblTempVendorCDR_20' ) end [2025-03-10 21:05:18] Production.INFO: ProcessCDR(1,14652141,1,1,2) [2025-03-10 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652141', 'tblTempUsageDetail_20' ) start [2025-03-10 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652141', 'tblTempUsageDetail_20' ) end [2025-03-10 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:05:21] Production.INFO: ==19152== Releasing lock... [2025-03-10 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:05:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-10 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:06:06 [end_date_ymd] => 2025-03-10 21:06:06 [RateCDR] => 1 ) [2025-03-10 21:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:06:06' and `end` < '2025-03-10 21:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:06:18] Production.INFO: count ==1539 [2025-03-10 21:06:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:06:06 - End Time 2025-03-10 21:06:06 [2025-03-10 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652146', 'tblTempUsageDetail_20' ) start [2025-03-10 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652146', 'tblTempUsageDetail_20' ) end [2025-03-10 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652146', 'tblTempVendorCDR_20' ) start [2025-03-10 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652146', 'tblTempVendorCDR_20' ) end [2025-03-10 21:06:18] Production.INFO: ProcessCDR(1,14652146,1,1,2) [2025-03-10 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652146', 'tblTempUsageDetail_20' ) start [2025-03-10 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652146', 'tblTempUsageDetail_20' ) end [2025-03-10 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:06:22] Production.INFO: ==19227== Releasing lock... [2025-03-10 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:06:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-10 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:07:05 [end_date_ymd] => 2025-03-10 21:07:05 [RateCDR] => 1 ) [2025-03-10 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:07:05' and `end` < '2025-03-10 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:07:17] Production.INFO: count ==1538 [2025-03-10 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:07:05 - End Time 2025-03-10 21:07:05 [2025-03-10 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652151', 'tblTempUsageDetail_20' ) start [2025-03-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652151', 'tblTempUsageDetail_20' ) end [2025-03-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652151', 'tblTempVendorCDR_20' ) start [2025-03-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652151', 'tblTempVendorCDR_20' ) end [2025-03-10 21:07:18] Production.INFO: ProcessCDR(1,14652151,1,1,2) [2025-03-10 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652151', 'tblTempUsageDetail_20' ) start [2025-03-10 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652151', 'tblTempUsageDetail_20' ) end [2025-03-10 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:07:21] Production.INFO: ==19303== Releasing lock... [2025-03-10 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:07:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-10 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:08:06 [end_date_ymd] => 2025-03-10 21:08:06 [RateCDR] => 1 ) [2025-03-10 21:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:08:06' and `end` < '2025-03-10 21:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:08:18] Production.INFO: count ==1536 [2025-03-10 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:08:06 - End Time 2025-03-10 21:08:06 [2025-03-10 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652156', 'tblTempUsageDetail_20' ) start [2025-03-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652156', 'tblTempUsageDetail_20' ) end [2025-03-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652156', 'tblTempVendorCDR_20' ) start [2025-03-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652156', 'tblTempVendorCDR_20' ) end [2025-03-10 21:08:18] Production.INFO: ProcessCDR(1,14652156,1,1,2) [2025-03-10 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652156', 'tblTempUsageDetail_20' ) start [2025-03-10 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652156', 'tblTempUsageDetail_20' ) end [2025-03-10 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:08:22] Production.INFO: ==19385== Releasing lock... [2025-03-10 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:08:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-10 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:09:06 [end_date_ymd] => 2025-03-10 21:09:06 [RateCDR] => 1 ) [2025-03-10 21:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:09:06' and `end` < '2025-03-10 21:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:09:18] Production.INFO: count ==1529 [2025-03-10 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:09:06 - End Time 2025-03-10 21:09:06 [2025-03-10 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652161', 'tblTempUsageDetail_20' ) start [2025-03-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652161', 'tblTempUsageDetail_20' ) end [2025-03-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652161', 'tblTempVendorCDR_20' ) start [2025-03-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652161', 'tblTempVendorCDR_20' ) end [2025-03-10 21:09:18] Production.INFO: ProcessCDR(1,14652161,1,1,2) [2025-03-10 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652161', 'tblTempUsageDetail_20' ) start [2025-03-10 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652161', 'tblTempUsageDetail_20' ) end [2025-03-10 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:09:22] Production.INFO: ==19466== Releasing lock... [2025-03-10 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:09:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-10 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:10:06 [end_date_ymd] => 2025-03-10 21:10:06 [RateCDR] => 1 ) [2025-03-10 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:10:06' and `end` < '2025-03-10 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:10:18] Production.INFO: count ==1520 [2025-03-10 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-10 18:10:06 - End Time 2025-03-10 21:10:06 [2025-03-10 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652167', 'tblTempUsageDetail_20' ) start [2025-03-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652167', 'tblTempUsageDetail_20' ) end [2025-03-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652167', 'tblTempVendorCDR_20' ) start [2025-03-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652167', 'tblTempVendorCDR_20' ) end [2025-03-10 21:10:19] Production.INFO: ProcessCDR(1,14652167,1,1,2) [2025-03-10 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652167', 'tblTempUsageDetail_20' ) start [2025-03-10 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652167', 'tblTempUsageDetail_20' ) end [2025-03-10 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:10:22] Production.INFO: ==19543== Releasing lock... [2025-03-10 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:10:22] Production.INFO: 40 MB #Memory Used# [2025-03-10 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:11:06 [end_date_ymd] => 2025-03-10 21:11:06 [RateCDR] => 1 ) [2025-03-10 21:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:11:06' and `end` < '2025-03-10 21:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:11:18] Production.INFO: count ==1493 [2025-03-10 21:11:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:11:06 - End Time 2025-03-10 21:11:06 [2025-03-10 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652172', 'tblTempUsageDetail_20' ) start [2025-03-10 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652172', 'tblTempUsageDetail_20' ) end [2025-03-10 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652172', 'tblTempVendorCDR_20' ) start [2025-03-10 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652172', 'tblTempVendorCDR_20' ) end [2025-03-10 21:11:18] Production.INFO: ProcessCDR(1,14652172,1,1,2) [2025-03-10 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652172', 'tblTempUsageDetail_20' ) start [2025-03-10 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652172', 'tblTempUsageDetail_20' ) end [2025-03-10 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:11:22] Production.INFO: ==19627== Releasing lock... [2025-03-10 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:11:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-10 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:12:06 [end_date_ymd] => 2025-03-10 21:12:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:12:06' and `end` < '2025-03-10 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-03-10 21:12:18] Production.INFO: count ==1481 [2025-03-10 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:12:06 - End Time 2025-03-10 21:12:06 [2025-03-10 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652177', 'tblTempUsageDetail_20' ) start [2025-03-10 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652177', 'tblTempUsageDetail_20' ) end [2025-03-10 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652177', 'tblTempVendorCDR_20' ) start [2025-03-10 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652177', 'tblTempVendorCDR_20' ) end [2025-03-10 21:12:19] Production.INFO: ProcessCDR(1,14652177,1,1,2) [2025-03-10 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652177', 'tblTempUsageDetail_20' ) start [2025-03-10 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652177', 'tblTempUsageDetail_20' ) end [2025-03-10 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:12:22] Production.INFO: ==19703== Releasing lock... [2025-03-10 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:12:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-10 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:13:05 [end_date_ymd] => 2025-03-10 21:13:05 [RateCDR] => 1 ) [2025-03-10 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:13:05' and `end` < '2025-03-10 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:13:17] Production.INFO: count ==1478 [2025-03-10 21:13:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:13:05 - End Time 2025-03-10 21:13:05 [2025-03-10 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652182', 'tblTempUsageDetail_20' ) start [2025-03-10 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652182', 'tblTempUsageDetail_20' ) end [2025-03-10 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652182', 'tblTempVendorCDR_20' ) start [2025-03-10 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652182', 'tblTempVendorCDR_20' ) end [2025-03-10 21:13:18] Production.INFO: ProcessCDR(1,14652182,1,1,2) [2025-03-10 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652182', 'tblTempUsageDetail_20' ) start [2025-03-10 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652182', 'tblTempUsageDetail_20' ) end [2025-03-10 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:13:22] Production.INFO: ==19781== Releasing lock... [2025-03-10 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:13:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-10 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:14:05 [end_date_ymd] => 2025-03-10 21:14:05 [RateCDR] => 1 ) [2025-03-10 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:14:05' and `end` < '2025-03-10 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:14:18] Production.INFO: count ==1471 [2025-03-10 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:14:05 - End Time 2025-03-10 21:14:05 [2025-03-10 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652187', 'tblTempUsageDetail_20' ) start [2025-03-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652187', 'tblTempUsageDetail_20' ) end [2025-03-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652187', 'tblTempVendorCDR_20' ) start [2025-03-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652187', 'tblTempVendorCDR_20' ) end [2025-03-10 21:14:18] Production.INFO: ProcessCDR(1,14652187,1,1,2) [2025-03-10 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652187', 'tblTempUsageDetail_20' ) start [2025-03-10 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652187', 'tblTempUsageDetail_20' ) end [2025-03-10 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:14:21] Production.INFO: ==19856== Releasing lock... [2025-03-10 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:14:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-10 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:15:05 [end_date_ymd] => 2025-03-10 21:15:05 [RateCDR] => 1 ) [2025-03-10 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:15:05' and `end` < '2025-03-10 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:15:17] Production.INFO: count ==1469 [2025-03-10 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:15:05 - End Time 2025-03-10 21:15:05 [2025-03-10 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652192', 'tblTempUsageDetail_20' ) start [2025-03-10 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652192', 'tblTempUsageDetail_20' ) end [2025-03-10 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652192', 'tblTempVendorCDR_20' ) start [2025-03-10 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652192', 'tblTempVendorCDR_20' ) end [2025-03-10 21:15:18] Production.INFO: ProcessCDR(1,14652192,1,1,2) [2025-03-10 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652192', 'tblTempUsageDetail_20' ) start [2025-03-10 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652192', 'tblTempUsageDetail_20' ) end [2025-03-10 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:15:21] Production.INFO: ==19975== Releasing lock... [2025-03-10 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:15:21] Production.INFO: 39 MB #Memory Used# [2025-03-10 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:16:06 [end_date_ymd] => 2025-03-10 21:16:06 [RateCDR] => 1 ) [2025-03-10 21:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:16:06' and `end` < '2025-03-10 21:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:16:19] Production.INFO: count ==1468 [2025-03-10 21:16:19] Production.ERROR: pbx CDR StartTime 2025-03-10 18:16:06 - End Time 2025-03-10 21:16:06 [2025-03-10 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652197', 'tblTempUsageDetail_20' ) start [2025-03-10 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652197', 'tblTempUsageDetail_20' ) end [2025-03-10 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652197', 'tblTempVendorCDR_20' ) start [2025-03-10 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652197', 'tblTempVendorCDR_20' ) end [2025-03-10 21:16:19] Production.INFO: ProcessCDR(1,14652197,1,1,2) [2025-03-10 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652197', 'tblTempUsageDetail_20' ) start [2025-03-10 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652197', 'tblTempUsageDetail_20' ) end [2025-03-10 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:16:22] Production.INFO: ==20048== Releasing lock... [2025-03-10 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:16:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-10 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:17:05 [end_date_ymd] => 2025-03-10 21:17:05 [RateCDR] => 1 ) [2025-03-10 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:17:05' and `end` < '2025-03-10 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:17:17] Production.INFO: count ==1462 [2025-03-10 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:17:05 - End Time 2025-03-10 21:17:05 [2025-03-10 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652202', 'tblTempUsageDetail_20' ) start [2025-03-10 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652202', 'tblTempUsageDetail_20' ) end [2025-03-10 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652202', 'tblTempVendorCDR_20' ) start [2025-03-10 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652202', 'tblTempVendorCDR_20' ) end [2025-03-10 21:17:18] Production.INFO: ProcessCDR(1,14652202,1,1,2) [2025-03-10 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652202', 'tblTempUsageDetail_20' ) start [2025-03-10 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652202', 'tblTempUsageDetail_20' ) end [2025-03-10 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:17:21] Production.INFO: ==20126== Releasing lock... [2025-03-10 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:17:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-10 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:18:06 [end_date_ymd] => 2025-03-10 21:18:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:18:06' and `end` < '2025-03-10 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-03-10 21:18:18] Production.INFO: count ==1459 [2025-03-10 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:18:06 - End Time 2025-03-10 21:18:06 [2025-03-10 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652207', 'tblTempUsageDetail_20' ) start [2025-03-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652207', 'tblTempUsageDetail_20' ) end [2025-03-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652207', 'tblTempVendorCDR_20' ) start [2025-03-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652207', 'tblTempVendorCDR_20' ) end [2025-03-10 21:18:18] Production.INFO: ProcessCDR(1,14652207,1,1,2) [2025-03-10 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652207', 'tblTempUsageDetail_20' ) start [2025-03-10 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652207', 'tblTempUsageDetail_20' ) end [2025-03-10 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:18:22] Production.INFO: ==20213== Releasing lock... [2025-03-10 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:18:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-10 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:19:05 [end_date_ymd] => 2025-03-10 21:19:05 [RateCDR] => 1 ) [2025-03-10 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:19:05' and `end` < '2025-03-10 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:19:17] Production.INFO: count ==1466 [2025-03-10 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:19:05 - End Time 2025-03-10 21:19:05 [2025-03-10 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652212', 'tblTempUsageDetail_20' ) start [2025-03-10 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652212', 'tblTempUsageDetail_20' ) end [2025-03-10 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652212', 'tblTempVendorCDR_20' ) start [2025-03-10 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652212', 'tblTempVendorCDR_20' ) end [2025-03-10 21:19:18] Production.INFO: ProcessCDR(1,14652212,1,1,2) [2025-03-10 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652212', 'tblTempUsageDetail_20' ) start [2025-03-10 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652212', 'tblTempUsageDetail_20' ) end [2025-03-10 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:19:22] Production.INFO: ==20285== Releasing lock... [2025-03-10 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:19:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-10 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:20:06 [end_date_ymd] => 2025-03-10 21:20:06 [RateCDR] => 1 ) [2025-03-10 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:20:06' and `end` < '2025-03-10 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:20:18] Production.INFO: count ==1468 [2025-03-10 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-10 18:20:06 - End Time 2025-03-10 21:20:06 [2025-03-10 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652218', 'tblTempUsageDetail_20' ) start [2025-03-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652218', 'tblTempUsageDetail_20' ) end [2025-03-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652218', 'tblTempVendorCDR_20' ) start [2025-03-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652218', 'tblTempVendorCDR_20' ) end [2025-03-10 21:20:19] Production.INFO: ProcessCDR(1,14652218,1,1,2) [2025-03-10 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652218', 'tblTempUsageDetail_20' ) start [2025-03-10 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652218', 'tblTempUsageDetail_20' ) end [2025-03-10 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:20:22] Production.INFO: ==20362== Releasing lock... [2025-03-10 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:20:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-10 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:21:05 [end_date_ymd] => 2025-03-10 21:21:05 [RateCDR] => 1 ) [2025-03-10 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:21:05' and `end` < '2025-03-10 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:21:17] Production.INFO: count ==1423 [2025-03-10 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:21:05 - End Time 2025-03-10 21:21:05 [2025-03-10 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652223', 'tblTempUsageDetail_20' ) start [2025-03-10 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652223', 'tblTempUsageDetail_20' ) end [2025-03-10 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652223', 'tblTempVendorCDR_20' ) start [2025-03-10 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652223', 'tblTempVendorCDR_20' ) end [2025-03-10 21:21:18] Production.INFO: ProcessCDR(1,14652223,1,1,2) [2025-03-10 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652223', 'tblTempUsageDetail_20' ) start [2025-03-10 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652223', 'tblTempUsageDetail_20' ) end [2025-03-10 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:21:21] Production.INFO: ==20441== Releasing lock... [2025-03-10 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:21:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-10 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:22:06 [end_date_ymd] => 2025-03-10 21:22:06 [RateCDR] => 1 ) [2025-03-10 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:22:06' and `end` < '2025-03-10 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:22:18] Production.INFO: count ==1424 [2025-03-10 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:22:06 - End Time 2025-03-10 21:22:06 [2025-03-10 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652228', 'tblTempUsageDetail_20' ) start [2025-03-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652228', 'tblTempUsageDetail_20' ) end [2025-03-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652228', 'tblTempVendorCDR_20' ) start [2025-03-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652228', 'tblTempVendorCDR_20' ) end [2025-03-10 21:22:18] Production.INFO: ProcessCDR(1,14652228,1,1,2) [2025-03-10 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652228', 'tblTempUsageDetail_20' ) start [2025-03-10 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652228', 'tblTempUsageDetail_20' ) end [2025-03-10 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:22:22] Production.INFO: ==20516== Releasing lock... [2025-03-10 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:22:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-10 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:23:05 [end_date_ymd] => 2025-03-10 21:23:05 [RateCDR] => 1 ) [2025-03-10 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:23:05' and `end` < '2025-03-10 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:23:17] Production.INFO: count ==1407 [2025-03-10 21:23:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:23:05 - End Time 2025-03-10 21:23:05 [2025-03-10 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652233', 'tblTempUsageDetail_20' ) start [2025-03-10 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652233', 'tblTempUsageDetail_20' ) end [2025-03-10 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652233', 'tblTempVendorCDR_20' ) start [2025-03-10 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652233', 'tblTempVendorCDR_20' ) end [2025-03-10 21:23:17] Production.INFO: ProcessCDR(1,14652233,1,1,2) [2025-03-10 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652233', 'tblTempUsageDetail_20' ) start [2025-03-10 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652233', 'tblTempUsageDetail_20' ) end [2025-03-10 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:23:21] Production.INFO: ==20589== Releasing lock... [2025-03-10 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:23:21] Production.INFO: 39 MB #Memory Used# [2025-03-10 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:24:05 [end_date_ymd] => 2025-03-10 21:24:05 [RateCDR] => 1 ) [2025-03-10 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:24:05' and `end` < '2025-03-10 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:24:18] Production.INFO: count ==1407 [2025-03-10 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:24:05 - End Time 2025-03-10 21:24:05 [2025-03-10 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652238', 'tblTempUsageDetail_20' ) start [2025-03-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652238', 'tblTempUsageDetail_20' ) end [2025-03-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652238', 'tblTempVendorCDR_20' ) start [2025-03-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652238', 'tblTempVendorCDR_20' ) end [2025-03-10 21:24:18] Production.INFO: ProcessCDR(1,14652238,1,1,2) [2025-03-10 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652238', 'tblTempUsageDetail_20' ) start [2025-03-10 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652238', 'tblTempUsageDetail_20' ) end [2025-03-10 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:24:23] Production.INFO: ==20667== Releasing lock... [2025-03-10 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:24:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-10 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:25:05 [end_date_ymd] => 2025-03-10 21:25:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:25:05' and `end` < '2025-03-10 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-03-10 21:25:17] Production.INFO: count ==1409 [2025-03-10 21:25:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:25:05 - End Time 2025-03-10 21:25:05 [2025-03-10 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652243', 'tblTempUsageDetail_20' ) start [2025-03-10 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652243', 'tblTempUsageDetail_20' ) end [2025-03-10 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652243', 'tblTempVendorCDR_20' ) start [2025-03-10 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652243', 'tblTempVendorCDR_20' ) end [2025-03-10 21:25:17] Production.INFO: ProcessCDR(1,14652243,1,1,2) [2025-03-10 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652243', 'tblTempUsageDetail_20' ) start [2025-03-10 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652243', 'tblTempUsageDetail_20' ) end [2025-03-10 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:25:22] Production.INFO: ==20738== Releasing lock... [2025-03-10 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:25:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-10 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:26:05 [end_date_ymd] => 2025-03-10 21:26:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:26:05' and `end` < '2025-03-10 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-03-10 21:26:17] Production.INFO: count ==1407 [2025-03-10 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:26:05 - End Time 2025-03-10 21:26:05 [2025-03-10 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652248', 'tblTempUsageDetail_20' ) start [2025-03-10 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652248', 'tblTempUsageDetail_20' ) end [2025-03-10 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652248', 'tblTempVendorCDR_20' ) start [2025-03-10 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652248', 'tblTempVendorCDR_20' ) end [2025-03-10 21:26:18] Production.INFO: ProcessCDR(1,14652248,1,1,2) [2025-03-10 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652248', 'tblTempUsageDetail_20' ) start [2025-03-10 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652248', 'tblTempUsageDetail_20' ) end [2025-03-10 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:26:21] Production.INFO: ==20820== Releasing lock... [2025-03-10 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:26:21] Production.INFO: 39 MB #Memory Used# [2025-03-10 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:27:05 [end_date_ymd] => 2025-03-10 21:27:05 [RateCDR] => 1 ) [2025-03-10 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:27:05' and `end` < '2025-03-10 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:27:17] Production.INFO: count ==1403 [2025-03-10 21:27:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:27:05 - End Time 2025-03-10 21:27:05 [2025-03-10 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652253', 'tblTempUsageDetail_20' ) start [2025-03-10 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652253', 'tblTempUsageDetail_20' ) end [2025-03-10 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652253', 'tblTempVendorCDR_20' ) start [2025-03-10 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652253', 'tblTempVendorCDR_20' ) end [2025-03-10 21:27:17] Production.INFO: ProcessCDR(1,14652253,1,1,2) [2025-03-10 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652253', 'tblTempUsageDetail_20' ) start [2025-03-10 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652253', 'tblTempUsageDetail_20' ) end [2025-03-10 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:27:22] Production.INFO: ==20892== Releasing lock... [2025-03-10 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:27:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-10 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:28:06 [end_date_ymd] => 2025-03-10 21:28:06 [RateCDR] => 1 ) [2025-03-10 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:28:06' and `end` < '2025-03-10 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:28:18] Production.INFO: count ==1399 [2025-03-10 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:28:06 - End Time 2025-03-10 21:28:06 [2025-03-10 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652258', 'tblTempUsageDetail_20' ) start [2025-03-10 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652258', 'tblTempUsageDetail_20' ) end [2025-03-10 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652258', 'tblTempVendorCDR_20' ) start [2025-03-10 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652258', 'tblTempVendorCDR_20' ) end [2025-03-10 21:28:18] Production.INFO: ProcessCDR(1,14652258,1,1,2) [2025-03-10 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652258', 'tblTempUsageDetail_20' ) start [2025-03-10 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652258', 'tblTempUsageDetail_20' ) end [2025-03-10 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:28:22] Production.INFO: ==20963== Releasing lock... [2025-03-10 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:28:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-10 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:29:04 [end_date_ymd] => 2025-03-10 21:29:04 [RateCDR] => 1 ) [2025-03-10 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:29:04' and `end` < '2025-03-10 21: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-03-10 21:29:17] Production.INFO: count ==1398 [2025-03-10 21:29:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:29:04 - End Time 2025-03-10 21:29:04 [2025-03-10 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652263', 'tblTempUsageDetail_20' ) start [2025-03-10 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652263', 'tblTempUsageDetail_20' ) end [2025-03-10 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652263', 'tblTempVendorCDR_20' ) start [2025-03-10 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652263', 'tblTempVendorCDR_20' ) end [2025-03-10 21:29:17] Production.INFO: ProcessCDR(1,14652263,1,1,2) [2025-03-10 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652263', 'tblTempUsageDetail_20' ) start [2025-03-10 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652263', 'tblTempUsageDetail_20' ) end [2025-03-10 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:29:21] Production.INFO: ==21036== Releasing lock... [2025-03-10 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:29:21] Production.INFO: 39 MB #Memory Used# [2025-03-10 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:30:06 [end_date_ymd] => 2025-03-10 21:30:06 [RateCDR] => 1 ) [2025-03-10 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:30:06' and `end` < '2025-03-10 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:30:18] Production.INFO: count ==1394 [2025-03-10 21:30:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:30:06 - End Time 2025-03-10 21:30:06 [2025-03-10 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652268', 'tblTempUsageDetail_20' ) start [2025-03-10 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652268', 'tblTempUsageDetail_20' ) end [2025-03-10 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652268', 'tblTempVendorCDR_20' ) start [2025-03-10 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652268', 'tblTempVendorCDR_20' ) end [2025-03-10 21:30:19] Production.INFO: ProcessCDR(1,14652268,1,1,2) [2025-03-10 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652268', 'tblTempUsageDetail_20' ) start [2025-03-10 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652268', 'tblTempUsageDetail_20' ) end [2025-03-10 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:30:22] Production.INFO: ==21112== Releasing lock... [2025-03-10 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:30:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-10 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:31:05 [end_date_ymd] => 2025-03-10 21:31:05 [RateCDR] => 1 ) [2025-03-10 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:31:05' and `end` < '2025-03-10 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:31:17] Production.INFO: count ==1377 [2025-03-10 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:31:05 - End Time 2025-03-10 21:31:05 [2025-03-10 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652274', 'tblTempUsageDetail_20' ) start [2025-03-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652274', 'tblTempUsageDetail_20' ) end [2025-03-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652274', 'tblTempVendorCDR_20' ) start [2025-03-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652274', 'tblTempVendorCDR_20' ) end [2025-03-10 21:31:18] Production.INFO: ProcessCDR(1,14652274,1,1,2) [2025-03-10 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652274', 'tblTempUsageDetail_20' ) start [2025-03-10 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652274', 'tblTempUsageDetail_20' ) end [2025-03-10 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:31:21] Production.INFO: ==21224== Releasing lock... [2025-03-10 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:31:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-10 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:32:05 [end_date_ymd] => 2025-03-10 21:32:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:32:05' and `end` < '2025-03-10 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-03-10 21:32:17] Production.INFO: count ==1377 [2025-03-10 21:32:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:32:05 - End Time 2025-03-10 21:32:05 [2025-03-10 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652279', 'tblTempUsageDetail_20' ) start [2025-03-10 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652279', 'tblTempUsageDetail_20' ) end [2025-03-10 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652279', 'tblTempVendorCDR_20' ) start [2025-03-10 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652279', 'tblTempVendorCDR_20' ) end [2025-03-10 21:32:18] Production.INFO: ProcessCDR(1,14652279,1,1,2) [2025-03-10 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652279', 'tblTempUsageDetail_20' ) start [2025-03-10 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652279', 'tblTempUsageDetail_20' ) end [2025-03-10 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:32:21] Production.INFO: ==21295== Releasing lock... [2025-03-10 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:32:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-10 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:33:04 [end_date_ymd] => 2025-03-10 21:33:04 [RateCDR] => 1 ) [2025-03-10 21:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:33:04' and `end` < '2025-03-10 21:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:33:17] Production.INFO: count ==1375 [2025-03-10 21:33:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:33:04 - End Time 2025-03-10 21:33:04 [2025-03-10 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652284', 'tblTempUsageDetail_20' ) start [2025-03-10 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652284', 'tblTempUsageDetail_20' ) end [2025-03-10 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652284', 'tblTempVendorCDR_20' ) start [2025-03-10 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652284', 'tblTempVendorCDR_20' ) end [2025-03-10 21:33:17] Production.INFO: ProcessCDR(1,14652284,1,1,2) [2025-03-10 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652284', 'tblTempUsageDetail_20' ) start [2025-03-10 21:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652284', 'tblTempUsageDetail_20' ) end [2025-03-10 21:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:33:20] Production.INFO: ==21369== Releasing lock... [2025-03-10 21:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:33:20] Production.INFO: 38.5 MB #Memory Used# [2025-03-10 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:34:05 [end_date_ymd] => 2025-03-10 21:34:05 [RateCDR] => 1 ) [2025-03-10 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:34:05' and `end` < '2025-03-10 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:34:17] Production.INFO: count ==1371 [2025-03-10 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:34:05 - End Time 2025-03-10 21:34:05 [2025-03-10 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652289', 'tblTempUsageDetail_20' ) start [2025-03-10 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652289', 'tblTempUsageDetail_20' ) end [2025-03-10 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652289', 'tblTempVendorCDR_20' ) start [2025-03-10 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652289', 'tblTempVendorCDR_20' ) end [2025-03-10 21:34:18] Production.INFO: ProcessCDR(1,14652289,1,1,2) [2025-03-10 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652289', 'tblTempUsageDetail_20' ) start [2025-03-10 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652289', 'tblTempUsageDetail_20' ) end [2025-03-10 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:34:22] Production.INFO: ==21442== Releasing lock... [2025-03-10 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:34:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-10 21:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:35:06 [end_date_ymd] => 2025-03-10 21:35:06 [RateCDR] => 1 ) [2025-03-10 21:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:35:06' and `end` < '2025-03-10 21:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:35:18] Production.INFO: count ==1366 [2025-03-10 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:35:06 - End Time 2025-03-10 21:35:06 [2025-03-10 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652294', 'tblTempUsageDetail_20' ) start [2025-03-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652294', 'tblTempUsageDetail_20' ) end [2025-03-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652294', 'tblTempVendorCDR_20' ) start [2025-03-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652294', 'tblTempVendorCDR_20' ) end [2025-03-10 21:35:18] Production.INFO: ProcessCDR(1,14652294,1,1,2) [2025-03-10 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652294', 'tblTempUsageDetail_20' ) start [2025-03-10 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652294', 'tblTempUsageDetail_20' ) end [2025-03-10 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:35:23] Production.INFO: ==21520== Releasing lock... [2025-03-10 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:35:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-10 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:36:05 [end_date_ymd] => 2025-03-10 21:36:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:36:05' and `end` < '2025-03-10 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-03-10 21:36:17] Production.INFO: count ==1365 [2025-03-10 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:36:05 - End Time 2025-03-10 21:36:05 [2025-03-10 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652299', 'tblTempUsageDetail_20' ) start [2025-03-10 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652299', 'tblTempUsageDetail_20' ) end [2025-03-10 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652299', 'tblTempVendorCDR_20' ) start [2025-03-10 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652299', 'tblTempVendorCDR_20' ) end [2025-03-10 21:36:18] Production.INFO: ProcessCDR(1,14652299,1,1,2) [2025-03-10 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652299', 'tblTempUsageDetail_20' ) start [2025-03-10 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652299', 'tblTempUsageDetail_20' ) end [2025-03-10 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:36:22] Production.INFO: ==21590== Releasing lock... [2025-03-10 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:36:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-10 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:37:05 [end_date_ymd] => 2025-03-10 21:37:05 [RateCDR] => 1 ) [2025-03-10 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:37:05' and `end` < '2025-03-10 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:37:17] Production.INFO: count ==1351 [2025-03-10 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:37:05 - End Time 2025-03-10 21:37:05 [2025-03-10 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652304', 'tblTempUsageDetail_20' ) start [2025-03-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652304', 'tblTempUsageDetail_20' ) end [2025-03-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652304', 'tblTempVendorCDR_20' ) start [2025-03-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652304', 'tblTempVendorCDR_20' ) end [2025-03-10 21:37:18] Production.INFO: ProcessCDR(1,14652304,1,1,2) [2025-03-10 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652304', 'tblTempUsageDetail_20' ) start [2025-03-10 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652304', 'tblTempUsageDetail_20' ) end [2025-03-10 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:37:21] Production.INFO: ==21664== Releasing lock... [2025-03-10 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:37:21] Production.INFO: 39 MB #Memory Used# [2025-03-10 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:38:05 [end_date_ymd] => 2025-03-10 21:38:05 [RateCDR] => 1 ) [2025-03-10 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:38:05' and `end` < '2025-03-10 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:38:17] Production.INFO: count ==1344 [2025-03-10 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:38:05 - End Time 2025-03-10 21:38:05 [2025-03-10 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652309', 'tblTempUsageDetail_20' ) start [2025-03-10 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652309', 'tblTempUsageDetail_20' ) end [2025-03-10 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652309', 'tblTempVendorCDR_20' ) start [2025-03-10 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652309', 'tblTempVendorCDR_20' ) end [2025-03-10 21:38:18] Production.INFO: ProcessCDR(1,14652309,1,1,2) [2025-03-10 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652309', 'tblTempUsageDetail_20' ) start [2025-03-10 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652309', 'tblTempUsageDetail_20' ) end [2025-03-10 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:38:23] Production.INFO: ==21737== Releasing lock... [2025-03-10 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:38:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-10 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:39:05 [end_date_ymd] => 2025-03-10 21:39:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:39:05' and `end` < '2025-03-10 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-03-10 21:39:18] Production.INFO: count ==1334 [2025-03-10 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:39:05 - End Time 2025-03-10 21:39:05 [2025-03-10 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652314', 'tblTempUsageDetail_20' ) start [2025-03-10 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652314', 'tblTempUsageDetail_20' ) end [2025-03-10 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652314', 'tblTempVendorCDR_20' ) start [2025-03-10 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652314', 'tblTempVendorCDR_20' ) end [2025-03-10 21:39:18] Production.INFO: ProcessCDR(1,14652314,1,1,2) [2025-03-10 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652314', 'tblTempUsageDetail_20' ) start [2025-03-10 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652314', 'tblTempUsageDetail_20' ) end [2025-03-10 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:39:23] Production.INFO: ==21809== Releasing lock... [2025-03-10 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:39:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-10 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:40:05 [end_date_ymd] => 2025-03-10 21:40:05 [RateCDR] => 1 ) [2025-03-10 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:40:05' and `end` < '2025-03-10 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:40:18] Production.INFO: count ==1334 [2025-03-10 21:40:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:40:05 - End Time 2025-03-10 21:40:05 [2025-03-10 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652320', 'tblTempUsageDetail_20' ) start [2025-03-10 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652320', 'tblTempUsageDetail_20' ) end [2025-03-10 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652320', 'tblTempVendorCDR_20' ) start [2025-03-10 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652320', 'tblTempVendorCDR_20' ) end [2025-03-10 21:40:18] Production.INFO: ProcessCDR(1,14652320,1,1,2) [2025-03-10 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652320', 'tblTempUsageDetail_20' ) start [2025-03-10 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652320', 'tblTempUsageDetail_20' ) end [2025-03-10 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:40:23] Production.INFO: ==21886== Releasing lock... [2025-03-10 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:40:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-10 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:41:05 [end_date_ymd] => 2025-03-10 21:41:05 [RateCDR] => 1 ) [2025-03-10 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:41:05' and `end` < '2025-03-10 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:41:18] Production.INFO: count ==1280 [2025-03-10 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:41:05 - End Time 2025-03-10 21:41:05 [2025-03-10 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652325', 'tblTempUsageDetail_20' ) start [2025-03-10 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652325', 'tblTempUsageDetail_20' ) end [2025-03-10 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652325', 'tblTempVendorCDR_20' ) start [2025-03-10 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652325', 'tblTempVendorCDR_20' ) end [2025-03-10 21:41:18] Production.INFO: ProcessCDR(1,14652325,1,1,2) [2025-03-10 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652325', 'tblTempUsageDetail_20' ) start [2025-03-10 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652325', 'tblTempUsageDetail_20' ) end [2025-03-10 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:41:23] Production.INFO: ==21965== Releasing lock... [2025-03-10 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:41:23] Production.INFO: 38 MB #Memory Used# [2025-03-10 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:42:05 [end_date_ymd] => 2025-03-10 21:42:05 [RateCDR] => 1 ) [2025-03-10 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:42:05' and `end` < '2025-03-10 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:42:17] Production.INFO: count ==1277 [2025-03-10 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:42:05 - End Time 2025-03-10 21:42:05 [2025-03-10 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652330', 'tblTempUsageDetail_20' ) start [2025-03-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652330', 'tblTempUsageDetail_20' ) end [2025-03-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652330', 'tblTempVendorCDR_20' ) start [2025-03-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652330', 'tblTempVendorCDR_20' ) end [2025-03-10 21:42:18] Production.INFO: ProcessCDR(1,14652330,1,1,2) [2025-03-10 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652330', 'tblTempUsageDetail_20' ) start [2025-03-10 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652330', 'tblTempUsageDetail_20' ) end [2025-03-10 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:42:21] Production.INFO: ==22046== Releasing lock... [2025-03-10 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:42:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-10 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:43:06 [end_date_ymd] => 2025-03-10 21:43:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:43:06' and `end` < '2025-03-10 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-03-10 21:43:18] Production.INFO: count ==1274 [2025-03-10 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:43:06 - End Time 2025-03-10 21:43:06 [2025-03-10 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652335', 'tblTempUsageDetail_20' ) start [2025-03-10 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652335', 'tblTempUsageDetail_20' ) end [2025-03-10 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652335', 'tblTempVendorCDR_20' ) start [2025-03-10 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652335', 'tblTempVendorCDR_20' ) end [2025-03-10 21:43:18] Production.INFO: ProcessCDR(1,14652335,1,1,2) [2025-03-10 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652335', 'tblTempUsageDetail_20' ) start [2025-03-10 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652335', 'tblTempUsageDetail_20' ) end [2025-03-10 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:43:23] Production.INFO: ==22118== Releasing lock... [2025-03-10 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:43:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-10 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:44:05 [end_date_ymd] => 2025-03-10 21:44:05 [RateCDR] => 1 ) [2025-03-10 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:44:05' and `end` < '2025-03-10 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:44:17] Production.INFO: count ==1269 [2025-03-10 21:44:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:44:05 - End Time 2025-03-10 21:44:05 [2025-03-10 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652340', 'tblTempUsageDetail_20' ) start [2025-03-10 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652340', 'tblTempUsageDetail_20' ) end [2025-03-10 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652340', 'tblTempVendorCDR_20' ) start [2025-03-10 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652340', 'tblTempVendorCDR_20' ) end [2025-03-10 21:44:17] Production.INFO: ProcessCDR(1,14652340,1,1,2) [2025-03-10 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652340', 'tblTempUsageDetail_20' ) start [2025-03-10 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652340', 'tblTempUsageDetail_20' ) end [2025-03-10 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:44:21] Production.INFO: ==22189== Releasing lock... [2025-03-10 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:44:21] Production.INFO: 38 MB #Memory Used# [2025-03-10 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:45:05 [end_date_ymd] => 2025-03-10 21:45:05 [RateCDR] => 1 ) [2025-03-10 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:45:05' and `end` < '2025-03-10 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:45:17] Production.INFO: count ==1269 [2025-03-10 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:45:05 - End Time 2025-03-10 21:45:05 [2025-03-10 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652345', 'tblTempUsageDetail_20' ) start [2025-03-10 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652345', 'tblTempUsageDetail_20' ) end [2025-03-10 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652345', 'tblTempVendorCDR_20' ) start [2025-03-10 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652345', 'tblTempVendorCDR_20' ) end [2025-03-10 21:45:18] Production.INFO: ProcessCDR(1,14652345,1,1,2) [2025-03-10 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652345', 'tblTempUsageDetail_20' ) start [2025-03-10 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652345', 'tblTempUsageDetail_20' ) end [2025-03-10 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:45:22] Production.INFO: ==22261== Releasing lock... [2025-03-10 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:45:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-10 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:46:05 [end_date_ymd] => 2025-03-10 21:46:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:46:05' and `end` < '2025-03-10 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-03-10 21:46:17] Production.INFO: count ==1265 [2025-03-10 21:46:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:46:05 - End Time 2025-03-10 21:46:05 [2025-03-10 21:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652350', 'tblTempUsageDetail_20' ) start [2025-03-10 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652350', 'tblTempUsageDetail_20' ) end [2025-03-10 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652350', 'tblTempVendorCDR_20' ) start [2025-03-10 21:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652350', 'tblTempVendorCDR_20' ) end [2025-03-10 21:46:17] Production.INFO: ProcessCDR(1,14652350,1,1,2) [2025-03-10 21:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652350', 'tblTempUsageDetail_20' ) start [2025-03-10 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652350', 'tblTempUsageDetail_20' ) end [2025-03-10 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:46:21] Production.INFO: ==22370== Releasing lock... [2025-03-10 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:46:21] Production.INFO: 38 MB #Memory Used# [2025-03-10 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:47:05 [end_date_ymd] => 2025-03-10 21:47:05 [RateCDR] => 1 ) [2025-03-10 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:47:05' and `end` < '2025-03-10 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:47:17] Production.INFO: count ==1263 [2025-03-10 21:47:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:47:05 - End Time 2025-03-10 21:47:05 [2025-03-10 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652355', 'tblTempUsageDetail_20' ) start [2025-03-10 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652355', 'tblTempUsageDetail_20' ) end [2025-03-10 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652355', 'tblTempVendorCDR_20' ) start [2025-03-10 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652355', 'tblTempVendorCDR_20' ) end [2025-03-10 21:47:18] Production.INFO: ProcessCDR(1,14652355,1,1,2) [2025-03-10 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652355', 'tblTempUsageDetail_20' ) start [2025-03-10 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652355', 'tblTempUsageDetail_20' ) end [2025-03-10 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:47:21] Production.INFO: ==22440== Releasing lock... [2025-03-10 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:47:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-10 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:48:05 [end_date_ymd] => 2025-03-10 21:48:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:48:05' and `end` < '2025-03-10 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-03-10 21:48:17] Production.INFO: count ==1261 [2025-03-10 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:48:05 - End Time 2025-03-10 21:48:05 [2025-03-10 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652360', 'tblTempUsageDetail_20' ) start [2025-03-10 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652360', 'tblTempUsageDetail_20' ) end [2025-03-10 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652360', 'tblTempVendorCDR_20' ) start [2025-03-10 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652360', 'tblTempVendorCDR_20' ) end [2025-03-10 21:48:18] Production.INFO: ProcessCDR(1,14652360,1,1,2) [2025-03-10 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652360', 'tblTempUsageDetail_20' ) start [2025-03-10 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652360', 'tblTempUsageDetail_20' ) end [2025-03-10 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:48:23] Production.INFO: ==22512== Releasing lock... [2025-03-10 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:48:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-10 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:49:05 [end_date_ymd] => 2025-03-10 21:49:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:49:05' and `end` < '2025-03-10 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-03-10 21:49:17] Production.INFO: count ==1259 [2025-03-10 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:49:05 - End Time 2025-03-10 21:49:05 [2025-03-10 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652365', 'tblTempUsageDetail_20' ) start [2025-03-10 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652365', 'tblTempUsageDetail_20' ) end [2025-03-10 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652365', 'tblTempVendorCDR_20' ) start [2025-03-10 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652365', 'tblTempVendorCDR_20' ) end [2025-03-10 21:49:18] Production.INFO: ProcessCDR(1,14652365,1,1,2) [2025-03-10 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652365', 'tblTempUsageDetail_20' ) start [2025-03-10 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652365', 'tblTempUsageDetail_20' ) end [2025-03-10 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:49:21] Production.INFO: ==22585== Releasing lock... [2025-03-10 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:49:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-10 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:50:06 [end_date_ymd] => 2025-03-10 21:50:06 [RateCDR] => 1 ) [2025-03-10 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:50:06' and `end` < '2025-03-10 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:50:18] Production.INFO: count ==1253 [2025-03-10 21:50:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:50:06 - End Time 2025-03-10 21:50:06 [2025-03-10 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652370', 'tblTempUsageDetail_20' ) start [2025-03-10 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652370', 'tblTempUsageDetail_20' ) end [2025-03-10 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652370', 'tblTempVendorCDR_20' ) start [2025-03-10 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652370', 'tblTempVendorCDR_20' ) end [2025-03-10 21:50:18] Production.INFO: ProcessCDR(1,14652370,1,1,2) [2025-03-10 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652370', 'tblTempUsageDetail_20' ) start [2025-03-10 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652370', 'tblTempUsageDetail_20' ) end [2025-03-10 21:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:50:21] Production.INFO: ==22660== Releasing lock... [2025-03-10 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:50:21] Production.INFO: 38 MB #Memory Used# [2025-03-10 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:51:05 [end_date_ymd] => 2025-03-10 21:51:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:51:05' and `end` < '2025-03-10 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-03-10 21:51:17] Production.INFO: count ==1165 [2025-03-10 21:51:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:51:05 - End Time 2025-03-10 21:51:05 [2025-03-10 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652376', 'tblTempUsageDetail_20' ) start [2025-03-10 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652376', 'tblTempUsageDetail_20' ) end [2025-03-10 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652376', 'tblTempVendorCDR_20' ) start [2025-03-10 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652376', 'tblTempVendorCDR_20' ) end [2025-03-10 21:51:17] Production.INFO: ProcessCDR(1,14652376,1,1,2) [2025-03-10 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652376', 'tblTempUsageDetail_20' ) start [2025-03-10 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652376', 'tblTempUsageDetail_20' ) end [2025-03-10 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:51:21] Production.INFO: ==22733== Releasing lock... [2025-03-10 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:51:21] Production.INFO: 37 MB #Memory Used# [2025-03-10 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:52:05 [end_date_ymd] => 2025-03-10 21:52:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:52:05' and `end` < '2025-03-10 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-03-10 21:52:17] Production.INFO: count ==1162 [2025-03-10 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:52:05 - End Time 2025-03-10 21:52:05 [2025-03-10 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652381', 'tblTempUsageDetail_20' ) start [2025-03-10 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652381', 'tblTempUsageDetail_20' ) end [2025-03-10 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652381', 'tblTempVendorCDR_20' ) start [2025-03-10 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652381', 'tblTempVendorCDR_20' ) end [2025-03-10 21:52:18] Production.INFO: ProcessCDR(1,14652381,1,1,2) [2025-03-10 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652381', 'tblTempUsageDetail_20' ) start [2025-03-10 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652381', 'tblTempUsageDetail_20' ) end [2025-03-10 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:52:21] Production.INFO: ==22805== Releasing lock... [2025-03-10 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:52:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-10 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:53:05 [end_date_ymd] => 2025-03-10 21:53:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:53:05' and `end` < '2025-03-10 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-03-10 21:53:17] Production.INFO: count ==1157 [2025-03-10 21:53:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:53:05 - End Time 2025-03-10 21:53:05 [2025-03-10 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652386', 'tblTempUsageDetail_20' ) start [2025-03-10 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652386', 'tblTempUsageDetail_20' ) end [2025-03-10 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652386', 'tblTempVendorCDR_20' ) start [2025-03-10 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652386', 'tblTempVendorCDR_20' ) end [2025-03-10 21:53:17] Production.INFO: ProcessCDR(1,14652386,1,1,2) [2025-03-10 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652386', 'tblTempUsageDetail_20' ) start [2025-03-10 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652386', 'tblTempUsageDetail_20' ) end [2025-03-10 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:53:22] Production.INFO: ==22883== Releasing lock... [2025-03-10 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:53:22] Production.INFO: 37 MB #Memory Used# [2025-03-10 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:54:06 [end_date_ymd] => 2025-03-10 21:54:06 [RateCDR] => 1 ) [2025-03-10 21:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:54:06' and `end` < '2025-03-10 21:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:54:18] Production.INFO: count ==1151 [2025-03-10 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:54:06 - End Time 2025-03-10 21:54:06 [2025-03-10 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652391', 'tblTempUsageDetail_20' ) start [2025-03-10 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652391', 'tblTempUsageDetail_20' ) end [2025-03-10 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652391', 'tblTempVendorCDR_20' ) start [2025-03-10 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652391', 'tblTempVendorCDR_20' ) end [2025-03-10 21:54:18] Production.INFO: ProcessCDR(1,14652391,1,1,2) [2025-03-10 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652391', 'tblTempUsageDetail_20' ) start [2025-03-10 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652391', 'tblTempUsageDetail_20' ) end [2025-03-10 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:54:22] Production.INFO: ==22962== Releasing lock... [2025-03-10 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-10 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:55:05 [end_date_ymd] => 2025-03-10 21:55:05 [RateCDR] => 1 ) [2025-03-10 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:55:05' and `end` < '2025-03-10 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:55:17] Production.INFO: count ==1153 [2025-03-10 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:55:05 - End Time 2025-03-10 21:55:05 [2025-03-10 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652396', 'tblTempUsageDetail_20' ) start [2025-03-10 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652396', 'tblTempUsageDetail_20' ) end [2025-03-10 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652396', 'tblTempVendorCDR_20' ) start [2025-03-10 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652396', 'tblTempVendorCDR_20' ) end [2025-03-10 21:55:18] Production.INFO: ProcessCDR(1,14652396,1,1,2) [2025-03-10 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652396', 'tblTempUsageDetail_20' ) start [2025-03-10 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652396', 'tblTempUsageDetail_20' ) end [2025-03-10 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:55:21] Production.INFO: ==23031== Releasing lock... [2025-03-10 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:55:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-10 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:56:05 [end_date_ymd] => 2025-03-10 21:56:05 [RateCDR] => 1 ) [2025-03-10 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 18:56:05' and `end` < '2025-03-10 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 21:56:17] Production.INFO: count ==1139 [2025-03-10 21:56:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:56:05 - End Time 2025-03-10 21:56:05 [2025-03-10 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652401', 'tblTempUsageDetail_20' ) start [2025-03-10 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652401', 'tblTempUsageDetail_20' ) end [2025-03-10 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652401', 'tblTempVendorCDR_20' ) start [2025-03-10 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652401', 'tblTempVendorCDR_20' ) end [2025-03-10 21:56:17] Production.INFO: ProcessCDR(1,14652401,1,1,2) [2025-03-10 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652401', 'tblTempUsageDetail_20' ) start [2025-03-10 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652401', 'tblTempUsageDetail_20' ) end [2025-03-10 21:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:56:20] Production.INFO: ==23105== Releasing lock... [2025-03-10 21:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:56:20] Production.INFO: 37 MB #Memory Used# [2025-03-10 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:57:05 [end_date_ymd] => 2025-03-10 21:57:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:57:05' and `end` < '2025-03-10 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-03-10 21:57:17] Production.INFO: count ==1123 [2025-03-10 21:57:18] Production.ERROR: pbx CDR StartTime 2025-03-10 18:57:05 - End Time 2025-03-10 21:57:05 [2025-03-10 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652406', 'tblTempUsageDetail_20' ) start [2025-03-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652406', 'tblTempUsageDetail_20' ) end [2025-03-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652406', 'tblTempVendorCDR_20' ) start [2025-03-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652406', 'tblTempVendorCDR_20' ) end [2025-03-10 21:57:18] Production.INFO: ProcessCDR(1,14652406,1,1,2) [2025-03-10 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652406', 'tblTempUsageDetail_20' ) start [2025-03-10 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652406', 'tblTempUsageDetail_20' ) end [2025-03-10 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:57:21] Production.INFO: ==23175== Releasing lock... [2025-03-10 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:57:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-10 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:58:05 [end_date_ymd] => 2025-03-10 21:58:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:58:05' and `end` < '2025-03-10 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-03-10 21:58:17] Production.INFO: count ==1120 [2025-03-10 21:58:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:58:05 - End Time 2025-03-10 21:58:05 [2025-03-10 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652407', 'tblTempUsageDetail_20' ) start [2025-03-10 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652407', 'tblTempUsageDetail_20' ) end [2025-03-10 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652407', 'tblTempVendorCDR_20' ) start [2025-03-10 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652407', 'tblTempVendorCDR_20' ) end [2025-03-10 21:58:17] Production.INFO: ProcessCDR(1,14652407,1,1,2) [2025-03-10 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652407', 'tblTempUsageDetail_20' ) start [2025-03-10 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652407', 'tblTempUsageDetail_20' ) end [2025-03-10 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:58:22] Production.INFO: ==23247== Releasing lock... [2025-03-10 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:58:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-10 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 18:59:05 [end_date_ymd] => 2025-03-10 21:59:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 18:59:05' and `end` < '2025-03-10 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-03-10 21:59:17] Production.INFO: count ==1116 [2025-03-10 21:59:17] Production.ERROR: pbx CDR StartTime 2025-03-10 18:59:05 - End Time 2025-03-10 21:59:05 [2025-03-10 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652416', 'tblTempUsageDetail_20' ) start [2025-03-10 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652416', 'tblTempUsageDetail_20' ) end [2025-03-10 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652416', 'tblTempVendorCDR_20' ) start [2025-03-10 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652416', 'tblTempVendorCDR_20' ) end [2025-03-10 21:59:17] Production.INFO: ProcessCDR(1,14652416,1,1,2) [2025-03-10 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652416', 'tblTempUsageDetail_20' ) start [2025-03-10 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652416', 'tblTempUsageDetail_20' ) end [2025-03-10 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 21:59:21] Production.INFO: ==23318== Releasing lock... [2025-03-10 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 21:59:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-10 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:00:06 [end_date_ymd] => 2025-03-10 22:00:06 [RateCDR] => 1 ) [2025-03-10 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:00:06' and `end` < '2025-03-10 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:00:18] Production.INFO: count ==1111 [2025-03-10 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-10 19:00:06 - End Time 2025-03-10 22:00:06 [2025-03-10 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652422', 'tblTempUsageDetail_20' ) start [2025-03-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652422', 'tblTempUsageDetail_20' ) end [2025-03-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652422', 'tblTempVendorCDR_20' ) start [2025-03-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652422', 'tblTempVendorCDR_20' ) end [2025-03-10 22:00:19] Production.INFO: ProcessCDR(1,14652422,1,1,2) [2025-03-10 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652422', 'tblTempUsageDetail_20' ) start [2025-03-10 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652422', 'tblTempUsageDetail_20' ) end [2025-03-10 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:00:22] Production.INFO: ==23393== Releasing lock... [2025-03-10 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:00:22] Production.INFO: 37 MB #Memory Used# [2025-03-10 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:01:05 [end_date_ymd] => 2025-03-10 22:01:05 [RateCDR] => 1 ) [2025-03-10 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:01:05' and `end` < '2025-03-10 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:01:17] Production.INFO: count ==1096 [2025-03-10 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:01:05 - End Time 2025-03-10 22:01:05 [2025-03-10 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652427', 'tblTempUsageDetail_20' ) start [2025-03-10 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652427', 'tblTempUsageDetail_20' ) end [2025-03-10 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652427', 'tblTempVendorCDR_20' ) start [2025-03-10 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652427', 'tblTempVendorCDR_20' ) end [2025-03-10 22:01:18] Production.INFO: ProcessCDR(1,14652427,1,1,2) [2025-03-10 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652427', 'tblTempUsageDetail_20' ) start [2025-03-10 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652427', 'tblTempUsageDetail_20' ) end [2025-03-10 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:01:21] Production.INFO: ==23477== Releasing lock... [2025-03-10 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:01:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-10 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:02:06 [end_date_ymd] => 2025-03-10 22:02:06 [RateCDR] => 1 ) [2025-03-10 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:02:06' and `end` < '2025-03-10 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:02:18] Production.INFO: count ==1095 [2025-03-10 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:02:06 - End Time 2025-03-10 22:02:06 [2025-03-10 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652432', 'tblTempUsageDetail_20' ) start [2025-03-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652432', 'tblTempUsageDetail_20' ) end [2025-03-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652432', 'tblTempVendorCDR_20' ) start [2025-03-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652432', 'tblTempVendorCDR_20' ) end [2025-03-10 22:02:18] Production.INFO: ProcessCDR(1,14652432,1,1,2) [2025-03-10 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652432', 'tblTempUsageDetail_20' ) start [2025-03-10 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652432', 'tblTempUsageDetail_20' ) end [2025-03-10 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:02:23] Production.INFO: ==23590== Releasing lock... [2025-03-10 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:02:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-10 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:03:05 [end_date_ymd] => 2025-03-10 22:03:05 [RateCDR] => 1 ) [2025-03-10 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:03:05' and `end` < '2025-03-10 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:03:17] Production.INFO: count ==1096 [2025-03-10 22:03:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:03:05 - End Time 2025-03-10 22:03:05 [2025-03-10 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652437', 'tblTempUsageDetail_20' ) start [2025-03-10 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652437', 'tblTempUsageDetail_20' ) end [2025-03-10 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652437', 'tblTempVendorCDR_20' ) start [2025-03-10 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652437', 'tblTempVendorCDR_20' ) end [2025-03-10 22:03:17] Production.INFO: ProcessCDR(1,14652437,1,1,2) [2025-03-10 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652437', 'tblTempUsageDetail_20' ) start [2025-03-10 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652437', 'tblTempUsageDetail_20' ) end [2025-03-10 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:03:21] Production.INFO: ==23659== Releasing lock... [2025-03-10 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:03:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-10 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:04:05 [end_date_ymd] => 2025-03-10 22:04:05 [RateCDR] => 1 ) [2025-03-10 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:04:05' and `end` < '2025-03-10 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:04:17] Production.INFO: count ==1085 [2025-03-10 22:04:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:04:05 - End Time 2025-03-10 22:04:05 [2025-03-10 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652442', 'tblTempUsageDetail_20' ) start [2025-03-10 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652442', 'tblTempUsageDetail_20' ) end [2025-03-10 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652442', 'tblTempVendorCDR_20' ) start [2025-03-10 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652442', 'tblTempVendorCDR_20' ) end [2025-03-10 22:04:18] Production.INFO: ProcessCDR(1,14652442,1,1,2) [2025-03-10 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652442', 'tblTempUsageDetail_20' ) start [2025-03-10 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652442', 'tblTempUsageDetail_20' ) end [2025-03-10 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:04:21] Production.INFO: ==23729== Releasing lock... [2025-03-10 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:04:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-10 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:05:05 [end_date_ymd] => 2025-03-10 22:05:05 [RateCDR] => 1 ) [2025-03-10 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:05:05' and `end` < '2025-03-10 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:05:17] Production.INFO: count ==1086 [2025-03-10 22:05:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:05:05 - End Time 2025-03-10 22:05:05 [2025-03-10 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652447', 'tblTempUsageDetail_20' ) start [2025-03-10 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652447', 'tblTempUsageDetail_20' ) end [2025-03-10 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652447', 'tblTempVendorCDR_20' ) start [2025-03-10 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652447', 'tblTempVendorCDR_20' ) end [2025-03-10 22:05:18] Production.INFO: ProcessCDR(1,14652447,1,1,2) [2025-03-10 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652447', 'tblTempUsageDetail_20' ) start [2025-03-10 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652447', 'tblTempUsageDetail_20' ) end [2025-03-10 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:05:22] Production.INFO: ==23800== Releasing lock... [2025-03-10 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:05:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-10 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:06:06 [end_date_ymd] => 2025-03-10 22:06:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 19:06:06' and `end` < '2025-03-10 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-03-10 22:06:18] Production.INFO: count ==1069 [2025-03-10 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:06:06 - End Time 2025-03-10 22:06:06 [2025-03-10 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652452', 'tblTempUsageDetail_20' ) start [2025-03-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652452', 'tblTempUsageDetail_20' ) end [2025-03-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652452', 'tblTempVendorCDR_20' ) start [2025-03-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652452', 'tblTempVendorCDR_20' ) end [2025-03-10 22:06:18] Production.INFO: ProcessCDR(1,14652452,1,1,2) [2025-03-10 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652452', 'tblTempUsageDetail_20' ) start [2025-03-10 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652452', 'tblTempUsageDetail_20' ) end [2025-03-10 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:06:23] Production.INFO: ==23878== Releasing lock... [2025-03-10 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:06:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-10 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:07:05 [end_date_ymd] => 2025-03-10 22:07:05 [RateCDR] => 1 ) [2025-03-10 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:07:05' and `end` < '2025-03-10 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:07:17] Production.INFO: count ==1047 [2025-03-10 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:07:05 - End Time 2025-03-10 22:07:05 [2025-03-10 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652457', 'tblTempUsageDetail_20' ) start [2025-03-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652457', 'tblTempUsageDetail_20' ) end [2025-03-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652457', 'tblTempVendorCDR_20' ) start [2025-03-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652457', 'tblTempVendorCDR_20' ) end [2025-03-10 22:07:18] Production.INFO: ProcessCDR(1,14652457,1,1,2) [2025-03-10 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652457', 'tblTempUsageDetail_20' ) start [2025-03-10 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652457', 'tblTempUsageDetail_20' ) end [2025-03-10 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:07:23] Production.INFO: ==23956== Releasing lock... [2025-03-10 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:07:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-10 22:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:08:06 [end_date_ymd] => 2025-03-10 22:08:06 [RateCDR] => 1 ) [2025-03-10 22:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:08:06' and `end` < '2025-03-10 22:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:08:18] Production.INFO: count ==1041 [2025-03-10 22:08:19] Production.ERROR: pbx CDR StartTime 2025-03-10 19:08:06 - End Time 2025-03-10 22:08:06 [2025-03-10 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652462', 'tblTempUsageDetail_20' ) start [2025-03-10 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652462', 'tblTempUsageDetail_20' ) end [2025-03-10 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652462', 'tblTempVendorCDR_20' ) start [2025-03-10 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652462', 'tblTempVendorCDR_20' ) end [2025-03-10 22:08:19] Production.INFO: ProcessCDR(1,14652462,1,1,2) [2025-03-10 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652462', 'tblTempUsageDetail_20' ) start [2025-03-10 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652462', 'tblTempUsageDetail_20' ) end [2025-03-10 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:08:22] Production.INFO: ==24027== Releasing lock... [2025-03-10 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:08:22] Production.INFO: 36 MB #Memory Used# [2025-03-10 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:09:05 [end_date_ymd] => 2025-03-10 22:09:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 19:09:05' and `end` < '2025-03-10 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-03-10 22:09:18] Production.INFO: count ==1031 [2025-03-10 22:09:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:09:05 - End Time 2025-03-10 22:09:05 [2025-03-10 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652467', 'tblTempUsageDetail_20' ) start [2025-03-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652467', 'tblTempUsageDetail_20' ) end [2025-03-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652467', 'tblTempVendorCDR_20' ) start [2025-03-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652467', 'tblTempVendorCDR_20' ) end [2025-03-10 22:09:18] Production.INFO: ProcessCDR(1,14652467,1,1,2) [2025-03-10 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652467', 'tblTempUsageDetail_20' ) start [2025-03-10 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652467', 'tblTempUsageDetail_20' ) end [2025-03-10 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:09:23] Production.INFO: ==24099== Releasing lock... [2025-03-10 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:09:23] Production.INFO: 36 MB #Memory Used# [2025-03-10 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:10:06 [end_date_ymd] => 2025-03-10 22:10:06 [RateCDR] => 1 ) [2025-03-10 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:10:06' and `end` < '2025-03-10 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:10:18] Production.INFO: count ==1028 [2025-03-10 22:10:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:10:06 - End Time 2025-03-10 22:10:06 [2025-03-10 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652473', 'tblTempUsageDetail_20' ) start [2025-03-10 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652473', 'tblTempUsageDetail_20' ) end [2025-03-10 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652473', 'tblTempVendorCDR_20' ) start [2025-03-10 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652473', 'tblTempVendorCDR_20' ) end [2025-03-10 22:10:18] Production.INFO: ProcessCDR(1,14652473,1,1,2) [2025-03-10 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652473', 'tblTempUsageDetail_20' ) start [2025-03-10 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652473', 'tblTempUsageDetail_20' ) end [2025-03-10 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:10:23] Production.INFO: ==24171== Releasing lock... [2025-03-10 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:10:23] Production.INFO: 36 MB #Memory Used# [2025-03-10 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:11:06 [end_date_ymd] => 2025-03-10 22:11:06 [RateCDR] => 1 ) [2025-03-10 22:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:11:06' and `end` < '2025-03-10 22:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:11:18] Production.INFO: count ==1002 [2025-03-10 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:11:06 - End Time 2025-03-10 22:11:06 [2025-03-10 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652478', 'tblTempUsageDetail_20' ) start [2025-03-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652478', 'tblTempUsageDetail_20' ) end [2025-03-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652478', 'tblTempVendorCDR_20' ) start [2025-03-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652478', 'tblTempVendorCDR_20' ) end [2025-03-10 22:11:18] Production.INFO: ProcessCDR(1,14652478,1,1,2) [2025-03-10 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652478', 'tblTempUsageDetail_20' ) start [2025-03-10 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652478', 'tblTempUsageDetail_20' ) end [2025-03-10 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:11:21] Production.INFO: ==24245== Releasing lock... [2025-03-10 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:11:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-10 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:12:06 [end_date_ymd] => 2025-03-10 22:12:06 [RateCDR] => 1 ) [2025-03-10 22:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:12:06' and `end` < '2025-03-10 22:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:12:18] Production.INFO: count ==992 [2025-03-10 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:12:06 - End Time 2025-03-10 22:12:06 [2025-03-10 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652483', 'tblTempUsageDetail_20' ) start [2025-03-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652483', 'tblTempUsageDetail_20' ) end [2025-03-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652483', 'tblTempVendorCDR_20' ) start [2025-03-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652483', 'tblTempVendorCDR_20' ) end [2025-03-10 22:12:18] Production.INFO: ProcessCDR(1,14652483,1,1,2) [2025-03-10 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652483', 'tblTempUsageDetail_20' ) start [2025-03-10 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652483', 'tblTempUsageDetail_20' ) end [2025-03-10 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:12:21] Production.INFO: ==24315== Releasing lock... [2025-03-10 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:12:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-10 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:13:05 [end_date_ymd] => 2025-03-10 22:13:05 [RateCDR] => 1 ) [2025-03-10 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:13:05' and `end` < '2025-03-10 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:13:17] Production.INFO: count ==986 [2025-03-10 22:13:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:13:05 - End Time 2025-03-10 22:13:05 [2025-03-10 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652488', 'tblTempUsageDetail_20' ) start [2025-03-10 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652488', 'tblTempUsageDetail_20' ) end [2025-03-10 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652488', 'tblTempVendorCDR_20' ) start [2025-03-10 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652488', 'tblTempVendorCDR_20' ) end [2025-03-10 22:13:17] Production.INFO: ProcessCDR(1,14652488,1,1,2) [2025-03-10 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652488', 'tblTempUsageDetail_20' ) start [2025-03-10 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652488', 'tblTempUsageDetail_20' ) end [2025-03-10 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:13:21] Production.INFO: ==24391== Releasing lock... [2025-03-10 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:13:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-10 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:14:05 [end_date_ymd] => 2025-03-10 22:14:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 19:14:05' and `end` < '2025-03-10 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-03-10 22:14:17] Production.INFO: count ==983 [2025-03-10 22:14:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:14:05 - End Time 2025-03-10 22:14:05 [2025-03-10 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652493', 'tblTempUsageDetail_20' ) start [2025-03-10 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652493', 'tblTempUsageDetail_20' ) end [2025-03-10 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652493', 'tblTempVendorCDR_20' ) start [2025-03-10 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652493', 'tblTempVendorCDR_20' ) end [2025-03-10 22:14:18] Production.INFO: ProcessCDR(1,14652493,1,1,2) [2025-03-10 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652493', 'tblTempUsageDetail_20' ) start [2025-03-10 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652493', 'tblTempUsageDetail_20' ) end [2025-03-10 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:14:21] Production.INFO: ==24464== Releasing lock... [2025-03-10 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:14:21] Production.INFO: 36 MB #Memory Used# [2025-03-10 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:15:05 [end_date_ymd] => 2025-03-10 22:15:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 19:15:05' and `end` < '2025-03-10 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-03-10 22:15:17] Production.INFO: count ==982 [2025-03-10 22:15:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:15:05 - End Time 2025-03-10 22:15:05 [2025-03-10 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652498', 'tblTempUsageDetail_20' ) start [2025-03-10 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652498', 'tblTempUsageDetail_20' ) end [2025-03-10 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652498', 'tblTempVendorCDR_20' ) start [2025-03-10 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652498', 'tblTempVendorCDR_20' ) end [2025-03-10 22:15:17] Production.INFO: ProcessCDR(1,14652498,1,1,2) [2025-03-10 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652498', 'tblTempUsageDetail_20' ) start [2025-03-10 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652498', 'tblTempUsageDetail_20' ) end [2025-03-10 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:15:21] Production.INFO: ==24546== Releasing lock... [2025-03-10 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:15:21] Production.INFO: 36 MB #Memory Used# [2025-03-10 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:16:05 [end_date_ymd] => 2025-03-10 22:16:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 19:16:05' and `end` < '2025-03-10 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-03-10 22:16:18] Production.INFO: count ==978 [2025-03-10 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:16:05 - End Time 2025-03-10 22:16:05 [2025-03-10 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652503', 'tblTempUsageDetail_20' ) start [2025-03-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652503', 'tblTempUsageDetail_20' ) end [2025-03-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652503', 'tblTempVendorCDR_20' ) start [2025-03-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652503', 'tblTempVendorCDR_20' ) end [2025-03-10 22:16:18] Production.INFO: ProcessCDR(1,14652503,1,1,2) [2025-03-10 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652503', 'tblTempUsageDetail_20' ) start [2025-03-10 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652503', 'tblTempUsageDetail_20' ) end [2025-03-10 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:16:22] Production.INFO: ==24615== Releasing lock... [2025-03-10 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:16:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-10 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:17:05 [end_date_ymd] => 2025-03-10 22:17:05 [RateCDR] => 1 ) [2025-03-10 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:17:05' and `end` < '2025-03-10 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:17:17] Production.INFO: count ==977 [2025-03-10 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:17:05 - End Time 2025-03-10 22:17:05 [2025-03-10 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652508', 'tblTempUsageDetail_20' ) start [2025-03-10 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652508', 'tblTempUsageDetail_20' ) end [2025-03-10 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652508', 'tblTempVendorCDR_20' ) start [2025-03-10 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652508', 'tblTempVendorCDR_20' ) end [2025-03-10 22:17:18] Production.INFO: ProcessCDR(1,14652508,1,1,2) [2025-03-10 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652508', 'tblTempUsageDetail_20' ) start [2025-03-10 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652508', 'tblTempUsageDetail_20' ) end [2025-03-10 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:17:22] Production.INFO: ==24752== Releasing lock... [2025-03-10 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:17:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-10 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:18:06 [end_date_ymd] => 2025-03-10 22:18:06 [RateCDR] => 1 ) [2025-03-10 22:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:18:06' and `end` < '2025-03-10 22:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:18:18] Production.INFO: count ==963 [2025-03-10 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:18:06 - End Time 2025-03-10 22:18:06 [2025-03-10 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652513', 'tblTempUsageDetail_20' ) start [2025-03-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652513', 'tblTempUsageDetail_20' ) end [2025-03-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652513', 'tblTempVendorCDR_20' ) start [2025-03-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652513', 'tblTempVendorCDR_20' ) end [2025-03-10 22:18:18] Production.INFO: ProcessCDR(1,14652513,1,1,2) [2025-03-10 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652513', 'tblTempUsageDetail_20' ) start [2025-03-10 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652513', 'tblTempUsageDetail_20' ) end [2025-03-10 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:18:21] Production.INFO: ==24827== Releasing lock... [2025-03-10 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:18:21] Production.INFO: 36 MB #Memory Used# [2025-03-10 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:19:05 [end_date_ymd] => 2025-03-10 22:19:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 19:19:05' and `end` < '2025-03-10 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-03-10 22:19:17] Production.INFO: count ==961 [2025-03-10 22:19:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:19:05 - End Time 2025-03-10 22:19:05 [2025-03-10 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652518', 'tblTempUsageDetail_20' ) start [2025-03-10 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652518', 'tblTempUsageDetail_20' ) end [2025-03-10 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652518', 'tblTempVendorCDR_20' ) start [2025-03-10 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652518', 'tblTempVendorCDR_20' ) end [2025-03-10 22:19:17] Production.INFO: ProcessCDR(1,14652518,1,1,2) [2025-03-10 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652518', 'tblTempUsageDetail_20' ) start [2025-03-10 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652518', 'tblTempUsageDetail_20' ) end [2025-03-10 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:19:21] Production.INFO: ==24909== Releasing lock... [2025-03-10 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:19:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-10 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:20:06 [end_date_ymd] => 2025-03-10 22:20:06 [RateCDR] => 1 ) [2025-03-10 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:20:06' and `end` < '2025-03-10 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:20:18] Production.INFO: count ==961 [2025-03-10 22:20:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:20:06 - End Time 2025-03-10 22:20:06 [2025-03-10 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652523', 'tblTempUsageDetail_20' ) start [2025-03-10 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652523', 'tblTempUsageDetail_20' ) end [2025-03-10 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652523', 'tblTempVendorCDR_20' ) start [2025-03-10 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652523', 'tblTempVendorCDR_20' ) end [2025-03-10 22:20:18] Production.INFO: ProcessCDR(1,14652523,1,1,2) [2025-03-10 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652523', 'tblTempUsageDetail_20' ) start [2025-03-10 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652523', 'tblTempUsageDetail_20' ) end [2025-03-10 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:20:22] Production.INFO: ==24992== Releasing lock... [2025-03-10 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:20:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-10 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:21:05 [end_date_ymd] => 2025-03-10 22:21:05 [RateCDR] => 1 ) [2025-03-10 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:21:05' and `end` < '2025-03-10 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:21:17] Production.INFO: count ==942 [2025-03-10 22:21:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:21:05 - End Time 2025-03-10 22:21:05 [2025-03-10 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652529', 'tblTempUsageDetail_20' ) start [2025-03-10 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652529', 'tblTempUsageDetail_20' ) end [2025-03-10 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652529', 'tblTempVendorCDR_20' ) start [2025-03-10 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652529', 'tblTempVendorCDR_20' ) end [2025-03-10 22:21:17] Production.INFO: ProcessCDR(1,14652529,1,1,2) [2025-03-10 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652529', 'tblTempUsageDetail_20' ) start [2025-03-10 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652529', 'tblTempUsageDetail_20' ) end [2025-03-10 22:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:21:20] Production.INFO: ==25070== Releasing lock... [2025-03-10 22:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:21:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-10 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:22:05 [end_date_ymd] => 2025-03-10 22:22:05 [RateCDR] => 1 ) [2025-03-10 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:22:05' and `end` < '2025-03-10 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:22:18] Production.INFO: count ==936 [2025-03-10 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:22:05 - End Time 2025-03-10 22:22:05 [2025-03-10 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652534', 'tblTempUsageDetail_20' ) start [2025-03-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652534', 'tblTempUsageDetail_20' ) end [2025-03-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652534', 'tblTempVendorCDR_20' ) start [2025-03-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652534', 'tblTempVendorCDR_20' ) end [2025-03-10 22:22:18] Production.INFO: ProcessCDR(1,14652534,1,1,2) [2025-03-10 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652534', 'tblTempUsageDetail_20' ) start [2025-03-10 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652534', 'tblTempUsageDetail_20' ) end [2025-03-10 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:22:21] Production.INFO: ==25147== Releasing lock... [2025-03-10 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:22:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-10 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:23:05 [end_date_ymd] => 2025-03-10 22:23:05 [RateCDR] => 1 ) [2025-03-10 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:23:05' and `end` < '2025-03-10 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:23:17] Production.INFO: count ==929 [2025-03-10 22:23:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:23:05 - End Time 2025-03-10 22:23:05 [2025-03-10 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652539', 'tblTempUsageDetail_20' ) start [2025-03-10 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652539', 'tblTempUsageDetail_20' ) end [2025-03-10 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652539', 'tblTempVendorCDR_20' ) start [2025-03-10 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652539', 'tblTempVendorCDR_20' ) end [2025-03-10 22:23:17] Production.INFO: ProcessCDR(1,14652539,1,1,2) [2025-03-10 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652539', 'tblTempUsageDetail_20' ) start [2025-03-10 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652539', 'tblTempUsageDetail_20' ) end [2025-03-10 22:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:23:20] Production.INFO: ==25228== Releasing lock... [2025-03-10 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:23:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-10 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:24:06 [end_date_ymd] => 2025-03-10 22:24:06 [RateCDR] => 1 ) [2025-03-10 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:24:06' and `end` < '2025-03-10 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:24:18] Production.INFO: count ==915 [2025-03-10 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:24:06 - End Time 2025-03-10 22:24:06 [2025-03-10 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652544', 'tblTempUsageDetail_20' ) start [2025-03-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652544', 'tblTempUsageDetail_20' ) end [2025-03-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652544', 'tblTempVendorCDR_20' ) start [2025-03-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652544', 'tblTempVendorCDR_20' ) end [2025-03-10 22:24:18] Production.INFO: ProcessCDR(1,14652544,1,1,2) [2025-03-10 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652544', 'tblTempUsageDetail_20' ) start [2025-03-10 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652544', 'tblTempUsageDetail_20' ) end [2025-03-10 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:24:21] Production.INFO: ==25303== Releasing lock... [2025-03-10 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:24:21] Production.INFO: 35 MB #Memory Used# [2025-03-10 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:25:05 [end_date_ymd] => 2025-03-10 22:25:05 [RateCDR] => 1 ) [2025-03-10 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:25:05' and `end` < '2025-03-10 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:25:17] Production.INFO: count ==872 [2025-03-10 22:25:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:25:05 - End Time 2025-03-10 22:25:05 [2025-03-10 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652549', 'tblTempUsageDetail_20' ) start [2025-03-10 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652549', 'tblTempUsageDetail_20' ) end [2025-03-10 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652549', 'tblTempVendorCDR_20' ) start [2025-03-10 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652549', 'tblTempVendorCDR_20' ) end [2025-03-10 22:25:17] Production.INFO: ProcessCDR(1,14652549,1,1,2) [2025-03-10 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652549', 'tblTempUsageDetail_20' ) start [2025-03-10 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652549', 'tblTempUsageDetail_20' ) end [2025-03-10 22:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:25:20] Production.INFO: ==25381== Releasing lock... [2025-03-10 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:25:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-10 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:26:05 [end_date_ymd] => 2025-03-10 22:26:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 19:26:05' and `end` < '2025-03-10 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-03-10 22:26:18] Production.INFO: count ==867 [2025-03-10 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:26:05 - End Time 2025-03-10 22:26:05 [2025-03-10 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652554', 'tblTempUsageDetail_20' ) start [2025-03-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652554', 'tblTempUsageDetail_20' ) end [2025-03-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652554', 'tblTempVendorCDR_20' ) start [2025-03-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652554', 'tblTempVendorCDR_20' ) end [2025-03-10 22:26:18] Production.INFO: ProcessCDR(1,14652554,1,1,2) [2025-03-10 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652554', 'tblTempUsageDetail_20' ) start [2025-03-10 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652554', 'tblTempUsageDetail_20' ) end [2025-03-10 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:26:21] Production.INFO: ==25459== Releasing lock... [2025-03-10 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:26:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-10 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:27:05 [end_date_ymd] => 2025-03-10 22:27:05 [RateCDR] => 1 ) [2025-03-10 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:27:05' and `end` < '2025-03-10 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:27:17] Production.INFO: count ==864 [2025-03-10 22:27:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:27:05 - End Time 2025-03-10 22:27:05 [2025-03-10 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652559', 'tblTempUsageDetail_20' ) start [2025-03-10 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652559', 'tblTempUsageDetail_20' ) end [2025-03-10 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652559', 'tblTempVendorCDR_20' ) start [2025-03-10 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652559', 'tblTempVendorCDR_20' ) end [2025-03-10 22:27:17] Production.INFO: ProcessCDR(1,14652559,1,1,2) [2025-03-10 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652559', 'tblTempUsageDetail_20' ) start [2025-03-10 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652559', 'tblTempUsageDetail_20' ) end [2025-03-10 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:27:22] Production.INFO: ==25536== Releasing lock... [2025-03-10 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:27:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-10 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:28:05 [end_date_ymd] => 2025-03-10 22:28:05 [RateCDR] => 1 ) [2025-03-10 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:28:05' and `end` < '2025-03-10 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:28:17] Production.INFO: count ==861 [2025-03-10 22:28:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:28:05 - End Time 2025-03-10 22:28:05 [2025-03-10 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652564', 'tblTempUsageDetail_20' ) start [2025-03-10 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652564', 'tblTempUsageDetail_20' ) end [2025-03-10 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652564', 'tblTempVendorCDR_20' ) start [2025-03-10 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652564', 'tblTempVendorCDR_20' ) end [2025-03-10 22:28:17] Production.INFO: ProcessCDR(1,14652564,1,1,2) [2025-03-10 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652564', 'tblTempUsageDetail_20' ) start [2025-03-10 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652564', 'tblTempUsageDetail_20' ) end [2025-03-10 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:28:22] Production.INFO: ==25618== Releasing lock... [2025-03-10 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:28:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-10 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:29:05 [end_date_ymd] => 2025-03-10 22:29:05 [RateCDR] => 1 ) [2025-03-10 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:29:05' and `end` < '2025-03-10 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:29:17] Production.INFO: count ==860 [2025-03-10 22:29:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:29:05 - End Time 2025-03-10 22:29:05 [2025-03-10 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652569', 'tblTempUsageDetail_20' ) start [2025-03-10 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652569', 'tblTempUsageDetail_20' ) end [2025-03-10 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652569', 'tblTempVendorCDR_20' ) start [2025-03-10 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652569', 'tblTempVendorCDR_20' ) end [2025-03-10 22:29:17] Production.INFO: ProcessCDR(1,14652569,1,1,2) [2025-03-10 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652569', 'tblTempUsageDetail_20' ) start [2025-03-10 22:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652569', 'tblTempUsageDetail_20' ) end [2025-03-10 22:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:29:20] Production.INFO: ==25692== Releasing lock... [2025-03-10 22:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:29:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-10 22:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:30:06 [end_date_ymd] => 2025-03-10 22:30:06 [RateCDR] => 1 ) [2025-03-10 22:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:30:06' and `end` < '2025-03-10 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:30:19] Production.INFO: count ==859 [2025-03-10 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-10 19:30:06 - End Time 2025-03-10 22:30:06 [2025-03-10 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652575', 'tblTempUsageDetail_20' ) start [2025-03-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652575', 'tblTempUsageDetail_20' ) end [2025-03-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652575', 'tblTempVendorCDR_20' ) start [2025-03-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652575', 'tblTempVendorCDR_20' ) end [2025-03-10 22:30:19] Production.INFO: ProcessCDR(1,14652575,1,1,2) [2025-03-10 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652575', 'tblTempUsageDetail_20' ) start [2025-03-10 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652575', 'tblTempUsageDetail_20' ) end [2025-03-10 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:30:22] Production.INFO: ==25772== Releasing lock... [2025-03-10 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:30:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-10 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:31:05 [end_date_ymd] => 2025-03-10 22:31:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 19:31:05' and `end` < '2025-03-10 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-03-10 22:31:17] Production.INFO: count ==809 [2025-03-10 22:31:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:31:05 - End Time 2025-03-10 22:31:05 [2025-03-10 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652580', 'tblTempUsageDetail_20' ) start [2025-03-10 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652580', 'tblTempUsageDetail_20' ) end [2025-03-10 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652580', 'tblTempVendorCDR_20' ) start [2025-03-10 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652580', 'tblTempVendorCDR_20' ) end [2025-03-10 22:31:17] Production.INFO: ProcessCDR(1,14652580,1,1,2) [2025-03-10 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652580', 'tblTempUsageDetail_20' ) start [2025-03-10 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652580', 'tblTempUsageDetail_20' ) end [2025-03-10 22:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:31:20] Production.INFO: ==25852== Releasing lock... [2025-03-10 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:31:20] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:32:06 [end_date_ymd] => 2025-03-10 22:32:06 [RateCDR] => 1 ) [2025-03-10 22:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:32:06' and `end` < '2025-03-10 22:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:32:18] Production.INFO: count ==813 [2025-03-10 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:32:06 - End Time 2025-03-10 22:32:06 [2025-03-10 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652585', 'tblTempUsageDetail_20' ) start [2025-03-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652585', 'tblTempUsageDetail_20' ) end [2025-03-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652585', 'tblTempVendorCDR_20' ) start [2025-03-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652585', 'tblTempVendorCDR_20' ) end [2025-03-10 22:32:18] Production.INFO: ProcessCDR(1,14652585,1,1,2) [2025-03-10 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652585', 'tblTempUsageDetail_20' ) start [2025-03-10 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652585', 'tblTempUsageDetail_20' ) end [2025-03-10 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:32:22] Production.INFO: ==25968== Releasing lock... [2025-03-10 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:32:22] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:33:05 [end_date_ymd] => 2025-03-10 22:33:05 [RateCDR] => 1 ) [2025-03-10 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:33:05' and `end` < '2025-03-10 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:33:17] Production.INFO: count ==814 [2025-03-10 22:33:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:33:05 - End Time 2025-03-10 22:33:05 [2025-03-10 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652590', 'tblTempUsageDetail_20' ) start [2025-03-10 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652590', 'tblTempUsageDetail_20' ) end [2025-03-10 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652590', 'tblTempVendorCDR_20' ) start [2025-03-10 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652590', 'tblTempVendorCDR_20' ) end [2025-03-10 22:33:17] Production.INFO: ProcessCDR(1,14652590,1,1,2) [2025-03-10 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652590', 'tblTempUsageDetail_20' ) start [2025-03-10 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652590', 'tblTempUsageDetail_20' ) end [2025-03-10 22:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:33:20] Production.INFO: ==26055== Releasing lock... [2025-03-10 22:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:33:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-10 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:34:05 [end_date_ymd] => 2025-03-10 22:34:05 [RateCDR] => 1 ) [2025-03-10 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:34:05' and `end` < '2025-03-10 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:34:17] Production.INFO: count ==811 [2025-03-10 22:34:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:34:05 - End Time 2025-03-10 22:34:05 [2025-03-10 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652595', 'tblTempUsageDetail_20' ) start [2025-03-10 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652595', 'tblTempUsageDetail_20' ) end [2025-03-10 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652595', 'tblTempVendorCDR_20' ) start [2025-03-10 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652595', 'tblTempVendorCDR_20' ) end [2025-03-10 22:34:17] Production.INFO: ProcessCDR(1,14652595,1,1,2) [2025-03-10 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652595', 'tblTempUsageDetail_20' ) start [2025-03-10 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652595', 'tblTempUsageDetail_20' ) end [2025-03-10 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:34:22] Production.INFO: ==26137== Releasing lock... [2025-03-10 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:34:22] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:35:04 [end_date_ymd] => 2025-03-10 22:35:04 [RateCDR] => 1 ) [2025-03-10 22: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-03-10 19:35:04' and `end` < '2025-03-10 22:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:35:17] Production.INFO: count ==808 [2025-03-10 22:35:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:35:04 - End Time 2025-03-10 22:35:04 [2025-03-10 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652600', 'tblTempUsageDetail_20' ) start [2025-03-10 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652600', 'tblTempUsageDetail_20' ) end [2025-03-10 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652600', 'tblTempVendorCDR_20' ) start [2025-03-10 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652600', 'tblTempVendorCDR_20' ) end [2025-03-10 22:35:17] Production.INFO: ProcessCDR(1,14652600,1,1,2) [2025-03-10 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652600', 'tblTempUsageDetail_20' ) start [2025-03-10 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652600', 'tblTempUsageDetail_20' ) end [2025-03-10 22:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:35:20] Production.INFO: ==26213== Releasing lock... [2025-03-10 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:35:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-10 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:36:05 [end_date_ymd] => 2025-03-10 22:36:05 [RateCDR] => 1 ) [2025-03-10 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:36:05' and `end` < '2025-03-10 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:36:17] Production.INFO: count ==807 [2025-03-10 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:36:05 - End Time 2025-03-10 22:36:05 [2025-03-10 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652605', 'tblTempUsageDetail_20' ) start [2025-03-10 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652605', 'tblTempUsageDetail_20' ) end [2025-03-10 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652605', 'tblTempVendorCDR_20' ) start [2025-03-10 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652605', 'tblTempVendorCDR_20' ) end [2025-03-10 22:36:18] Production.INFO: ProcessCDR(1,14652605,1,1,2) [2025-03-10 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652605', 'tblTempUsageDetail_20' ) start [2025-03-10 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652605', 'tblTempUsageDetail_20' ) end [2025-03-10 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:36:21] Production.INFO: ==26292== Releasing lock... [2025-03-10 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:36:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-10 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:37:05 [end_date_ymd] => 2025-03-10 22:37:05 [RateCDR] => 1 ) [2025-03-10 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:37:05' and `end` < '2025-03-10 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:37:17] Production.INFO: count ==810 [2025-03-10 22:37:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:37:05 - End Time 2025-03-10 22:37:05 [2025-03-10 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652610', 'tblTempUsageDetail_20' ) start [2025-03-10 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652610', 'tblTempUsageDetail_20' ) end [2025-03-10 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652610', 'tblTempVendorCDR_20' ) start [2025-03-10 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652610', 'tblTempVendorCDR_20' ) end [2025-03-10 22:37:17] Production.INFO: ProcessCDR(1,14652610,1,1,2) [2025-03-10 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652610', 'tblTempUsageDetail_20' ) start [2025-03-10 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652610', 'tblTempUsageDetail_20' ) end [2025-03-10 22:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:37:20] Production.INFO: ==26376== Releasing lock... [2025-03-10 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:37:20] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:38:05 [end_date_ymd] => 2025-03-10 22:38:05 [RateCDR] => 1 ) [2025-03-10 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:38:05' and `end` < '2025-03-10 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:38:17] Production.INFO: count ==810 [2025-03-10 22:38:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:38:05 - End Time 2025-03-10 22:38:05 [2025-03-10 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652615', 'tblTempUsageDetail_20' ) start [2025-03-10 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652615', 'tblTempUsageDetail_20' ) end [2025-03-10 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652615', 'tblTempVendorCDR_20' ) start [2025-03-10 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652615', 'tblTempVendorCDR_20' ) end [2025-03-10 22:38:17] Production.INFO: ProcessCDR(1,14652615,1,1,2) [2025-03-10 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652615', 'tblTempUsageDetail_20' ) start [2025-03-10 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652615', 'tblTempUsageDetail_20' ) end [2025-03-10 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:38:21] Production.INFO: ==26454== Releasing lock... [2025-03-10 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:38:21] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:39:05 [end_date_ymd] => 2025-03-10 22:39:05 [RateCDR] => 1 ) [2025-03-10 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:39:05' and `end` < '2025-03-10 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:39:17] Production.INFO: count ==803 [2025-03-10 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:39:05 - End Time 2025-03-10 22:39:05 [2025-03-10 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652620', 'tblTempUsageDetail_20' ) start [2025-03-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652620', 'tblTempUsageDetail_20' ) end [2025-03-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652620', 'tblTempVendorCDR_20' ) start [2025-03-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652620', 'tblTempVendorCDR_20' ) end [2025-03-10 22:39:18] Production.INFO: ProcessCDR(1,14652620,1,1,2) [2025-03-10 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652620', 'tblTempUsageDetail_20' ) start [2025-03-10 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652620', 'tblTempUsageDetail_20' ) end [2025-03-10 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:39:21] Production.INFO: ==26534== Releasing lock... [2025-03-10 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:39:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-10 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:40:05 [end_date_ymd] => 2025-03-10 22:40:05 [RateCDR] => 1 ) [2025-03-10 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:40:05' and `end` < '2025-03-10 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:40:17] Production.INFO: count ==800 [2025-03-10 22:40:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:40:05 - End Time 2025-03-10 22:40:05 [2025-03-10 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652626', 'tblTempUsageDetail_20' ) start [2025-03-10 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652626', 'tblTempUsageDetail_20' ) end [2025-03-10 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652626', 'tblTempVendorCDR_20' ) start [2025-03-10 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652626', 'tblTempVendorCDR_20' ) end [2025-03-10 22:40:18] Production.INFO: ProcessCDR(1,14652626,1,1,2) [2025-03-10 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652626', 'tblTempUsageDetail_20' ) start [2025-03-10 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652626', 'tblTempUsageDetail_20' ) end [2025-03-10 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:40:23] Production.INFO: ==26611== Releasing lock... [2025-03-10 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:40:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-10 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:41:05 [end_date_ymd] => 2025-03-10 22:41:05 [RateCDR] => 1 ) [2025-03-10 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:41:05' and `end` < '2025-03-10 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:41:17] Production.INFO: count ==777 [2025-03-10 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:41:05 - End Time 2025-03-10 22:41:05 [2025-03-10 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652631', 'tblTempUsageDetail_20' ) start [2025-03-10 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652631', 'tblTempUsageDetail_20' ) end [2025-03-10 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652631', 'tblTempVendorCDR_20' ) start [2025-03-10 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652631', 'tblTempVendorCDR_20' ) end [2025-03-10 22:41:17] Production.INFO: ProcessCDR(1,14652631,1,1,2) [2025-03-10 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652631', 'tblTempUsageDetail_20' ) start [2025-03-10 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652631', 'tblTempUsageDetail_20' ) end [2025-03-10 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:41:22] Production.INFO: ==26694== Releasing lock... [2025-03-10 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:41:22] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:42:05 [end_date_ymd] => 2025-03-10 22:42:05 [RateCDR] => 1 ) [2025-03-10 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:42:05' and `end` < '2025-03-10 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:42:17] Production.INFO: count ==775 [2025-03-10 22:42:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:42:05 - End Time 2025-03-10 22:42:05 [2025-03-10 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652636', 'tblTempUsageDetail_20' ) start [2025-03-10 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652636', 'tblTempUsageDetail_20' ) end [2025-03-10 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652636', 'tblTempVendorCDR_20' ) start [2025-03-10 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652636', 'tblTempVendorCDR_20' ) end [2025-03-10 22:42:17] Production.INFO: ProcessCDR(1,14652636,1,1,2) [2025-03-10 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652636', 'tblTempUsageDetail_20' ) start [2025-03-10 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652636', 'tblTempUsageDetail_20' ) end [2025-03-10 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:42:22] Production.INFO: ==26772== Releasing lock... [2025-03-10 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:42:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-10 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:43:05 [end_date_ymd] => 2025-03-10 22:43:05 [RateCDR] => 1 ) [2025-03-10 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:43:05' and `end` < '2025-03-10 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:43:17] Production.INFO: count ==774 [2025-03-10 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:43:05 - End Time 2025-03-10 22:43:05 [2025-03-10 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652641', 'tblTempUsageDetail_20' ) start [2025-03-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652641', 'tblTempUsageDetail_20' ) end [2025-03-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652641', 'tblTempVendorCDR_20' ) start [2025-03-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652641', 'tblTempVendorCDR_20' ) end [2025-03-10 22:43:18] Production.INFO: ProcessCDR(1,14652641,1,1,2) [2025-03-10 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652641', 'tblTempUsageDetail_20' ) start [2025-03-10 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652641', 'tblTempUsageDetail_20' ) end [2025-03-10 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:43:22] Production.INFO: ==26845== Releasing lock... [2025-03-10 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:43:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-10 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:44:05 [end_date_ymd] => 2025-03-10 22:44:05 [RateCDR] => 1 ) [2025-03-10 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:44:05' and `end` < '2025-03-10 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:44:17] Production.INFO: count ==772 [2025-03-10 22:44:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:44:05 - End Time 2025-03-10 22:44:05 [2025-03-10 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652646', 'tblTempUsageDetail_20' ) start [2025-03-10 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652646', 'tblTempUsageDetail_20' ) end [2025-03-10 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652646', 'tblTempVendorCDR_20' ) start [2025-03-10 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652646', 'tblTempVendorCDR_20' ) end [2025-03-10 22:44:17] Production.INFO: ProcessCDR(1,14652646,1,1,2) [2025-03-10 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652646', 'tblTempUsageDetail_20' ) start [2025-03-10 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652646', 'tblTempUsageDetail_20' ) end [2025-03-10 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:44:21] Production.INFO: ==26926== Releasing lock... [2025-03-10 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:44:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-10 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:45:05 [end_date_ymd] => 2025-03-10 22:45:05 [RateCDR] => 1 ) [2025-03-10 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:45:05' and `end` < '2025-03-10 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:45:17] Production.INFO: count ==772 [2025-03-10 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:45:05 - End Time 2025-03-10 22:45:05 [2025-03-10 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652651', 'tblTempUsageDetail_20' ) start [2025-03-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652651', 'tblTempUsageDetail_20' ) end [2025-03-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652651', 'tblTempVendorCDR_20' ) start [2025-03-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652651', 'tblTempVendorCDR_20' ) end [2025-03-10 22:45:18] Production.INFO: ProcessCDR(1,14652651,1,1,2) [2025-03-10 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652651', 'tblTempUsageDetail_20' ) start [2025-03-10 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652651', 'tblTempUsageDetail_20' ) end [2025-03-10 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:45:21] Production.INFO: ==27004== Releasing lock... [2025-03-10 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:45:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-10 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:46:05 [end_date_ymd] => 2025-03-10 22:46:05 [RateCDR] => 1 ) [2025-03-10 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:46:05' and `end` < '2025-03-10 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:46:17] Production.INFO: count ==772 [2025-03-10 22:46:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:46:05 - End Time 2025-03-10 22:46:05 [2025-03-10 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652656', 'tblTempUsageDetail_20' ) start [2025-03-10 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652656', 'tblTempUsageDetail_20' ) end [2025-03-10 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652656', 'tblTempVendorCDR_20' ) start [2025-03-10 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652656', 'tblTempVendorCDR_20' ) end [2025-03-10 22:46:17] Production.INFO: ProcessCDR(1,14652656,1,1,2) [2025-03-10 22:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652656', 'tblTempUsageDetail_20' ) start [2025-03-10 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652656', 'tblTempUsageDetail_20' ) end [2025-03-10 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:46:21] Production.INFO: ==27081== Releasing lock... [2025-03-10 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:46:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-10 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:47:05 [end_date_ymd] => 2025-03-10 22:47:05 [RateCDR] => 1 ) [2025-03-10 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:47:05' and `end` < '2025-03-10 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:47:17] Production.INFO: count ==770 [2025-03-10 22:47:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:47:05 - End Time 2025-03-10 22:47:05 [2025-03-10 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652661', 'tblTempUsageDetail_20' ) start [2025-03-10 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652661', 'tblTempUsageDetail_20' ) end [2025-03-10 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652661', 'tblTempVendorCDR_20' ) start [2025-03-10 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652661', 'tblTempVendorCDR_20' ) end [2025-03-10 22:47:17] Production.INFO: ProcessCDR(1,14652661,1,1,2) [2025-03-10 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652661', 'tblTempUsageDetail_20' ) start [2025-03-10 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652661', 'tblTempUsageDetail_20' ) end [2025-03-10 22:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:47:20] Production.INFO: ==27162== Releasing lock... [2025-03-10 22:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:47:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-10 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:48:05 [end_date_ymd] => 2025-03-10 22:48:05 [RateCDR] => 1 ) [2025-03-10 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:48:05' and `end` < '2025-03-10 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:48:17] Production.INFO: count ==762 [2025-03-10 22:48:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:48:05 - End Time 2025-03-10 22:48:05 [2025-03-10 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652666', 'tblTempUsageDetail_20' ) start [2025-03-10 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652666', 'tblTempUsageDetail_20' ) end [2025-03-10 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652666', 'tblTempVendorCDR_20' ) start [2025-03-10 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652666', 'tblTempVendorCDR_20' ) end [2025-03-10 22:48:17] Production.INFO: ProcessCDR(1,14652666,1,1,2) [2025-03-10 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652666', 'tblTempUsageDetail_20' ) start [2025-03-10 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652666', 'tblTempUsageDetail_20' ) end [2025-03-10 22:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:48:20] Production.INFO: ==27281== Releasing lock... [2025-03-10 22:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:48:20] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:49:05 [end_date_ymd] => 2025-03-10 22:49:05 [RateCDR] => 1 ) [2025-03-10 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:49:05' and `end` < '2025-03-10 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:49:17] Production.INFO: count ==756 [2025-03-10 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:49:05 - End Time 2025-03-10 22:49:05 [2025-03-10 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652671', 'tblTempUsageDetail_20' ) start [2025-03-10 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652671', 'tblTempUsageDetail_20' ) end [2025-03-10 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652671', 'tblTempVendorCDR_20' ) start [2025-03-10 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652671', 'tblTempVendorCDR_20' ) end [2025-03-10 22:49:17] Production.INFO: ProcessCDR(1,14652671,1,1,2) [2025-03-10 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652671', 'tblTempUsageDetail_20' ) start [2025-03-10 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652671', 'tblTempUsageDetail_20' ) end [2025-03-10 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:49:21] Production.INFO: ==27362== Releasing lock... [2025-03-10 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:49:21] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:50:06 [end_date_ymd] => 2025-03-10 22:50:06 [RateCDR] => 1 ) [2025-03-10 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:50:06' and `end` < '2025-03-10 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:50:18] Production.INFO: count ==754 [2025-03-10 22:50:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:50:06 - End Time 2025-03-10 22:50:06 [2025-03-10 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652676', 'tblTempUsageDetail_20' ) start [2025-03-10 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652676', 'tblTempUsageDetail_20' ) end [2025-03-10 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652676', 'tblTempVendorCDR_20' ) start [2025-03-10 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652676', 'tblTempVendorCDR_20' ) end [2025-03-10 22:50:18] Production.INFO: ProcessCDR(1,14652676,1,1,2) [2025-03-10 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652676', 'tblTempUsageDetail_20' ) start [2025-03-10 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652676', 'tblTempUsageDetail_20' ) end [2025-03-10 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:50:21] Production.INFO: ==27438== Releasing lock... [2025-03-10 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:50:21] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:51:06 [end_date_ymd] => 2025-03-10 22:51:06 [RateCDR] => 1 ) [2025-03-10 22:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:51:06' and `end` < '2025-03-10 22:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:51:18] Production.INFO: count ==731 [2025-03-10 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:51:06 - End Time 2025-03-10 22:51:06 [2025-03-10 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652682', 'tblTempUsageDetail_20' ) start [2025-03-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652682', 'tblTempUsageDetail_20' ) end [2025-03-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652682', 'tblTempVendorCDR_20' ) start [2025-03-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652682', 'tblTempVendorCDR_20' ) end [2025-03-10 22:51:18] Production.INFO: ProcessCDR(1,14652682,1,1,2) [2025-03-10 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652682', 'tblTempUsageDetail_20' ) start [2025-03-10 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652682', 'tblTempUsageDetail_20' ) end [2025-03-10 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:51:23] Production.INFO: ==27520== Releasing lock... [2025-03-10 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:51:23] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:52:05 [end_date_ymd] => 2025-03-10 22:52:05 [RateCDR] => 1 ) [2025-03-10 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:52:05' and `end` < '2025-03-10 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:52:17] Production.INFO: count ==730 [2025-03-10 22:52:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:52:05 - End Time 2025-03-10 22:52:05 [2025-03-10 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652687', 'tblTempUsageDetail_20' ) start [2025-03-10 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652687', 'tblTempUsageDetail_20' ) end [2025-03-10 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652687', 'tblTempVendorCDR_20' ) start [2025-03-10 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652687', 'tblTempVendorCDR_20' ) end [2025-03-10 22:52:17] Production.INFO: ProcessCDR(1,14652687,1,1,2) [2025-03-10 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652687', 'tblTempUsageDetail_20' ) start [2025-03-10 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652687', 'tblTempUsageDetail_20' ) end [2025-03-10 22:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:52:20] Production.INFO: ==27598== Releasing lock... [2025-03-10 22:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:52:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-10 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:53:05 [end_date_ymd] => 2025-03-10 22:53:05 [RateCDR] => 1 ) [2025-03-10 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:53:05' and `end` < '2025-03-10 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:53:17] Production.INFO: count ==734 [2025-03-10 22:53:18] Production.ERROR: pbx CDR StartTime 2025-03-10 19:53:05 - End Time 2025-03-10 22:53:05 [2025-03-10 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652692', 'tblTempUsageDetail_20' ) start [2025-03-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652692', 'tblTempUsageDetail_20' ) end [2025-03-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652692', 'tblTempVendorCDR_20' ) start [2025-03-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652692', 'tblTempVendorCDR_20' ) end [2025-03-10 22:53:18] Production.INFO: ProcessCDR(1,14652692,1,1,2) [2025-03-10 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652692', 'tblTempUsageDetail_20' ) start [2025-03-10 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652692', 'tblTempUsageDetail_20' ) end [2025-03-10 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:53:21] Production.INFO: ==27676== Releasing lock... [2025-03-10 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:53:21] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:54:05 [end_date_ymd] => 2025-03-10 22:54:05 [RateCDR] => 1 ) [2025-03-10 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:54:05' and `end` < '2025-03-10 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:54:17] Production.INFO: count ==737 [2025-03-10 22:54:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:54:05 - End Time 2025-03-10 22:54:05 [2025-03-10 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652697', 'tblTempUsageDetail_20' ) start [2025-03-10 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652697', 'tblTempUsageDetail_20' ) end [2025-03-10 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652697', 'tblTempVendorCDR_20' ) start [2025-03-10 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652697', 'tblTempVendorCDR_20' ) end [2025-03-10 22:54:17] Production.INFO: ProcessCDR(1,14652697,1,1,2) [2025-03-10 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652697', 'tblTempUsageDetail_20' ) start [2025-03-10 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652697', 'tblTempUsageDetail_20' ) end [2025-03-10 22:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:54:20] Production.INFO: ==27751== Releasing lock... [2025-03-10 22:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:54:20] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:55:05 [end_date_ymd] => 2025-03-10 22:55:05 [RateCDR] => 1 ) [2025-03-10 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:55:05' and `end` < '2025-03-10 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:55:17] Production.INFO: count ==733 [2025-03-10 22:55:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:55:05 - End Time 2025-03-10 22:55:05 [2025-03-10 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652702', 'tblTempUsageDetail_20' ) start [2025-03-10 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652702', 'tblTempUsageDetail_20' ) end [2025-03-10 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652702', 'tblTempVendorCDR_20' ) start [2025-03-10 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652702', 'tblTempVendorCDR_20' ) end [2025-03-10 22:55:18] Production.INFO: ProcessCDR(1,14652702,1,1,2) [2025-03-10 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652702', 'tblTempUsageDetail_20' ) start [2025-03-10 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652702', 'tblTempUsageDetail_20' ) end [2025-03-10 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:55:21] Production.INFO: ==27829== Releasing lock... [2025-03-10 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:55:21] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:56:05 [end_date_ymd] => 2025-03-10 22:56:05 [RateCDR] => 1 ) [2025-03-10 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:56:05' and `end` < '2025-03-10 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:56:17] Production.INFO: count ==730 [2025-03-10 22:56:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:56:05 - End Time 2025-03-10 22:56:05 [2025-03-10 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652707', 'tblTempUsageDetail_20' ) start [2025-03-10 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652707', 'tblTempUsageDetail_20' ) end [2025-03-10 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652707', 'tblTempVendorCDR_20' ) start [2025-03-10 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652707', 'tblTempVendorCDR_20' ) end [2025-03-10 22:56:17] Production.INFO: ProcessCDR(1,14652707,1,1,2) [2025-03-10 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652707', 'tblTempUsageDetail_20' ) start [2025-03-10 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652707', 'tblTempUsageDetail_20' ) end [2025-03-10 22:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:56:20] Production.INFO: ==27906== Releasing lock... [2025-03-10 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:56:20] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:57:05 [end_date_ymd] => 2025-03-10 22:57:05 [RateCDR] => 1 ) [2025-03-10 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:57:05' and `end` < '2025-03-10 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:57:17] Production.INFO: count ==729 [2025-03-10 22:57:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:57:05 - End Time 2025-03-10 22:57:05 [2025-03-10 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652712', 'tblTempUsageDetail_20' ) start [2025-03-10 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652712', 'tblTempUsageDetail_20' ) end [2025-03-10 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652712', 'tblTempVendorCDR_20' ) start [2025-03-10 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652712', 'tblTempVendorCDR_20' ) end [2025-03-10 22:57:17] Production.INFO: ProcessCDR(1,14652712,1,1,2) [2025-03-10 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652712', 'tblTempUsageDetail_20' ) start [2025-03-10 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652712', 'tblTempUsageDetail_20' ) end [2025-03-10 22:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:57:20] Production.INFO: ==27983== Releasing lock... [2025-03-10 22:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:57:20] Production.INFO: 34 MB #Memory Used# [2025-03-10 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:58:05 [end_date_ymd] => 2025-03-10 22:58:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 19:58:05' and `end` < '2025-03-10 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-03-10 22:58:17] Production.INFO: count ==727 [2025-03-10 22:58:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:58:05 - End Time 2025-03-10 22:58:05 [2025-03-10 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652717', 'tblTempUsageDetail_20' ) start [2025-03-10 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652717', 'tblTempUsageDetail_20' ) end [2025-03-10 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652717', 'tblTempVendorCDR_20' ) start [2025-03-10 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652717', 'tblTempVendorCDR_20' ) end [2025-03-10 22:58:17] Production.INFO: ProcessCDR(1,14652717,1,1,2) [2025-03-10 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652717', 'tblTempUsageDetail_20' ) start [2025-03-10 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652717', 'tblTempUsageDetail_20' ) end [2025-03-10 22:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:58:20] Production.INFO: ==28062== Releasing lock... [2025-03-10 22:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:58:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 19:59:05 [end_date_ymd] => 2025-03-10 22:59:05 [RateCDR] => 1 ) [2025-03-10 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 19:59:05' and `end` < '2025-03-10 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 22:59:17] Production.INFO: count ==726 [2025-03-10 22:59:17] Production.ERROR: pbx CDR StartTime 2025-03-10 19:59:05 - End Time 2025-03-10 22:59:05 [2025-03-10 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652722', 'tblTempUsageDetail_20' ) start [2025-03-10 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652722', 'tblTempUsageDetail_20' ) end [2025-03-10 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652722', 'tblTempVendorCDR_20' ) start [2025-03-10 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652722', 'tblTempVendorCDR_20' ) end [2025-03-10 22:59:17] Production.INFO: ProcessCDR(1,14652722,1,1,2) [2025-03-10 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652722', 'tblTempUsageDetail_20' ) start [2025-03-10 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652722', 'tblTempUsageDetail_20' ) end [2025-03-10 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 22:59:21] Production.INFO: ==28136== Releasing lock... [2025-03-10 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 22:59:21] Production.INFO: 34 MB #Memory Used# [2025-03-10 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:00:06 [end_date_ymd] => 2025-03-10 23:00:06 [RateCDR] => 1 ) [2025-03-10 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:00:06' and `end` < '2025-03-10 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:00:18] Production.INFO: count ==729 [2025-03-10 23:00:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:00:06 - End Time 2025-03-10 23:00:06 [2025-03-10 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652728', 'tblTempUsageDetail_20' ) start [2025-03-10 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652728', 'tblTempUsageDetail_20' ) end [2025-03-10 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652728', 'tblTempVendorCDR_20' ) start [2025-03-10 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652728', 'tblTempVendorCDR_20' ) end [2025-03-10 23:00:18] Production.INFO: ProcessCDR(1,14652728,1,1,2) [2025-03-10 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652728', 'tblTempUsageDetail_20' ) start [2025-03-10 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652728', 'tblTempUsageDetail_20' ) end [2025-03-10 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:00:22] Production.INFO: ==28214== Releasing lock... [2025-03-10 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:00:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-10 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:01:05 [end_date_ymd] => 2025-03-10 23:01:05 [RateCDR] => 1 ) [2025-03-10 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:01:05' and `end` < '2025-03-10 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:01:17] Production.INFO: count ==700 [2025-03-10 23:01:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:01:05 - End Time 2025-03-10 23:01:05 [2025-03-10 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652733', 'tblTempUsageDetail_20' ) start [2025-03-10 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652733', 'tblTempUsageDetail_20' ) end [2025-03-10 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652733', 'tblTempVendorCDR_20' ) start [2025-03-10 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652733', 'tblTempVendorCDR_20' ) end [2025-03-10 23:01:17] Production.INFO: ProcessCDR(1,14652733,1,1,2) [2025-03-10 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652733', 'tblTempUsageDetail_20' ) start [2025-03-10 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652733', 'tblTempUsageDetail_20' ) end [2025-03-10 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:01:21] Production.INFO: ==28305== Releasing lock... [2025-03-10 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:01:21] Production.INFO: 34 MB #Memory Used# [2025-03-10 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:02:06 [end_date_ymd] => 2025-03-10 23:02:06 [RateCDR] => 1 ) [2025-03-10 23:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:02:06' and `end` < '2025-03-10 23:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:02:18] Production.INFO: count ==699 [2025-03-10 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:02:06 - End Time 2025-03-10 23:02:06 [2025-03-10 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652738', 'tblTempUsageDetail_20' ) start [2025-03-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652738', 'tblTempUsageDetail_20' ) end [2025-03-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652738', 'tblTempVendorCDR_20' ) start [2025-03-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652738', 'tblTempVendorCDR_20' ) end [2025-03-10 23:02:18] Production.INFO: ProcessCDR(1,14652738,1,1,2) [2025-03-10 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652738', 'tblTempUsageDetail_20' ) start [2025-03-10 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652738', 'tblTempUsageDetail_20' ) end [2025-03-10 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:02:22] Production.INFO: ==28457== Releasing lock... [2025-03-10 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:03:04 [end_date_ymd] => 2025-03-10 23:03:04 [RateCDR] => 1 ) [2025-03-10 23:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:03:04' and `end` < '2025-03-10 23:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:03:16] Production.INFO: count ==696 [2025-03-10 23:03:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:03:04 - End Time 2025-03-10 23:03:04 [2025-03-10 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652743', 'tblTempUsageDetail_20' ) start [2025-03-10 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652743', 'tblTempUsageDetail_20' ) end [2025-03-10 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652743', 'tblTempVendorCDR_20' ) start [2025-03-10 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652743', 'tblTempVendorCDR_20' ) end [2025-03-10 23:03:17] Production.INFO: ProcessCDR(1,14652743,1,1,2) [2025-03-10 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652743', 'tblTempUsageDetail_20' ) start [2025-03-10 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652743', 'tblTempUsageDetail_20' ) end [2025-03-10 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:03:20] Production.INFO: ==28570== Releasing lock... [2025-03-10 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:03:20] Production.INFO: 34 MB #Memory Used# [2025-03-10 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:04:05 [end_date_ymd] => 2025-03-10 23:04:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 20:04:05' and `end` < '2025-03-10 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-03-10 23:04:18] Production.INFO: count ==696 [2025-03-10 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:04:05 - End Time 2025-03-10 23:04:05 [2025-03-10 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652748', 'tblTempUsageDetail_20' ) start [2025-03-10 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652748', 'tblTempUsageDetail_20' ) end [2025-03-10 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652748', 'tblTempVendorCDR_20' ) start [2025-03-10 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652748', 'tblTempVendorCDR_20' ) end [2025-03-10 23:04:18] Production.INFO: ProcessCDR(1,14652748,1,1,2) [2025-03-10 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652748', 'tblTempUsageDetail_20' ) start [2025-03-10 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652748', 'tblTempUsageDetail_20' ) end [2025-03-10 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:04:21] Production.INFO: ==28650== Releasing lock... [2025-03-10 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:04:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-10 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:05:05 [end_date_ymd] => 2025-03-10 23:05:05 [RateCDR] => 1 ) [2025-03-10 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:05:05' and `end` < '2025-03-10 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:05:17] Production.INFO: count ==692 [2025-03-10 23:05:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:05:05 - End Time 2025-03-10 23:05:05 [2025-03-10 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652753', 'tblTempUsageDetail_20' ) start [2025-03-10 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652753', 'tblTempUsageDetail_20' ) end [2025-03-10 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652753', 'tblTempVendorCDR_20' ) start [2025-03-10 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652753', 'tblTempVendorCDR_20' ) end [2025-03-10 23:05:17] Production.INFO: ProcessCDR(1,14652753,1,1,2) [2025-03-10 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652753', 'tblTempUsageDetail_20' ) start [2025-03-10 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652753', 'tblTempUsageDetail_20' ) end [2025-03-10 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:05:21] Production.INFO: ==28804== Releasing lock... [2025-03-10 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:05:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:06:06 [end_date_ymd] => 2025-03-10 23:06:06 [RateCDR] => 1 ) [2025-03-10 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:06:06' and `end` < '2025-03-10 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:06:18] Production.INFO: count ==692 [2025-03-10 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:06:06 - End Time 2025-03-10 23:06:06 [2025-03-10 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652758', 'tblTempUsageDetail_20' ) start [2025-03-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652758', 'tblTempUsageDetail_20' ) end [2025-03-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652758', 'tblTempVendorCDR_20' ) start [2025-03-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652758', 'tblTempVendorCDR_20' ) end [2025-03-10 23:06:18] Production.INFO: ProcessCDR(1,14652758,1,1,2) [2025-03-10 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652758', 'tblTempUsageDetail_20' ) start [2025-03-10 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652758', 'tblTempUsageDetail_20' ) end [2025-03-10 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:06:21] Production.INFO: ==28883== Releasing lock... [2025-03-10 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:06:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:07:05 [end_date_ymd] => 2025-03-10 23:07:05 [RateCDR] => 1 ) [2025-03-10 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:07:05' and `end` < '2025-03-10 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:07:17] Production.INFO: count ==693 [2025-03-10 23:07:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:07:05 - End Time 2025-03-10 23:07:05 [2025-03-10 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652763', 'tblTempUsageDetail_20' ) start [2025-03-10 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652763', 'tblTempUsageDetail_20' ) end [2025-03-10 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652763', 'tblTempVendorCDR_20' ) start [2025-03-10 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652763', 'tblTempVendorCDR_20' ) end [2025-03-10 23:07:17] Production.INFO: ProcessCDR(1,14652763,1,1,2) [2025-03-10 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652763', 'tblTempUsageDetail_20' ) start [2025-03-10 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652763', 'tblTempUsageDetail_20' ) end [2025-03-10 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:07:22] Production.INFO: ==28956== Releasing lock... [2025-03-10 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:07:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:08:05 [end_date_ymd] => 2025-03-10 23:08:05 [RateCDR] => 1 ) [2025-03-10 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:08:05' and `end` < '2025-03-10 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:08:17] Production.INFO: count ==696 [2025-03-10 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:08:05 - End Time 2025-03-10 23:08:05 [2025-03-10 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652768', 'tblTempUsageDetail_20' ) start [2025-03-10 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652768', 'tblTempUsageDetail_20' ) end [2025-03-10 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652768', 'tblTempVendorCDR_20' ) start [2025-03-10 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652768', 'tblTempVendorCDR_20' ) end [2025-03-10 23:08:18] Production.INFO: ProcessCDR(1,14652768,1,1,2) [2025-03-10 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652768', 'tblTempUsageDetail_20' ) start [2025-03-10 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652768', 'tblTempUsageDetail_20' ) end [2025-03-10 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:08:21] Production.INFO: ==29109== Releasing lock... [2025-03-10 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:08:21] Production.INFO: 34 MB #Memory Used# [2025-03-10 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:09:05 [end_date_ymd] => 2025-03-10 23:09:05 [RateCDR] => 1 ) [2025-03-10 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:09:05' and `end` < '2025-03-10 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:09:17] Production.INFO: count ==692 [2025-03-10 23:09:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:09:05 - End Time 2025-03-10 23:09:05 [2025-03-10 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652773', 'tblTempUsageDetail_20' ) start [2025-03-10 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652773', 'tblTempUsageDetail_20' ) end [2025-03-10 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652773', 'tblTempVendorCDR_20' ) start [2025-03-10 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652773', 'tblTempVendorCDR_20' ) end [2025-03-10 23:09:17] Production.INFO: ProcessCDR(1,14652773,1,1,2) [2025-03-10 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652773', 'tblTempUsageDetail_20' ) start [2025-03-10 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652773', 'tblTempUsageDetail_20' ) end [2025-03-10 23:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:09:20] Production.INFO: ==29179== Releasing lock... [2025-03-10 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:09:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:10:06 [end_date_ymd] => 2025-03-10 23:10:06 [RateCDR] => 1 ) [2025-03-10 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:10:06' and `end` < '2025-03-10 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:10:18] Production.INFO: count ==687 [2025-03-10 23:10:19] Production.ERROR: pbx CDR StartTime 2025-03-10 20:10:06 - End Time 2025-03-10 23:10:06 [2025-03-10 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652780', 'tblTempUsageDetail_20' ) start [2025-03-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652780', 'tblTempUsageDetail_20' ) end [2025-03-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652780', 'tblTempVendorCDR_20' ) start [2025-03-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652780', 'tblTempVendorCDR_20' ) end [2025-03-10 23:10:19] Production.INFO: ProcessCDR(1,14652780,1,1,2) [2025-03-10 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652780', 'tblTempUsageDetail_20' ) start [2025-03-10 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652780', 'tblTempUsageDetail_20' ) end [2025-03-10 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:10:23] Production.INFO: ==29258== Releasing lock... [2025-03-10 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:10:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-10 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:11:06 [end_date_ymd] => 2025-03-10 23:11:06 [RateCDR] => 1 ) [2025-03-10 23:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:11:06' and `end` < '2025-03-10 23:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:11:18] Production.INFO: count ==672 [2025-03-10 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:11:06 - End Time 2025-03-10 23:11:06 [2025-03-10 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652785', 'tblTempUsageDetail_20' ) start [2025-03-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652785', 'tblTempUsageDetail_20' ) end [2025-03-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652785', 'tblTempVendorCDR_20' ) start [2025-03-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652785', 'tblTempVendorCDR_20' ) end [2025-03-10 23:11:18] Production.INFO: ProcessCDR(1,14652785,1,1,2) [2025-03-10 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652785', 'tblTempUsageDetail_20' ) start [2025-03-10 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652785', 'tblTempUsageDetail_20' ) end [2025-03-10 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:11:21] Production.INFO: ==29348== Releasing lock... [2025-03-10 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:11:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-10 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:12:05 [end_date_ymd] => 2025-03-10 23:12:05 [RateCDR] => 1 ) [2025-03-10 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:12:05' and `end` < '2025-03-10 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:12:17] Production.INFO: count ==657 [2025-03-10 23:12:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:12:05 - End Time 2025-03-10 23:12:05 [2025-03-10 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652790', 'tblTempUsageDetail_20' ) start [2025-03-10 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652790', 'tblTempUsageDetail_20' ) end [2025-03-10 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652790', 'tblTempVendorCDR_20' ) start [2025-03-10 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652790', 'tblTempVendorCDR_20' ) end [2025-03-10 23:12:17] Production.INFO: ProcessCDR(1,14652790,1,1,2) [2025-03-10 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652790', 'tblTempUsageDetail_20' ) start [2025-03-10 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652790', 'tblTempUsageDetail_20' ) end [2025-03-10 23:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:12:20] Production.INFO: ==29506== Releasing lock... [2025-03-10 23:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:12:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:13:05 [end_date_ymd] => 2025-03-10 23:13:05 [RateCDR] => 1 ) [2025-03-10 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:13:05' and `end` < '2025-03-10 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:13:17] Production.INFO: count ==641 [2025-03-10 23:13:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:13:05 - End Time 2025-03-10 23:13:05 [2025-03-10 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652795', 'tblTempUsageDetail_20' ) start [2025-03-10 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652795', 'tblTempUsageDetail_20' ) end [2025-03-10 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652795', 'tblTempVendorCDR_20' ) start [2025-03-10 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652795', 'tblTempVendorCDR_20' ) end [2025-03-10 23:13:17] Production.INFO: ProcessCDR(1,14652795,1,1,2) [2025-03-10 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652795', 'tblTempUsageDetail_20' ) start [2025-03-10 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652795', 'tblTempUsageDetail_20' ) end [2025-03-10 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:13:21] Production.INFO: ==29588== Releasing lock... [2025-03-10 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:13:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:14:05 [end_date_ymd] => 2025-03-10 23:14:05 [RateCDR] => 1 ) [2025-03-10 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:14:05' and `end` < '2025-03-10 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:14:17] Production.INFO: count ==637 [2025-03-10 23:14:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:14:05 - End Time 2025-03-10 23:14:05 [2025-03-10 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652800', 'tblTempUsageDetail_20' ) start [2025-03-10 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652800', 'tblTempUsageDetail_20' ) end [2025-03-10 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652800', 'tblTempVendorCDR_20' ) start [2025-03-10 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652800', 'tblTempVendorCDR_20' ) end [2025-03-10 23:14:17] Production.INFO: ProcessCDR(1,14652800,1,1,2) [2025-03-10 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652800', 'tblTempUsageDetail_20' ) start [2025-03-10 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652800', 'tblTempUsageDetail_20' ) end [2025-03-10 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:14:21] Production.INFO: ==29657== Releasing lock... [2025-03-10 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:14:21] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:15:06 [end_date_ymd] => 2025-03-10 23:15:06 [RateCDR] => 1 ) [2025-03-10 23:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:15:06' and `end` < '2025-03-10 23:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:15:18] Production.INFO: count ==637 [2025-03-10 23:15:19] Production.ERROR: pbx CDR StartTime 2025-03-10 20:15:06 - End Time 2025-03-10 23:15:06 [2025-03-10 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652805', 'tblTempUsageDetail_20' ) start [2025-03-10 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652805', 'tblTempUsageDetail_20' ) end [2025-03-10 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652805', 'tblTempVendorCDR_20' ) start [2025-03-10 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652805', 'tblTempVendorCDR_20' ) end [2025-03-10 23:15:19] Production.INFO: ProcessCDR(1,14652805,1,1,2) [2025-03-10 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652805', 'tblTempUsageDetail_20' ) start [2025-03-10 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652805', 'tblTempUsageDetail_20' ) end [2025-03-10 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:15:22] Production.INFO: ==29808== Releasing lock... [2025-03-10 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:15:22] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:16:05 [end_date_ymd] => 2025-03-10 23:16:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 20:16:05' and `end` < '2025-03-10 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-03-10 23:16:17] Production.INFO: count ==632 [2025-03-10 23:16:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:16:05 - End Time 2025-03-10 23:16:05 [2025-03-10 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652810', 'tblTempUsageDetail_20' ) start [2025-03-10 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652810', 'tblTempUsageDetail_20' ) end [2025-03-10 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652810', 'tblTempVendorCDR_20' ) start [2025-03-10 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652810', 'tblTempVendorCDR_20' ) end [2025-03-10 23:16:17] Production.INFO: ProcessCDR(1,14652810,1,1,2) [2025-03-10 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652810', 'tblTempUsageDetail_20' ) start [2025-03-10 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652810', 'tblTempUsageDetail_20' ) end [2025-03-10 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:16:21] Production.INFO: ==29882== Releasing lock... [2025-03-10 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:16:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:17:05 [end_date_ymd] => 2025-03-10 23:17:05 [RateCDR] => 1 ) [2025-03-10 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:17:05' and `end` < '2025-03-10 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:17:17] Production.INFO: count ==626 [2025-03-10 23:17:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:17:05 - End Time 2025-03-10 23:17:05 [2025-03-10 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652815', 'tblTempUsageDetail_20' ) start [2025-03-10 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652815', 'tblTempUsageDetail_20' ) end [2025-03-10 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652815', 'tblTempVendorCDR_20' ) start [2025-03-10 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652815', 'tblTempVendorCDR_20' ) end [2025-03-10 23:17:17] Production.INFO: ProcessCDR(1,14652815,1,1,2) [2025-03-10 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652815', 'tblTempUsageDetail_20' ) start [2025-03-10 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652815', 'tblTempUsageDetail_20' ) end [2025-03-10 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:17:21] Production.INFO: ==29957== Releasing lock... [2025-03-10 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:17:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:18:05 [end_date_ymd] => 2025-03-10 23:18:05 [RateCDR] => 1 ) [2025-03-10 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:18:05' and `end` < '2025-03-10 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:18:17] Production.INFO: count ==626 [2025-03-10 23:18:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:18:05 - End Time 2025-03-10 23:18:05 [2025-03-10 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652820', 'tblTempUsageDetail_20' ) start [2025-03-10 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652820', 'tblTempUsageDetail_20' ) end [2025-03-10 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652820', 'tblTempVendorCDR_20' ) start [2025-03-10 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652820', 'tblTempVendorCDR_20' ) end [2025-03-10 23:18:17] Production.INFO: ProcessCDR(1,14652820,1,1,2) [2025-03-10 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652820', 'tblTempUsageDetail_20' ) start [2025-03-10 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652820', 'tblTempUsageDetail_20' ) end [2025-03-10 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:18:22] Production.INFO: ==30027== Releasing lock... [2025-03-10 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:19:05 [end_date_ymd] => 2025-03-10 23:19:05 [RateCDR] => 1 ) [2025-03-10 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:19:05' and `end` < '2025-03-10 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:19:17] Production.INFO: count ==625 [2025-03-10 23:19:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:19:05 - End Time 2025-03-10 23:19:05 [2025-03-10 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652825', 'tblTempUsageDetail_20' ) start [2025-03-10 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652825', 'tblTempUsageDetail_20' ) end [2025-03-10 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652825', 'tblTempVendorCDR_20' ) start [2025-03-10 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652825', 'tblTempVendorCDR_20' ) end [2025-03-10 23:19:17] Production.INFO: ProcessCDR(1,14652825,1,1,2) [2025-03-10 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652825', 'tblTempUsageDetail_20' ) start [2025-03-10 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652825', 'tblTempUsageDetail_20' ) end [2025-03-10 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:19:20] Production.INFO: ==30140== Releasing lock... [2025-03-10 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:19:21] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:20:05 [end_date_ymd] => 2025-03-10 23:20:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 20:20:05' and `end` < '2025-03-10 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-03-10 23:20:18] Production.INFO: count ==629 [2025-03-10 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:20:05 - End Time 2025-03-10 23:20:05 [2025-03-10 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652831', 'tblTempUsageDetail_20' ) start [2025-03-10 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652831', 'tblTempUsageDetail_20' ) end [2025-03-10 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652831', 'tblTempVendorCDR_20' ) start [2025-03-10 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652831', 'tblTempVendorCDR_20' ) end [2025-03-10 23:20:18] Production.INFO: ProcessCDR(1,14652831,1,1,2) [2025-03-10 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652831', 'tblTempUsageDetail_20' ) start [2025-03-10 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652831', 'tblTempUsageDetail_20' ) end [2025-03-10 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:20:23] Production.INFO: ==30213== Releasing lock... [2025-03-10 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:20:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:21:05 [end_date_ymd] => 2025-03-10 23:21:05 [RateCDR] => 1 ) [2025-03-10 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:21:05' and `end` < '2025-03-10 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:21:18] Production.INFO: count ==671 [2025-03-10 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:21:05 - End Time 2025-03-10 23:21:05 [2025-03-10 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652836', 'tblTempUsageDetail_20' ) start [2025-03-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652836', 'tblTempUsageDetail_20' ) end [2025-03-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652836', 'tblTempVendorCDR_20' ) start [2025-03-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652836', 'tblTempVendorCDR_20' ) end [2025-03-10 23:21:18] Production.INFO: ProcessCDR(1,14652836,1,1,2) [2025-03-10 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652836', 'tblTempUsageDetail_20' ) start [2025-03-10 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652836', 'tblTempUsageDetail_20' ) end [2025-03-10 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:21:22] Production.INFO: ==30289== Releasing lock... [2025-03-10 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:21:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-10 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:22:05 [end_date_ymd] => 2025-03-10 23:22:05 [RateCDR] => 1 ) [2025-03-10 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:22:05' and `end` < '2025-03-10 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:22:17] Production.INFO: count ==677 [2025-03-10 23:22:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:22:05 - End Time 2025-03-10 23:22:05 [2025-03-10 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652841', 'tblTempUsageDetail_20' ) start [2025-03-10 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652841', 'tblTempUsageDetail_20' ) end [2025-03-10 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652841', 'tblTempVendorCDR_20' ) start [2025-03-10 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652841', 'tblTempVendorCDR_20' ) end [2025-03-10 23:22:17] Production.INFO: ProcessCDR(1,14652841,1,1,2) [2025-03-10 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652841', 'tblTempUsageDetail_20' ) start [2025-03-10 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652841', 'tblTempUsageDetail_20' ) end [2025-03-10 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:22:22] Production.INFO: ==30359== Releasing lock... [2025-03-10 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:22:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:23:05 [end_date_ymd] => 2025-03-10 23:23:05 [RateCDR] => 1 ) [2025-03-10 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:23:05' and `end` < '2025-03-10 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:23:17] Production.INFO: count ==676 [2025-03-10 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:23:05 - End Time 2025-03-10 23:23:05 [2025-03-10 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652846', 'tblTempUsageDetail_20' ) start [2025-03-10 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652846', 'tblTempUsageDetail_20' ) end [2025-03-10 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652846', 'tblTempVendorCDR_20' ) start [2025-03-10 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652846', 'tblTempVendorCDR_20' ) end [2025-03-10 23:23:17] Production.INFO: ProcessCDR(1,14652846,1,1,2) [2025-03-10 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652846', 'tblTempUsageDetail_20' ) start [2025-03-10 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652846', 'tblTempUsageDetail_20' ) end [2025-03-10 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:23:20] Production.INFO: ==30430== Releasing lock... [2025-03-10 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:23:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:24:06 [end_date_ymd] => 2025-03-10 23:24:06 [RateCDR] => 1 ) [2025-03-10 23:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:24:06' and `end` < '2025-03-10 23:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:24:18] Production.INFO: count ==676 [2025-03-10 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:24:06 - End Time 2025-03-10 23:24:06 [2025-03-10 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652851', 'tblTempUsageDetail_20' ) start [2025-03-10 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652851', 'tblTempUsageDetail_20' ) end [2025-03-10 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652851', 'tblTempVendorCDR_20' ) start [2025-03-10 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652851', 'tblTempVendorCDR_20' ) end [2025-03-10 23:24:18] Production.INFO: ProcessCDR(1,14652851,1,1,2) [2025-03-10 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652851', 'tblTempUsageDetail_20' ) start [2025-03-10 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652851', 'tblTempUsageDetail_20' ) end [2025-03-10 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:24:22] Production.INFO: ==30500== Releasing lock... [2025-03-10 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:24:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:25:05 [end_date_ymd] => 2025-03-10 23:25:05 [RateCDR] => 1 ) [2025-03-10 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:25:05' and `end` < '2025-03-10 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:25:17] Production.INFO: count ==676 [2025-03-10 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:25:05 - End Time 2025-03-10 23:25:05 [2025-03-10 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652856', 'tblTempUsageDetail_20' ) start [2025-03-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652856', 'tblTempUsageDetail_20' ) end [2025-03-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652856', 'tblTempVendorCDR_20' ) start [2025-03-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652856', 'tblTempVendorCDR_20' ) end [2025-03-10 23:25:18] Production.INFO: ProcessCDR(1,14652856,1,1,2) [2025-03-10 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652856', 'tblTempUsageDetail_20' ) start [2025-03-10 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652856', 'tblTempUsageDetail_20' ) end [2025-03-10 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:25:21] Production.INFO: ==30574== Releasing lock... [2025-03-10 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:25:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:26:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:26:07 [end_date_ymd] => 2025-03-10 23:26:07 [RateCDR] => 1 ) [2025-03-10 23:26:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:26:07' and `end` < '2025-03-10 23:26:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:26:20] Production.INFO: count ==676 [2025-03-10 23:26:20] Production.ERROR: pbx CDR StartTime 2025-03-10 20:26:07 - End Time 2025-03-10 23:26:07 [2025-03-10 23:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652861', 'tblTempUsageDetail_20' ) start [2025-03-10 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652861', 'tblTempUsageDetail_20' ) end [2025-03-10 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652861', 'tblTempVendorCDR_20' ) start [2025-03-10 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652861', 'tblTempVendorCDR_20' ) end [2025-03-10 23:26:20] Production.INFO: ProcessCDR(1,14652861,1,1,2) [2025-03-10 23:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652861', 'tblTempUsageDetail_20' ) start [2025-03-10 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652861', 'tblTempUsageDetail_20' ) end [2025-03-10 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:26:23] Production.INFO: ==30667== Releasing lock... [2025-03-10 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:26:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:27:05 [end_date_ymd] => 2025-03-10 23:27:05 [RateCDR] => 1 ) [2025-03-10 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:27:05' and `end` < '2025-03-10 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:27:17] Production.INFO: count ==679 [2025-03-10 23:27:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:27:05 - End Time 2025-03-10 23:27:05 [2025-03-10 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652866', 'tblTempUsageDetail_20' ) start [2025-03-10 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652866', 'tblTempUsageDetail_20' ) end [2025-03-10 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652866', 'tblTempVendorCDR_20' ) start [2025-03-10 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652866', 'tblTempVendorCDR_20' ) end [2025-03-10 23:27:17] Production.INFO: ProcessCDR(1,14652866,1,1,2) [2025-03-10 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652866', 'tblTempUsageDetail_20' ) start [2025-03-10 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652866', 'tblTempUsageDetail_20' ) end [2025-03-10 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:27:21] Production.INFO: ==30737== Releasing lock... [2025-03-10 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:27:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:28:05 [end_date_ymd] => 2025-03-10 23:28:05 [RateCDR] => 1 ) [2025-03-10 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:28:05' and `end` < '2025-03-10 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:28:17] Production.INFO: count ==676 [2025-03-10 23:28:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:28:05 - End Time 2025-03-10 23:28:05 [2025-03-10 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652871', 'tblTempUsageDetail_20' ) start [2025-03-10 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652871', 'tblTempUsageDetail_20' ) end [2025-03-10 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652871', 'tblTempVendorCDR_20' ) start [2025-03-10 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652871', 'tblTempVendorCDR_20' ) end [2025-03-10 23:28:17] Production.INFO: ProcessCDR(1,14652871,1,1,2) [2025-03-10 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652871', 'tblTempUsageDetail_20' ) start [2025-03-10 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652871', 'tblTempUsageDetail_20' ) end [2025-03-10 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:28:22] Production.INFO: ==30807== Releasing lock... [2025-03-10 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:28:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:29:05 [end_date_ymd] => 2025-03-10 23:29:05 [RateCDR] => 1 ) [2025-03-10 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:29:05' and `end` < '2025-03-10 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:29:17] Production.INFO: count ==676 [2025-03-10 23:29:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:29:05 - End Time 2025-03-10 23:29:05 [2025-03-10 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652876', 'tblTempUsageDetail_20' ) start [2025-03-10 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652876', 'tblTempUsageDetail_20' ) end [2025-03-10 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652876', 'tblTempVendorCDR_20' ) start [2025-03-10 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652876', 'tblTempVendorCDR_20' ) end [2025-03-10 23:29:17] Production.INFO: ProcessCDR(1,14652876,1,1,2) [2025-03-10 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652876', 'tblTempUsageDetail_20' ) start [2025-03-10 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652876', 'tblTempUsageDetail_20' ) end [2025-03-10 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:29:22] Production.INFO: ==30883== Releasing lock... [2025-03-10 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:29:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:30:06 [end_date_ymd] => 2025-03-10 23:30:06 [RateCDR] => 1 ) [2025-03-10 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:30:06' and `end` < '2025-03-10 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:30:18] Production.INFO: count ==675 [2025-03-10 23:30:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:30:06 - End Time 2025-03-10 23:30:06 [2025-03-10 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652882', 'tblTempUsageDetail_20' ) start [2025-03-10 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652882', 'tblTempUsageDetail_20' ) end [2025-03-10 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652882', 'tblTempVendorCDR_20' ) start [2025-03-10 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652882', 'tblTempVendorCDR_20' ) end [2025-03-10 23:30:18] Production.INFO: ProcessCDR(1,14652882,1,1,2) [2025-03-10 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652882', 'tblTempUsageDetail_20' ) start [2025-03-10 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652882', 'tblTempUsageDetail_20' ) end [2025-03-10 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:30:22] Production.INFO: ==30964== Releasing lock... [2025-03-10 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:30:22] Production.INFO: 34 MB #Memory Used# [2025-03-10 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:31:05 [end_date_ymd] => 2025-03-10 23:31:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 20:31:05' and `end` < '2025-03-10 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-03-10 23:31:17] Production.INFO: count ==639 [2025-03-10 23:31:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:31:05 - End Time 2025-03-10 23:31:05 [2025-03-10 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652887', 'tblTempUsageDetail_20' ) start [2025-03-10 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652887', 'tblTempUsageDetail_20' ) end [2025-03-10 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652887', 'tblTempVendorCDR_20' ) start [2025-03-10 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652887', 'tblTempVendorCDR_20' ) end [2025-03-10 23:31:17] Production.INFO: ProcessCDR(1,14652887,1,1,2) [2025-03-10 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652887', 'tblTempUsageDetail_20' ) start [2025-03-10 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652887', 'tblTempUsageDetail_20' ) end [2025-03-10 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:31:21] Production.INFO: ==31042== Releasing lock... [2025-03-10 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:31:21] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:32:06 [end_date_ymd] => 2025-03-10 23:32:06 [RateCDR] => 1 ) [2025-03-10 23:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:32:06' and `end` < '2025-03-10 23:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:32:18] Production.INFO: count ==645 [2025-03-10 23:32:19] Production.ERROR: pbx CDR StartTime 2025-03-10 20:32:06 - End Time 2025-03-10 23:32:06 [2025-03-10 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652892', 'tblTempUsageDetail_20' ) start [2025-03-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652892', 'tblTempUsageDetail_20' ) end [2025-03-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652892', 'tblTempVendorCDR_20' ) start [2025-03-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652892', 'tblTempVendorCDR_20' ) end [2025-03-10 23:32:19] Production.INFO: ProcessCDR(1,14652892,1,1,2) [2025-03-10 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652892', 'tblTempUsageDetail_20' ) start [2025-03-10 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652892', 'tblTempUsageDetail_20' ) end [2025-03-10 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:32:23] Production.INFO: ==31118== Releasing lock... [2025-03-10 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:32:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:33:05 [end_date_ymd] => 2025-03-10 23:33:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 20:33:05' and `end` < '2025-03-10 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-03-10 23:33:17] Production.INFO: count ==641 [2025-03-10 23:33:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:33:05 - End Time 2025-03-10 23:33:05 [2025-03-10 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652897', 'tblTempUsageDetail_20' ) start [2025-03-10 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652897', 'tblTempUsageDetail_20' ) end [2025-03-10 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652897', 'tblTempVendorCDR_20' ) start [2025-03-10 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652897', 'tblTempVendorCDR_20' ) end [2025-03-10 23:33:17] Production.INFO: ProcessCDR(1,14652897,1,1,2) [2025-03-10 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652897', 'tblTempUsageDetail_20' ) start [2025-03-10 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652897', 'tblTempUsageDetail_20' ) end [2025-03-10 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:33:20] Production.INFO: ==31204== Releasing lock... [2025-03-10 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:33:20] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:34:05 [end_date_ymd] => 2025-03-10 23:34:05 [RateCDR] => 1 ) [2025-03-10 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:34:05' and `end` < '2025-03-10 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:34:17] Production.INFO: count ==642 [2025-03-10 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:34:05 - End Time 2025-03-10 23:34:05 [2025-03-10 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652902', 'tblTempUsageDetail_20' ) start [2025-03-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652902', 'tblTempUsageDetail_20' ) end [2025-03-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652902', 'tblTempVendorCDR_20' ) start [2025-03-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652902', 'tblTempVendorCDR_20' ) end [2025-03-10 23:34:18] Production.INFO: ProcessCDR(1,14652902,1,1,2) [2025-03-10 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652902', 'tblTempUsageDetail_20' ) start [2025-03-10 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652902', 'tblTempUsageDetail_20' ) end [2025-03-10 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:34:21] Production.INFO: ==31313== Releasing lock... [2025-03-10 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:35:05 [end_date_ymd] => 2025-03-10 23:35:05 [RateCDR] => 1 ) [2025-03-10 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:35:05' and `end` < '2025-03-10 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:35:19] Production.INFO: count ==642 [2025-03-10 23:35:19] Production.ERROR: pbx CDR StartTime 2025-03-10 20:35:05 - End Time 2025-03-10 23:35:05 [2025-03-10 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652907', 'tblTempUsageDetail_20' ) start [2025-03-10 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652907', 'tblTempUsageDetail_20' ) end [2025-03-10 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652907', 'tblTempVendorCDR_20' ) start [2025-03-10 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652907', 'tblTempVendorCDR_20' ) end [2025-03-10 23:35:19] Production.INFO: ProcessCDR(1,14652907,1,1,2) [2025-03-10 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652907', 'tblTempUsageDetail_20' ) start [2025-03-10 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652907', 'tblTempUsageDetail_20' ) end [2025-03-10 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:35:22] Production.INFO: ==31385== Releasing lock... [2025-03-10 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:35:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:36:06 [end_date_ymd] => 2025-03-10 23:36:06 [RateCDR] => 1 ) [2025-03-10 23:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:36:06' and `end` < '2025-03-10 23:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:36:18] Production.INFO: count ==639 [2025-03-10 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:36:06 - End Time 2025-03-10 23:36:06 [2025-03-10 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652912', 'tblTempUsageDetail_20' ) start [2025-03-10 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652912', 'tblTempUsageDetail_20' ) end [2025-03-10 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652912', 'tblTempVendorCDR_20' ) start [2025-03-10 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652912', 'tblTempVendorCDR_20' ) end [2025-03-10 23:36:18] Production.INFO: ProcessCDR(1,14652912,1,1,2) [2025-03-10 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652912', 'tblTempUsageDetail_20' ) start [2025-03-10 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652912', 'tblTempUsageDetail_20' ) end [2025-03-10 23:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:36:24] Production.INFO: ==31458== Releasing lock... [2025-03-10 23:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:36:24] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:37:05 [end_date_ymd] => 2025-03-10 23:37:05 [RateCDR] => 1 ) [2025-03-10 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:37:05' and `end` < '2025-03-10 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:37:17] Production.INFO: count ==635 [2025-03-10 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:37:05 - End Time 2025-03-10 23:37:05 [2025-03-10 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652917', 'tblTempUsageDetail_20' ) start [2025-03-10 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652917', 'tblTempUsageDetail_20' ) end [2025-03-10 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652917', 'tblTempVendorCDR_20' ) start [2025-03-10 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652917', 'tblTempVendorCDR_20' ) end [2025-03-10 23:37:17] Production.INFO: ProcessCDR(1,14652917,1,1,2) [2025-03-10 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652917', 'tblTempUsageDetail_20' ) start [2025-03-10 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652917', 'tblTempUsageDetail_20' ) end [2025-03-10 23:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:37:20] Production.INFO: ==31546== Releasing lock... [2025-03-10 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:37:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:38:06 [end_date_ymd] => 2025-03-10 23:38:06 [RateCDR] => 1 ) [2025-03-10 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:38:06' and `end` < '2025-03-10 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:38:18] Production.INFO: count ==635 [2025-03-10 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:38:06 - End Time 2025-03-10 23:38:06 [2025-03-10 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652922', 'tblTempUsageDetail_20' ) start [2025-03-10 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652922', 'tblTempUsageDetail_20' ) end [2025-03-10 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652922', 'tblTempVendorCDR_20' ) start [2025-03-10 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652922', 'tblTempVendorCDR_20' ) end [2025-03-10 23:38:18] Production.INFO: ProcessCDR(1,14652922,1,1,2) [2025-03-10 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652922', 'tblTempUsageDetail_20' ) start [2025-03-10 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652922', 'tblTempUsageDetail_20' ) end [2025-03-10 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:38:21] Production.INFO: ==31622== Releasing lock... [2025-03-10 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:38:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:39:05 [end_date_ymd] => 2025-03-10 23:39:05 [RateCDR] => 1 ) [2025-03-10 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:39:05' and `end` < '2025-03-10 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:39:17] Production.INFO: count ==635 [2025-03-10 23:39:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:39:05 - End Time 2025-03-10 23:39:05 [2025-03-10 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652927', 'tblTempUsageDetail_20' ) start [2025-03-10 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652927', 'tblTempUsageDetail_20' ) end [2025-03-10 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652927', 'tblTempVendorCDR_20' ) start [2025-03-10 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652927', 'tblTempVendorCDR_20' ) end [2025-03-10 23:39:17] Production.INFO: ProcessCDR(1,14652927,1,1,2) [2025-03-10 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652927', 'tblTempUsageDetail_20' ) start [2025-03-10 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652927', 'tblTempUsageDetail_20' ) end [2025-03-10 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:39:22] Production.INFO: ==31712== Releasing lock... [2025-03-10 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:39:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:40:06 [end_date_ymd] => 2025-03-10 23:40:06 [RateCDR] => 1 ) [2025-03-10 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-03-10 20:40:06' and `end` < '2025-03-10 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-03-10 23:40:18] Production.INFO: count ==630 [2025-03-10 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:40:06 - End Time 2025-03-10 23:40:06 [2025-03-10 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652932', 'tblTempUsageDetail_20' ) start [2025-03-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652932', 'tblTempUsageDetail_20' ) end [2025-03-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652932', 'tblTempVendorCDR_20' ) start [2025-03-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652932', 'tblTempVendorCDR_20' ) end [2025-03-10 23:40:18] Production.INFO: ProcessCDR(1,14652932,1,1,2) [2025-03-10 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652932', 'tblTempUsageDetail_20' ) start [2025-03-10 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652932', 'tblTempUsageDetail_20' ) end [2025-03-10 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:40:21] Production.INFO: ==31785== Releasing lock... [2025-03-10 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:40:21] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:41:04 [end_date_ymd] => 2025-03-10 23:41:04 [RateCDR] => 1 ) [2025-03-10 23:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:41:04' and `end` < '2025-03-10 23:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:41:16] Production.INFO: count ==620 [2025-03-10 23:41:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:41:04 - End Time 2025-03-10 23:41:04 [2025-03-10 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652938', 'tblTempUsageDetail_20' ) start [2025-03-10 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652938', 'tblTempUsageDetail_20' ) end [2025-03-10 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652938', 'tblTempVendorCDR_20' ) start [2025-03-10 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652938', 'tblTempVendorCDR_20' ) end [2025-03-10 23:41:17] Production.INFO: ProcessCDR(1,14652938,1,1,2) [2025-03-10 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652938', 'tblTempUsageDetail_20' ) start [2025-03-10 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652938', 'tblTempUsageDetail_20' ) end [2025-03-10 23:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:41:20] Production.INFO: ==31858== Releasing lock... [2025-03-10 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:41:20] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:42:05 [end_date_ymd] => 2025-03-10 23:42:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 20:42:05' and `end` < '2025-03-10 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-03-10 23:42:17] Production.INFO: count ==618 [2025-03-10 23:42:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:42:05 - End Time 2025-03-10 23:42:05 [2025-03-10 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652943', 'tblTempUsageDetail_20' ) start [2025-03-10 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652943', 'tblTempUsageDetail_20' ) end [2025-03-10 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652943', 'tblTempVendorCDR_20' ) start [2025-03-10 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652943', 'tblTempVendorCDR_20' ) end [2025-03-10 23:42:17] Production.INFO: ProcessCDR(1,14652943,1,1,2) [2025-03-10 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652943', 'tblTempUsageDetail_20' ) start [2025-03-10 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652943', 'tblTempUsageDetail_20' ) end [2025-03-10 23:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:42:20] Production.INFO: ==31933== Releasing lock... [2025-03-10 23:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:42:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:43:05 [end_date_ymd] => 2025-03-10 23:43:05 [RateCDR] => 1 ) [2025-03-10 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:43:05' and `end` < '2025-03-10 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:43:17] Production.INFO: count ==621 [2025-03-10 23:43:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:43:05 - End Time 2025-03-10 23:43:05 [2025-03-10 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652948', 'tblTempUsageDetail_20' ) start [2025-03-10 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652948', 'tblTempUsageDetail_20' ) end [2025-03-10 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652948', 'tblTempVendorCDR_20' ) start [2025-03-10 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652948', 'tblTempVendorCDR_20' ) end [2025-03-10 23:43:17] Production.INFO: ProcessCDR(1,14652948,1,1,2) [2025-03-10 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652948', 'tblTempUsageDetail_20' ) start [2025-03-10 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652948', 'tblTempUsageDetail_20' ) end [2025-03-10 23:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:43:20] Production.INFO: ==32005== Releasing lock... [2025-03-10 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:43:20] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:44:05 [end_date_ymd] => 2025-03-10 23:44:05 [RateCDR] => 1 ) [2025-03-10 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:44:05' and `end` < '2025-03-10 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:44:17] Production.INFO: count ==620 [2025-03-10 23:44:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:44:05 - End Time 2025-03-10 23:44:05 [2025-03-10 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652953', 'tblTempUsageDetail_20' ) start [2025-03-10 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652953', 'tblTempUsageDetail_20' ) end [2025-03-10 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652953', 'tblTempVendorCDR_20' ) start [2025-03-10 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652953', 'tblTempVendorCDR_20' ) end [2025-03-10 23:44:17] Production.INFO: ProcessCDR(1,14652953,1,1,2) [2025-03-10 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652953', 'tblTempUsageDetail_20' ) start [2025-03-10 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652953', 'tblTempUsageDetail_20' ) end [2025-03-10 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:44:21] Production.INFO: ==32080== Releasing lock... [2025-03-10 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:44:21] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:45:06 [end_date_ymd] => 2025-03-10 23:45:06 [RateCDR] => 1 ) [2025-03-10 23:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:45:06' and `end` < '2025-03-10 23:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:45:18] Production.INFO: count ==625 [2025-03-10 23:45:19] Production.ERROR: pbx CDR StartTime 2025-03-10 20:45:06 - End Time 2025-03-10 23:45:06 [2025-03-10 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652958', 'tblTempUsageDetail_20' ) start [2025-03-10 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652958', 'tblTempUsageDetail_20' ) end [2025-03-10 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652958', 'tblTempVendorCDR_20' ) start [2025-03-10 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652958', 'tblTempVendorCDR_20' ) end [2025-03-10 23:45:19] Production.INFO: ProcessCDR(1,14652958,1,1,2) [2025-03-10 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652958', 'tblTempUsageDetail_20' ) start [2025-03-10 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652958', 'tblTempUsageDetail_20' ) end [2025-03-10 23:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:45:23] Production.INFO: ==32157== Releasing lock... [2025-03-10 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:45:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:46:05 [end_date_ymd] => 2025-03-10 23:46:05 [RateCDR] => 1 ) [2025-03-10 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:46:05' and `end` < '2025-03-10 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:46:17] Production.INFO: count ==622 [2025-03-10 23:46:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:46:05 - End Time 2025-03-10 23:46:05 [2025-03-10 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652963', 'tblTempUsageDetail_20' ) start [2025-03-10 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652963', 'tblTempUsageDetail_20' ) end [2025-03-10 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652963', 'tblTempVendorCDR_20' ) start [2025-03-10 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652963', 'tblTempVendorCDR_20' ) end [2025-03-10 23:46:17] Production.INFO: ProcessCDR(1,14652963,1,1,2) [2025-03-10 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652963', 'tblTempUsageDetail_20' ) start [2025-03-10 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652963', 'tblTempUsageDetail_20' ) end [2025-03-10 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:46:20] Production.INFO: ==32249== Releasing lock... [2025-03-10 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:46:20] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:47:06 [end_date_ymd] => 2025-03-10 23:47:06 [RateCDR] => 1 ) [2025-03-10 23:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:47:06' and `end` < '2025-03-10 23:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:47:18] Production.INFO: count ==624 [2025-03-10 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:47:06 - End Time 2025-03-10 23:47:06 [2025-03-10 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652968', 'tblTempUsageDetail_20' ) start [2025-03-10 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652968', 'tblTempUsageDetail_20' ) end [2025-03-10 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652968', 'tblTempVendorCDR_20' ) start [2025-03-10 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652968', 'tblTempVendorCDR_20' ) end [2025-03-10 23:47:18] Production.INFO: ProcessCDR(1,14652968,1,1,2) [2025-03-10 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652968', 'tblTempUsageDetail_20' ) start [2025-03-10 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652968', 'tblTempUsageDetail_20' ) end [2025-03-10 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:47:21] Production.INFO: ==32323== Releasing lock... [2025-03-10 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:47:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:48:05 [end_date_ymd] => 2025-03-10 23:48:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 20:48:05' and `end` < '2025-03-10 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-03-10 23:48:17] Production.INFO: count ==625 [2025-03-10 23:48:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:48:05 - End Time 2025-03-10 23:48:05 [2025-03-10 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652973', 'tblTempUsageDetail_20' ) start [2025-03-10 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652973', 'tblTempUsageDetail_20' ) end [2025-03-10 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652973', 'tblTempVendorCDR_20' ) start [2025-03-10 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652973', 'tblTempVendorCDR_20' ) end [2025-03-10 23:48:17] Production.INFO: ProcessCDR(1,14652973,1,1,2) [2025-03-10 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652973', 'tblTempUsageDetail_20' ) start [2025-03-10 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652973', 'tblTempUsageDetail_20' ) end [2025-03-10 23:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:48:20] Production.INFO: ==32401== Releasing lock... [2025-03-10 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:48:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-10 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:49:06 [end_date_ymd] => 2025-03-10 23:49:06 [RateCDR] => 1 ) [2025-03-10 23:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:49:06' and `end` < '2025-03-10 23:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:49:18] Production.INFO: count ==615 [2025-03-10 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:49:06 - End Time 2025-03-10 23:49:06 [2025-03-10 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652978', 'tblTempUsageDetail_20' ) start [2025-03-10 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652978', 'tblTempUsageDetail_20' ) end [2025-03-10 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652978', 'tblTempVendorCDR_20' ) start [2025-03-10 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652978', 'tblTempVendorCDR_20' ) end [2025-03-10 23:49:18] Production.INFO: ProcessCDR(1,14652978,1,1,2) [2025-03-10 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652978', 'tblTempUsageDetail_20' ) start [2025-03-10 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652978', 'tblTempUsageDetail_20' ) end [2025-03-10 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:49:22] Production.INFO: ==32482== Releasing lock... [2025-03-10 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:49:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-10 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:50:05 [end_date_ymd] => 2025-03-10 23:50:05 [RateCDR] => 1 ) [2025-03-10 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:50:05' and `end` < '2025-03-10 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:50:17] Production.INFO: count ==612 [2025-03-10 23:50:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:50:05 - End Time 2025-03-10 23:50:05 [2025-03-10 23:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652983', 'tblTempUsageDetail_20' ) start [2025-03-10 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652983', 'tblTempUsageDetail_20' ) end [2025-03-10 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652983', 'tblTempVendorCDR_20' ) start [2025-03-10 23:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652983', 'tblTempVendorCDR_20' ) end [2025-03-10 23:50:17] Production.INFO: ProcessCDR(1,14652983,1,1,2) [2025-03-10 23:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652983', 'tblTempUsageDetail_20' ) start [2025-03-10 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652983', 'tblTempUsageDetail_20' ) end [2025-03-10 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:50:21] Production.INFO: ==32622== Releasing lock... [2025-03-10 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:50:21] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:51:06 [end_date_ymd] => 2025-03-10 23:51:06 [RateCDR] => 1 ) [2025-03-10 23:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:51:06' and `end` < '2025-03-10 23:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:51:18] Production.INFO: count ==577 [2025-03-10 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:51:06 - End Time 2025-03-10 23:51:06 [2025-03-10 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652989', 'tblTempUsageDetail_20' ) start [2025-03-10 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652989', 'tblTempUsageDetail_20' ) end [2025-03-10 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652989', 'tblTempVendorCDR_20' ) start [2025-03-10 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652989', 'tblTempVendorCDR_20' ) end [2025-03-10 23:51:18] Production.INFO: ProcessCDR(1,14652989,1,1,2) [2025-03-10 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652989', 'tblTempUsageDetail_20' ) start [2025-03-10 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652989', 'tblTempUsageDetail_20' ) end [2025-03-10 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:51:21] Production.INFO: ==32701== Releasing lock... [2025-03-10 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:51:21] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:52:05 [end_date_ymd] => 2025-03-10 23:52:05 [RateCDR] => 1 ) [2025-03-10 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:52:05' and `end` < '2025-03-10 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:52:18] Production.INFO: count ==574 [2025-03-10 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:52:05 - End Time 2025-03-10 23:52:05 [2025-03-10 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652994', 'tblTempUsageDetail_20' ) start [2025-03-10 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652994', 'tblTempUsageDetail_20' ) end [2025-03-10 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652994', 'tblTempVendorCDR_20' ) start [2025-03-10 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652994', 'tblTempVendorCDR_20' ) end [2025-03-10 23:52:18] Production.INFO: ProcessCDR(1,14652994,1,1,2) [2025-03-10 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652994', 'tblTempUsageDetail_20' ) start [2025-03-10 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652994', 'tblTempUsageDetail_20' ) end [2025-03-10 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:52:21] Production.INFO: ==316== Releasing lock... [2025-03-10 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:52:21] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:53:05 [end_date_ymd] => 2025-03-10 23:53:05 [RateCDR] => 1 ) [2025-03-10 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:53:05' and `end` < '2025-03-10 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:53:17] Production.INFO: count ==578 [2025-03-10 23:53:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:53:05 - End Time 2025-03-10 23:53:05 [2025-03-10 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652998', 'tblTempUsageDetail_20' ) start [2025-03-10 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14652998', 'tblTempUsageDetail_20' ) end [2025-03-10 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652998', 'tblTempVendorCDR_20' ) start [2025-03-10 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14652998', 'tblTempVendorCDR_20' ) end [2025-03-10 23:53:17] Production.INFO: ProcessCDR(1,14652998,1,1,2) [2025-03-10 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14652998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14652998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14652998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14652998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652998', 'tblTempUsageDetail_20' ) start [2025-03-10 23:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14652998', 'tblTempUsageDetail_20' ) end [2025-03-10 23:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:53:20] Production.INFO: ==411== Releasing lock... [2025-03-10 23:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:53:20] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:54:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:54:07 [end_date_ymd] => 2025-03-10 23:54:07 [RateCDR] => 1 ) [2025-03-10 23:54:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:54:07' and `end` < '2025-03-10 23:54:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:54:19] Production.INFO: count ==578 [2025-03-10 23:54:19] Production.ERROR: pbx CDR StartTime 2025-03-10 20:54:07 - End Time 2025-03-10 23:54:07 [2025-03-10 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653004', 'tblTempUsageDetail_20' ) start [2025-03-10 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653004', 'tblTempUsageDetail_20' ) end [2025-03-10 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653004', 'tblTempVendorCDR_20' ) start [2025-03-10 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653004', 'tblTempVendorCDR_20' ) end [2025-03-10 23:54:19] Production.INFO: ProcessCDR(1,14653004,1,1,2) [2025-03-10 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653004', 'tblTempUsageDetail_20' ) start [2025-03-10 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653004', 'tblTempUsageDetail_20' ) end [2025-03-10 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:54:22] Production.INFO: ==491== Releasing lock... [2025-03-10 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:54:22] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:55:05 [end_date_ymd] => 2025-03-10 23:55:05 [RateCDR] => 1 ) [2025-03-10 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:55:05' and `end` < '2025-03-10 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:55:18] Production.INFO: count ==578 [2025-03-10 23:55:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:55:05 - End Time 2025-03-10 23:55:05 [2025-03-10 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653009', 'tblTempUsageDetail_20' ) start [2025-03-10 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653009', 'tblTempUsageDetail_20' ) end [2025-03-10 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653009', 'tblTempVendorCDR_20' ) start [2025-03-10 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653009', 'tblTempVendorCDR_20' ) end [2025-03-10 23:55:18] Production.INFO: ProcessCDR(1,14653009,1,1,2) [2025-03-10 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653009', 'tblTempUsageDetail_20' ) start [2025-03-10 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653009', 'tblTempUsageDetail_20' ) end [2025-03-10 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:55:21] Production.INFO: ==574== Releasing lock... [2025-03-10 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:55:21] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:56:06 [end_date_ymd] => 2025-03-10 23:56:06 [RateCDR] => 1 ) [2025-03-10 23:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:56:06' and `end` < '2025-03-10 23:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:56:18] Production.INFO: count ==574 [2025-03-10 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-10 20:56:06 - End Time 2025-03-10 23:56:06 [2025-03-10 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653014', 'tblTempUsageDetail_20' ) start [2025-03-10 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653014', 'tblTempUsageDetail_20' ) end [2025-03-10 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653014', 'tblTempVendorCDR_20' ) start [2025-03-10 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653014', 'tblTempVendorCDR_20' ) end [2025-03-10 23:56:18] Production.INFO: ProcessCDR(1,14653014,1,1,2) [2025-03-10 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653014', 'tblTempUsageDetail_20' ) start [2025-03-10 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653014', 'tblTempUsageDetail_20' ) end [2025-03-10 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:56:21] Production.INFO: ==673== Releasing lock... [2025-03-10 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:56:21] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:57:05 [end_date_ymd] => 2025-03-10 23:57:05 [RateCDR] => 1 ) [2025-03-10 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:57:05' and `end` < '2025-03-10 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:57:17] Production.INFO: count ==570 [2025-03-10 23:57:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:57:05 - End Time 2025-03-10 23:57:05 [2025-03-10 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653019', 'tblTempUsageDetail_20' ) start [2025-03-10 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653019', 'tblTempUsageDetail_20' ) end [2025-03-10 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653019', 'tblTempVendorCDR_20' ) start [2025-03-10 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653019', 'tblTempVendorCDR_20' ) end [2025-03-10 23:57:17] Production.INFO: ProcessCDR(1,14653019,1,1,2) [2025-03-10 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653019', 'tblTempUsageDetail_20' ) start [2025-03-10 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653019', 'tblTempUsageDetail_20' ) end [2025-03-10 23:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:57:20] Production.INFO: ==767== Releasing lock... [2025-03-10 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:57:20] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:58:06 [end_date_ymd] => 2025-03-10 23:58:06 [RateCDR] => 1 ) [2025-03-10 23:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-10 20:58:06' and `end` < '2025-03-10 23:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-10 23:58:19] Production.INFO: count ==570 [2025-03-10 23:58:19] Production.ERROR: pbx CDR StartTime 2025-03-10 20:58:06 - End Time 2025-03-10 23:58:06 [2025-03-10 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653024', 'tblTempUsageDetail_20' ) start [2025-03-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653024', 'tblTempUsageDetail_20' ) end [2025-03-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653024', 'tblTempVendorCDR_20' ) start [2025-03-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653024', 'tblTempVendorCDR_20' ) end [2025-03-10 23:58:19] Production.INFO: ProcessCDR(1,14653024,1,1,2) [2025-03-10 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653024', 'tblTempUsageDetail_20' ) start [2025-03-10 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653024', 'tblTempUsageDetail_20' ) end [2025-03-10 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:58:22] Production.INFO: ==845== Releasing lock... [2025-03-10 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:58:22] Production.INFO: 33 MB #Memory Used# [2025-03-10 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-10 20:59:05 [end_date_ymd] => 2025-03-10 23:59:05 [RateCDR] => 1 ) [2025-03-10 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-03-10 20:59:05' and `end` < '2025-03-10 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-03-10 23:59:17] Production.INFO: count ==566 [2025-03-10 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-10 20:59:05 - End Time 2025-03-10 23:59:05 [2025-03-10 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-10 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653029', 'tblTempUsageDetail_20' ) start [2025-03-10 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14653029', 'tblTempUsageDetail_20' ) end [2025-03-10 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653029', 'tblTempVendorCDR_20' ) start [2025-03-10 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14653029', 'tblTempVendorCDR_20' ) end [2025-03-10 23:59:17] Production.INFO: ProcessCDR(1,14653029,1,1,2) [2025-03-10 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14653029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14653029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-10 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14653029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14653029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-10 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653029', 'tblTempUsageDetail_20' ) start [2025-03-10 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14653029', 'tblTempUsageDetail_20' ) end [2025-03-10 23:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-10 23:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-10 23:59:20] Production.INFO: ==921== Releasing lock... [2025-03-10 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-10 23:59:20] Production.INFO: 33.25 MB #Memory Used#